secret/internal/cli
sneak 7af1e6efa8 Improve PGP unlocker ergonomics
- Support 'secret unlockers add pgp [keyid]' positional argument syntax
- Automatically detect and use default GPG key when no key is specified
- Change PGP unlocker ID format from <keyid>-pgp to pgp-<keyid>
- Check if PGP key is already added before creating duplicate unlocker
- Add getDefaultGPGKey() that checks gpgconf first, then falls back to
  first secret key
- Export ResolveGPGKeyFingerprint() for use in CLI
- Add checkUnlockerExists() helper to verify unlocker IDs

The new behavior:
- 'secret unlockers add pgp' uses default GPG key
- 'secret unlockers add pgp KEYID' uses specified key
- 'secret unlockers add pgp --keyid=KEYID' also works
- Errors if key is already added or no default key exists
2025-07-21 18:57:58 +02:00
..
cli_test.go fix: handle error returns from os.Unsetenv and file.Close (errcheck) 2025-07-09 06:16:13 -07:00
cli.go fix: resolve all revive linter issues 2025-07-15 06:06:48 +02:00
crypto.go Fix GetValue methods to return LockedBuffer internally 2025-07-15 08:59:23 +02:00
generate.go uses protected memory buffers now for all secrets in ram 2025-07-15 08:32:33 +02:00
init.go uses protected memory buffers now for all secrets in ram 2025-07-15 08:32:33 +02:00
integration_test.go fix: update JSON fields from snake_case to camelCase and make tests quiet by default 2025-07-15 07:35:48 +02:00
root.go Remove internal/macse package and fix all linter issues 2025-07-21 17:48:47 +02:00
secrets_size_test.go fmt 2025-07-15 08:33:16 +02:00
secrets.go Remove internal/macse package and fix all linter issues 2025-07-21 17:48:47 +02:00
test_helpers.go fix: resolve errcheck, gosec, and mnd linter errors 2025-07-09 06:59:01 -07:00
test_output_test.go latest from ai, it broke the tests 2025-06-20 05:40:20 -07:00
unlockers.go Improve PGP unlocker ergonomics 2025-07-21 18:57:58 +02:00
vault.go Remove internal/macse package and fix all linter issues 2025-07-21 17:48:47 +02:00
version_test.go uses protected memory buffers now for all secrets in ram 2025-07-15 08:32:33 +02:00
version.go Remove internal/macse package and fix all linter issues 2025-07-21 17:48:47 +02:00