A configured provider whose key fails to resolve falls back to the catalog's ambient env var #1208

Closed
opened 2026-10-27 13:39:27 +00:00 by sam · 0 comments
Owner

When a provider's api_key reference fails (e.g. a secret engine errors), disableProvider clears APIKeyEnv, and modelcatalog.usableProvider then picks firstSetEnv(source.Env), e.g. OPENAI_API_KEY from the process environment. Chat turns go out with a different, possibly stale key, and the operator sees a 401 instead of 'provider disabled'. Done when a configured provider with an unresolved key is never served from an ambient env var.

Notes

Fixed in 64a8c56a; verified in HEAD 5124bfd4. Closing as already shipped.

Close reason

Closed


Imported from beads archie-core-9ntl · GitHub #1525 · type bug · priority P1 · created 2026-10-07 · closed 2026-10-10

When a provider's api_key reference fails (e.g. a secret engine errors), disableProvider clears APIKeyEnv, and modelcatalog.usableProvider then picks firstSetEnv(source.Env), e.g. OPENAI_API_KEY from the process environment. Chat turns go out with a different, possibly stale key, and the operator sees a 401 instead of 'provider disabled'. Done when a configured provider with an unresolved key is never served from an ambient env var. ### Notes Fixed in 64a8c56a; verified in HEAD 5124bfd4. Closing as already shipped. ### Close reason Closed --- _Imported from beads `archie-core-9ntl` · GitHub #1525 · type bug · priority P1 · created 2026-10-07 · closed 2026-10-10_
sam added the highbug labels 2026-10-27 13:39:27 +00:00
sam self-assigned this 2026-10-27 13:39:27 +00:00
sam closed this issue 2026-10-27 13:39:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1208