Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chroma authentication #2

Open
giannisanni opened this issue Apr 11, 2024 · 1 comment
Open

Add chroma authentication #2

giannisanni opened this issue Apr 11, 2024 · 1 comment

Comments

@giannisanni
Copy link

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
Copy link
Author

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

this is the response i get:
⨯ Response (55 bytes) {
ok: false,
url: "http://localhost:8000/api/v1/collections",
status: 401,
statusText: "Unauthorized",
headers: Headers {
"date": "Thu, 11 Apr 2024 18:44:24 GMT",
"content-length": "55",
"content-type": "application/json",
"server": "uvicorn",
},
redirected: false,
bodyUsed: false,
Blob (55 bytes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant