ui icon indicating copy to clipboard operation
ui copied to clipboard

BASIC_AUTH_USERS doesn't work

Open vosmax opened this issue 6 years ago • 1 comments

Hi! I've added BASIC_AUTH_USERS to environment variables as readme.md says, but when I'm opening UI page user authentication doesn't occur.

Steps:

  1. Add env var in docker-compose file to chartmusemui service
  2. docker-compose up
  3. Open chartmuseum ui page without required authentication (I able to upload and download charts)

UI and chartmuseum services are behind Nginx

Here is my docker-compose.yaml:

version: '2.0'
services:
   ui:
     image: idobry/chartmuseumui:latest
     environment:
      BASIC_AUTH_USERS: '[{"username":"admin", "password":"password"}, {"username":"user", "password":"s3cr3t"}]'
      CHART_MUSESUM_URL: "http://chartmuseum:8080"
     ports:
      - 3000:8080
   chartmuseum:
     image: chartmuseum/chartmuseum:latest
     volumes:
       - ~/.aws:/root/.aws:ro
     restart: always
     environment:
      PORT: 8080
      DEBUG: 1
      STORAGE: "amazon"
      STORAGE_AMAZON_BUCKET: "my-helm-charts"
      STORAGE_AMAZON_PREFIX: ""
      STORAGE_AMAZON_REGION: "eu-central-1"
     ports:
      - 8080:8080

vosmax avatar Apr 10 '19 07:04 vosmax

Use this env AUTH_ANONYMOUS_GET: false

Runinterface avatar Dec 05 '21 11:12 Runinterface