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

[FEATURE] Support basic and token authentication in Chroma #1092

Open
eddumelendez opened this issue May 11, 2024 · 0 comments
Open

[FEATURE] Support basic and token authentication in Chroma #1092

eddumelendez opened this issue May 11, 2024 · 0 comments
Labels
enhancement New feature or request P3 Medium priority

Comments

@eddumelendez
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Currently, ChromaDBEmbeddedStore doesn't support authentication.

Describe the solution you'd like

Add support for basic and token authentication

Describe alternatives you've considered

Additional context

Setup with Testcontainers

Basic Authentication

static ChromaDBContainer chromaContainer = new ChromaDBContainer("ghcr.io/chroma-core/chroma:0.4.22")
	.withEnv("CHROMA_SERVER_AUTH_CREDENTIALS_FILE", "/chroma/server.htpasswd")
	.withEnv("CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER",
			"chromadb.auth.providers.HtpasswdFileServerAuthCredentialsProvider")
	.withEnv("CHROMA_SERVER_AUTH_PROVIDER", "chromadb.auth.basic.BasicAuthServerProvider")
	.withCopyToContainer(MountableFile.forClasspathResource("server.htpasswd"), "/chroma/server.htpasswd");

Token Authentication

static ChromaDBContainer chromaContainer = new ChromaDBContainer("ghcr.io/chroma-core/chroma:0.4.22")
	.withEnv("CHROMA_SERVER_AUTH_CREDENTIALS", CHROMA_SERVER_AUTH_CREDENTIALS)
	.withEnv("CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER",
			"chromadb.auth.token.TokenConfigServerAuthCredentialsProvider")
	.withEnv("CHROMA_SERVER_AUTH_PROVIDER", "chromadb.auth.token.TokenAuthServerProvider");
@eddumelendez eddumelendez added the enhancement New feature or request label May 11, 2024
@langchain4j langchain4j added the P3 Medium priority label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3 Medium priority
Projects
None yet
Development

No branches or pull requests

2 participants