Skip to content

Conversation

@birdayz
Copy link
Contributor

@birdayz birdayz commented Jan 15, 2026

What

Fix regression where knowledge base create form sends secrets without the ${secrets.} wrapper.

Why

Secrets were being sent as raw IDs (e.g., OPENAI_API_KEY) instead of properly formatted references (${secrets.OPENAI_API_KEY}), breaking secret resolution on the backend.

Implementation details

All SecretSelector onChange handlers in the KB create form now wrap the selected secret ID with formatSecretTemplate() before storing in form state. The detail/edit page already had this fix - regression was isolated to the create flow.

Affected fields:

  • postgres_dsn (vector-database-section.tsx)
  • openaiApiKey (embedding-generator-section.tsx)
  • cohereApiKey (embedding-generator-section.tsx)
  • redpandaPassword (indexer-section.tsx)
  • rerankerApiKey (retrieval-section.tsx)

The knowledge base create form was sending secret values without the
${secrets.} wrapper, causing the backend to receive raw secret IDs
instead of properly formatted secret references.

All SecretSelector onChange handlers now wrap the selected secret ID
with formatSecretTemplate() before storing in form state.

Affected fields:
- postgres_dsn (vector database)
- openaiApiKey (embedding generator)
- cohereApiKey (embedding generator)
- redpandaPassword (indexer)
- rerankerApiKey (retrieval)
@birdayz birdayz force-pushed the jb/fix-kb-secrets-wrapper branch from 65118b5 to 63d9ddd Compare January 15, 2026 09:03
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

Successfully merging this pull request may close these issues.

3 participants