Skip to content

fix(init): block planned vault backends (1password, gnome-keyring) - #2

Merged
lorem-dev merged 5 commits into
developfrom
fix/vault-options
May 15, 2026
Merged

lorem-dev merged 5 commits into
developfrom
fix/vault-options

Conversation

@lorem-dev

@lorem-dev lorem-dev commented May 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • locksmith init no longer shows 1password and gnome-keyring as selectable vault backends - they appear as a read-only "Planned (not yet supported)" note in the form description
  • Auto mode (--auto) skips planned backends even when their CLI binary (op, secret-tool) is present in $PATH
  • DetectedVault gains Implemented bool (gate for selection) and PlatformNote string (static platform annotation for display)

Test plan

  • TestRunInit_Auto_SkipsPlannedVaults - auto mode does not select 1password
  • TestHuhPrompter_VaultSelection_PlannedExcluded - planned vault not returned as option
  • TestHuhPrompter_VaultSelection_NoImplemented_Errors - empty implemented list returns error
  • All existing vault selection tests pass with Implemented: true added to fixtures
  • make test-race green on ubuntu and macos

lorem-dev added 5 commits May 14, 2026 07:38
Add Implemented bool to DetectedVault to distinguish backends with a
working plugin (keychain, gopass) from planned ones (1password,
gnome-keyring). Auto-mode now requires both Detected and Implemented
before adding a vault to SelectedVaults.
Partition vaults into implemented/planned in VaultSelection; only
implemented backends appear as multi-select options. Planned backends
are shown in the form description note. Add tests covering the new
exclusion logic and the no-implemented-vaults error path.
@lorem-dev
lorem-dev merged commit 116ddbc into develop May 15, 2026
3 checks passed
@lorem-dev
lorem-dev deleted the fix/vault-options branch May 15, 2026 19:15
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