Skip to content

Secret storage: KDBX enumeration, shared session timeout, agent UI hints#1041

Merged
mfat merged 1 commit into
feature/pluggable-secret-storage-backendsfrom
cursor/secret-storage-improvements-d9ff
Jun 30, 2026
Merged

Secret storage: KDBX enumeration, shared session timeout, agent UI hints#1041
mfat merged 1 commit into
feature/pluggable-secret-storage-backendsfrom
cursor/secret-storage-improvements-d9ff

Conversation

@mfat

@mfat mfat commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up improvements to the pluggable secret storage layer based on architecture review.

Changes

  • KdbxBackend.iter_credentials — enumerates the dedicated sshPilot group when unlocked, using the sshpilot_type custom property (with parse_account fallback) so credential export/orphan detection works for the KeePass backend.
  • _SessionIdleTimeout — shared sliding idle-window helper used by both BitwardenBackend and KdbxBackend (replaces duplicated timeout code).
  • Documentation alignmentSecretManager class docstring and AGENTS.md now describe auto vs explicit selection semantics accurately (removed nonexistent authoritative hook).
  • Agent mode UISecretManager.persists_secrets() drives:
    • Preferences ▸ Secret Storage info row + combo subtitle when SSH Agent Only is selected
    • Hidden "Store password/passphrase" checkbox with explanatory caption in password dialogs
    • Same treatment in the standalone askpass passphrase prompt

Tests

  • test_iter_credentials_enumerates_sshpilot_group
  • test_iter_credentials_empty_when_locked
  • test_persists_secrets_false_for_agent

All 72 tests in test_secret_storage.py and test_kdbx_backend.py pass.

Open in Web Open in Cursor 

- Add KdbxBackend.iter_credentials to enumerate the sshPilot group when unlocked
- Extract shared _SessionIdleTimeout helper for Bitwarden and KeePass backends
- Align SecretManager docstring and AGENTS.md with auto vs explicit semantics
- Add persists_secrets() and UI hints when SSH Agent Only is selected
- Hide store-password controls in password/passphrase dialogs for agent mode

Co-authored-by: Mehdi <mfat@users.noreply.github.com>
@mfat mfat marked this pull request as ready for review June 30, 2026 10:01
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@mfat mfat merged commit 7391cb4 into feature/pluggable-secret-storage-backends Jun 30, 2026
4 of 6 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.

2 participants