Skip to content

BASIC_AUTH_USERS doesn't work #29

Open
@vosmax

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions