chromadb-admin icon indicating copy to clipboard operation
chromadb-admin copied to clipboard

Add chroma authentication

Open giannisanni opened this issue 3 months ago • 1 comments

I set up a chroma docker server, i would like to be able to use chromadb-admin with it. But since i added auth header and api to my chromadb, when i connect to it via chromadb-admin i get an unautherized error.

this is what i did for the auth: to use X-Chroma-Token: test-token type of authentication header you can set an additional environment variable.

export CHROMA_SERVER_AUTH_CREDENTIALS="test-token" export CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER="chromadb.auth.token.TokenConfigServerAuthCredentialsProvider" export CHROMA_SERVER_AUTH_PROVIDER="chromadb.auth.token.TokenAuthServerProvider" export CHROMA_SERVER_AUTH_TOKEN_TRANSPORT_HEADER="X_CHROMA_TOKEN"

from https://docs.trychroma.com/usage-guide

giannisanni avatar Apr 11 '24 18:04 giannisanni