Skip to content

Store CLI credentials in Linux Secret Service - #360

Merged
ctfbruce merged 4 commits into
mainfrom
feat/identity-access-followup-20261002
Oct 2, 2026
Merged

ctfbruce merged 4 commits into
mainfrom
feat/identity-access-followup-20261002

Conversation

@ctfbruce

@ctfbruce ctfbruce commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

CLI login can now save its local Debuglet credential in Linux Secret Service. The default auto mode selects it when secret-tool and a desktop D-Bus session are available; headless machines retain the explicit owner-only file fallback. A locked or failed system store is reported rather than silently downgraded. Stored metadata contains an opaque reference, and credentials remain bound to the dispatcher and profile. Logout revokes the server credential and removes its local entry; interrupted or failed saves trigger revocation.

The authentication upgrade guide now covers backups, an offline rehearsal, cutover, rollback and existing recovery codes. A migration regression proves historical accounts retain their separate ownership without acquiring invented credentials or provider identities. UUID authentication was already rejected and no new account-claim mechanism is added.

References #225 and #226. The existing provider-neutral browser/headless protocol was merged in #357. Historical accounts with no verifiable credential still need an independently verified recovery process, and real CILogon/hosted cutover acceptance remains external.

Validation: focused Linux connection/CLI tests pass under the race detector, the CLI builds, and the schema-5-to-current ownership migration test passes. A real Secret Service and native TLS dispatcher rehearsal passed system-store selection without plaintext metadata, persistence after keyring restart, headless device approval, old-item cleanup, immediate server revocation on logout, and explicit 0600 file fallback. It used an isolated D-Bus/XDG session and an account-key fixture for browser approval; no hosted provider was called. All 16 checks pass in CI run 37004262952. No deployment is included.

@ctfbruce
ctfbruce marked this pull request as ready for review October 2, 2026 12:16
@ctfbruce
ctfbruce merged commit 73a348d into main Oct 2, 2026
16 checks passed
@vincent10400094
vincent10400094 deleted the feat/identity-access-followup-20261002 branch October 8, 2026 00:20
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