Skip to content

feat: add secret auth storage configuration - #27504

Merged
celia-oai merged 2 commits into
mainfrom
codex/secret-auth-storage-config
Jun 12, 2026
Merged

feat: add secret auth storage configuration#27504
celia-oai merged 2 commits into
mainfrom
codex/secret-auth-storage-config

Conversation

@celia-oai

Copy link
Copy Markdown
Contributor

Why

Windows Credential Manager limits generic credential blobs to 2,560 bytes. The encrypted local secrets backend avoids storing large serialized auth payloads directly in the OS keyring, but selecting that backend needs an independently reviewable feature/config layer before the auth and secrets implementation is wired in.

What Changed

  • Added the stable secret_auth_storage feature, enabled by default on Windows and disabled by default elsewhere.
  • Added AuthKeyringBackendKind and config resolution for full and bootstrap config loading.
  • Applied managed feature requirements when resolving the bootstrap auth backend.
  • Updated the generated config schema and added focused tests.

This is the base PR for #17931. The auth, secrets, MCP, CLI, TUI, and app-server implementation remains in that follow-up PR.

Validation

  • just test -p codex-features
  • just test -p codex-config
  • just test -p codex-core resolve_bootstrap_auth_keyring_backend_kind_uses_secret_auth_storage_feature
  • just write-config-schema
  • just fix -p codex-core

The full just test -p codex-core run compiled successfully and ran 2,690 tests; 2,589 passed, one was flaky, and 101 environment-sensitive tests failed because this shell injects a pyenv rehash warning into command output or because sandboxed subprocesses timed out.

@celia-oai
celia-oai requested a review from a team as a code owner June 11, 2026 00:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ff8f62e2a0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/features/src/tests.rs
@celia-oai celia-oai changed the title Add secret auth storage configuration feat: add secret auth storage configuration Jun 11, 2026
Comment thread codex-rs/core/src/config/mod.rs
@celia-oai
celia-oai requested a review from bolinfest June 11, 2026 21:14
Comment thread codex-rs/core/src/config/mod.rs Outdated
///
/// This is intended for startup paths that must read auth before managed cloud
/// requirements can be loaded and before a full [`Config`] exists.
pub fn resolve_bootstrap_auth_keyring_backend_kind(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be in the mod.rs for the crate? This feels more appropriate to define in some other file within this directory and then export it via mod.rs.

@celia-oai
celia-oai force-pushed the codex/secret-auth-storage-config branch from 683a9f4 to 3e3379b Compare June 12, 2026 18:53
@celia-oai
celia-oai enabled auto-merge (squash) June 12, 2026 18:55
@celia-oai
celia-oai merged commit b724f59 into main Jun 12, 2026
31 checks passed
@celia-oai
celia-oai deleted the codex/secret-auth-storage-config branch June 12, 2026 19:15
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants