Repository navigation
refactor(runtime): one BuiltinAuth owns built-in provider credential policy (ENG-1066) - #419
Conversation
…policy (ENG-1066) Replace the eight matches on BuiltinAudience across runtime, catalog, doctor and the auth CLI with one BuiltinAuth in src/builtin_auth.rs that answers each question once: audience, profile scoping, digest marker, secure-store cache probe, and whether a request could authenticate now. Fixes: - The authenticated/spawn gate now parses a stored xAI or Codex OAuth login as a request would (qq-auth check_xai_credential / check_codex_login), without refreshing it, so an unreadable login fails the gate instead of the first request. An expired login still passes. - The plan descriptor reports an explicit xAI api_key reference instead of the profile. Drift guards: - Request-shape digest markers and audiences pinned per table row. - qq-auth's XAI_API_KEY_VARIABLE checked against the xai row. - xtask HTTP canary endpoints checked against the table (qq-config is an xtask dev-dependency only).
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
|
@codex security review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
One
BuiltinAuthowns built-in provider credential policy (PR 3/5, ENG-1066) Replaces eight matches onBuiltinAudiencewithsrc/builtin_auth.rs. The spawn/authenticated gate now parses stored xAI and Codex OAuth logins as a request would (no refresh, no network), so an unreadable login fails up front; an explicit xAIapi_key: is reported in the plan descriptor. Digest markers, audiences,XAI_API_KEYand xtask canary endpoints are pinned against the provider table. No wire or digest change. Verified: new regression tests fail before the fix; affected crates pass; fmt, lint and clippy clean; the remaining failures are the native-command set that also fails onmainin this environment.