Skip to content

feat(auth): prepare opaque credential acceptance and growth-safe CLI guidance - #86

Merged
purpshell merged 8 commits into
mainfrom
codex/mr-c-opaque-credentials
Nov 24, 2026
Merged

purpshell merged 8 commits into
mainfrom
codex/mr-c-opaque-credentials

Conversation

@purpshell

@purpshell purpshell commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Adds account-device CLI profiles and seven account commands: login, list, use, status, logout, teams and projects.

  • Browser-approval sign-in through the configured Console /device URL. Login prints the approval URL and code, and never opens a browser or accepts a session token on the command line.
  • The account session lives in its own profile file and OS keyring namespace. It never reaches a machine SDK client: machine clients now require an explicit API key, project token or client token.
  • account teams and account projects are read-only and paged. There is no account raw-request, key-minting or messaging command.
  • The browser build refuses all seven commands before reading its environment or fetching.

The API producer is polymorfa/polymorfa#880, which is merged.

This update merges current main. main already carries the opaque credential fixtures, and the organization-to-team wording rename belongs to #99, so this PR now contains only the account-device feature and its credential vector tests.

Verification: npm run verify passes on the merged tree, built against the checked SDK source d3affdf per contracts/connections.json.

  • 1321 of 1321 tests pass, with lint, typecheck and formatting clean.
  • The command reference has 397 commands: 388 plus the 7 account commands.
  • The browser verifier, package dry-run and bundled runtime checks pass, and the production audit found 0 vulnerabilities.

Not tested: a real OS keyring, a real account, and registry installation of a published Connections SDK. Release still needs the accepted published SDK pin noted in contracts/connections.json.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

The included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 70 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: e7ae6e90-8ab3-4f49-85ef-7ca84c4141b9
Commits

Reviewing files that changed from the base of the PR and between fb0a317 and 68e2254.

Files selected for processing: 30

  • .prettierignore
  • README.md
  • contracts/cli-reference.json
  • docs/internal/2026-11-05-cli-account-device-source.md
  • docs/opaque-credentials-cutover.md
  • package.json
  • scripts/verify-browser.mjs
  • src/account-device/command.ts
  • src/account-device/factory.ts
  • src/account-device/service.ts
  • src/account-device/storage.ts
  • src/account-device/transport.ts
  • src/browser/command-support.ts
  • src/browser/registry.gen.ts
  • src/commands/account/list.ts
  • src/commands/account/login.ts
  • src/commands/account/logout.ts
  • src/commands/account/projects.ts
  • src/commands/account/status.ts
  • src/commands/account/teams.ts
  • src/commands/account/use.ts
  • src/sdk/client.ts
  • test/account-device/commands.test.ts
  • test/account-device/machine-refusal.test.ts
  • test/account-device/service-fixture.ts
  • test/account-device/service.test.ts
  • test/account-device/storage.test.ts
  • test/account-device/transport.test.ts
  • test/config/credential-vectors.test.ts
  • test/fixtures/machine-credentials-v1.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@purpshell
purpshell force-pushed the codex/mr-c-opaque-credentials branch from 5cfb098 to e4708d4 Compare October 28, 2026 04:54
@purpshell
purpshell force-pushed the codex/mr-c-opaque-credentials branch from e4708d4 to 233ec3b Compare October 30, 2026 01:42
@purpshell
purpshell marked this pull request as ready for review October 31, 2026 04:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T06:27:37.891595Z 68e2254 Manual request
🔒 Security Review ✅ Completed 2026-11-24T06:29:36.694526Z 68e2254 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: 233ec3b204

ℹ️ 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 test/config/credential-vectors.test.ts Resolved
Comment thread src/commands/auth/login.ts Resolved
Take main's credential and wording state (opaque key fixtures already landed
there; the team-key rename belongs to cli#99), and keep only this PR's account
device feature: the seven account commands, their service and storage, browser
refusal checks, the README section and the credential vector tests. Follow the
SDK's validateTeamApiKey export and regenerate the command reference.
@purpshell

Copy link
Copy Markdown
Member Author

cli#99, the organization-to-team rename, merged into main as f244f9f, so this PR can now merge main on top.

You no longer need to pin the preview SDK for the rename. Since cli#100, main runs CI against the SDK built from source at the commit in contracts/connections.json (sdks d3affdf4), and that commit already includes the team rename. The registry pin stays 0.1.0-dev.20261010020302, so the prerelease guard is unaffected. To reproduce CI locally, check out sdks at that commit and run npm run ci:sdk-source -- --sdk-root <path>.

@purpshell

Copy link
Copy Markdown
Member Author

@codex review

@purpshell

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 68e22546d3

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 68e22546d3

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@purpshell
purpshell merged commit 3c246d5 into main Nov 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant