aws-s3-proxy icon indicating copy to clipboard operation
aws-s3-proxy copied to clipboard

Auth doesn't work

Open syabro opened this issue 5 years ago • 3 comments

I've added BASIC_AUTH_USER and BASIC_AUTH_PASS but when I go to http://localhost:8000 it doesn't ask for credentials - just show the directory listing.

My docker-compose

proxy:
  image: pottava/s3-proxy
  restart: always
  ports:
    - 8000:80
  environment:
    - AWS_REGION=us-east-1
    - AWS_ACCESS_KEY_ID=
    - AWS_SECRET_ACCESS_KEY=
    - AWS_S3_BUCKET=
    - ACCESS_LOG=true
    - DIRECTORY_LISTINGS=true
    - DIRECTORY_LISTINGS_FORMAT=html
    - BASIC_AUTH_USER=admin
    - BASIC_AUTH_PASS=pass
  container_name: proxy
``

syabro avatar Aug 12 '20 09:08 syabro

Yup, same here, doesn't ask for credentials when providing BASIC_AUTH_USER and BASIC_AUTH_PASSWORD

Here are my logs-

s3-proxy-auth

unfor19 avatar Aug 27 '20 17:08 unfor19

Issue seems to be fixed in version 1, but broken in version 2.0.0 and 2.0.1

dev-d avatar Feb 24 '21 18:02 dev-d

Do you want to try my fork? I tried to find why it wasn't working, but for me it works. Not sure what change I did that might have fixed it.

patrickdk77 avatar Feb 24 '21 18:02 patrickdk77