Repository navigation
refactor(auth): own built-in credential audiences in qq-auth (ENG-1066) - #346
Conversation
|
@codex review |
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: 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". |
b53bd17 to
5f22804
Compare
|
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: Didn't find any major issues. Chef's kiss. 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". |
Slice AP3. qq-provider exported XAI_CREDENTIAL_ENDPOINT, a vendor credential audience it never used, and qq-config re-exported it to the root. Both audiences now live beside the stored credentials they bind in qq-auth (OPENAI_CODEX_CREDENTIAL_ENDPOINT, XAI_CREDENTIAL_ENDPOINT); the runtime, doctor and auth CLI use them instead of URL literals. Values are unchanged. The design note and plan say what remains for AP7.
5f22804 to
4ea47cc
Compare
AP3: own built-in credential audiences in qq-auth
Spec: docs/plans/auth-providers.md (AP3) Linear: ENG-1066 Stacked on: #345
Behaviour-preserving refactor. No user-visible change. Every audience value is identical.
What changed
qq-providerno longer exportsXAI_CREDENTIAL_ENDPOINT. It named a vendor credential audience but never used it, andqq-configonly re-exported it to the root.qq-authnow exportsOPENAI_CODEX_CREDENTIAL_ENDPOINT(https://chatgpt.com) andXAI_CREDENTIAL_ENDPOINT(https://api.x.ai), next to the stored credentials they bind.codex.rsandxai.rsuse them.src/runtime.rs,src/doctor.rsandsrc/main.rs(built_in_endpoint) use theqq-authconstants instead of URL literals.docs/design/providers.mdno longer lists the constant amongqq-provider's exports and saysqq-authowns vendor audiences.qq-auth."openai-codex/{}"and"xai/{}"stored-name literals in root code. A fallible shared helper would add error paths those sites don't have.How verified
cargo xtask check
Head
b53bd17bed06vsorigin/main; 15 changed file(s); scope: qq, qq-auth, qq-client, qq-config, qq-core, qq-harness, qq-mcp, qq-provider, qq-server, qq-tui, xtask.cargo fmt --all -- --checkcargo xtask lintcargo clippy --color never -p qq -p qq-auth -p qq-client -p qq-config -p qq-core -p qq-harness -p qq-mcp -p qq-provider -p qq-server -p qq-tui -p xtask --all-targets --all-features -- -D warningscargo nextest run --color never --profile default -p qq -p qq-auth -p qq-client -p qq-config -p qq-core -p qq-harness -p qq-mcp -p qq-provider -p qq-server -p qq-tui -p xtaskcargo clippy --color never -p qq-provider --no-default-features --features test-support --all-targets -- -D warningscargo nextest run --color never --profile default -p qq-provider --no-default-features --features test-supportAll gates passed in 253.4s.
cargo xtask smoke: 6/6.Compatibility
qq_provider::XAI_CREDENTIAL_ENDPOINTandqq_config::XAI_CREDENTIAL_ENDPOINTare removed in favour ofqq_auth::XAI_CREDENTIAL_ENDPOINT. All three crates arepublish = false, and every in-workspace user is migrated.