Skip to content

[Install issue]: Basic auth not working #5363

@diegogcosta

Description

@diegogcosta

What happened?

Hi.

I'm trying to setup a basic authentication with chromadb with the following settings:

config.yaml:
    persist_path: "/data"
    chroma_server_authn_provider: "chromadb.auth.basic_authn.BasicAuthenticationServerProvider"
    chroma_server_authn_credentials_file: "/chroma/server.htpasswd"

Server is up and running just file. I'm sure that the config file is being correctly read because I see the message:

Saving data to: /data                                                                                                                                                                                                                      
Connect to Chroma at: http://localhost:8000

But when I try to test the auth with a simple command:

client = chromadb.HttpClient(host='localhost', port=8000, settings=chromadb.Settings(chroma_client_auth_credentials="admixxx:WRONG", chroma_client_auth_provider="chromadb.auth.basic_authn.BasicAuthClientProvider"))
client.list_collections()

I see the [] responsee

Versions

chromadb image: chromadb/chroma:1.0.2
python lib: 1.0.20

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions