You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(config): secrets report 'stored in keyring' when no keyring backend is available #454
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/configSettings, OS Keyring, environment variables, and defaultstype/bugType bug: the code does not do what it must
devops config set ai.api_key <value> prints Secret 'ai.api_key' stored in keyring. and exits 0 even when no usable keyring backend exists. The secret is silently lost.
_keyring_set falls back to the process-local _EPHEMERAL_CI_SECRETS dict whenever _ensure_keyring_backend() returns False (for example keyring.backends.fail.Keyring, or a rejected plaintext backend). That dict disappears when the command exits, but set_value still reports success. The next devops config show shows ai.api_key not set.
Reproduction
Run in an environment where keyring.get_keyring() is keyring.backends.fail.Keyring (e.g. a fresh devcontainer home volume).
devops config set ai.api_key sk-example → prints success.
devops config show → ai.api_key not set.
Expected
Outside headless/CI mode (DEVOPS_CLI_HEADLESS_AUTH), storing a secret without a usable encrypted backend should raise SecretStorageError with guidance on configuring a backend, and config set should exit non-zero. The ephemeral fallback should be reserved for explicit headless runs.
Acceptance criteria
config set for a secret fails loudly (non-zero exit, actionable message) when no usable backend exists.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/configSettings, OS Keyring, environment variables, and defaultstype/bugType bug: the code does not do what it must
Activity
dan-petty commentedon Sep 23, 2026
Duplicate of #452, which tracks the missing in-container keyring. The false-success symptom is recorded there.
fix(roadmap): intake calls a candidate a duplicate only when it asks …