Skip to content

Detach CLI credentials atomically before captured account revocation - #80

Merged
barfle merged 1 commit into
codex/native-pkce-loginfrom
codex/cli-explicit-logout
Nov 7, 2026
Merged

barfle merged 1 commit into
codex/native-pkce-loginfrom
codex/cli-explicit-logout

Conversation

@barfle

@barfle barfle commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

CLI logout previously cleared only its local file. It now captures the latest credentials belonging to the initiating session and clears local authentication in one short file transaction before any network request. Its dedicated Core logout request cannot renew credentials, follow redirects, borrow cookies/netrc/session Basic auth or write into a replacement login. An explicit access rejection may use the captured refresh as revocation-only proof; ambiguous network/server errors are not retried. Organisation API keys are only removed locally.

The command documents account-wide Core sign-out and reports separately when server revocation cannot be confirmed. The paired backend session-authority update in dataplicity-prelude PR3608 is required, including the consumed-refresh revocation-only contract.

Validation: full isolated local suite passes 310 tests and 74 subtests; configured coverage passes at 100% of 1,584 statements. Includes actual loopback HTTP access-to-refresh fallback, Set-Cookie/netrc exclusion, pre-I/O local clearing, identical-byte replacement ownership, concurrent rotation and late-response preservation. Normal cross-platform CI is required before merge.

Private qualification only, targeting codex/native-pkce-login. No main merge, public installer/feed/package release or signing-policy bypass. Matching installed-client/backend staging qualification remains open.

@barfle
barfle marked this pull request as ready for review November 7, 2026 02:28
@barfle
barfle requested a review from a team as a code owner November 7, 2026 02:28
@barfle
barfle merged commit 24307ba into codex/native-pkce-login Nov 7, 2026
10 checks passed
@barfle
barfle deleted the codex/cli-explicit-logout branch November 7, 2026 02:29
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