flanker / flanker/chromadb-admin

Add chroma authentication

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
282
Forks
77
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how chromadb-admin connects to the Docker-hosted Chroma server, using the authentication environment variables and X-Chroma-Token details in the issue as the expected configuration. Confirm how the admin UI supplies connection settings and verify that an authenticated connection succeeds without the unauthorized error.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
api, authentication, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.