secret/internal/vault
clawbot 341428d9ca fix: NumSecrets() now correctly counts secrets by checking for current file
NumSecrets() previously looked for non-directory, non-'current' files
directly under each secret directory, but the only children are
'current' (file, excluded) and 'versions' (directory, excluded),
so it always returned 0.

Now checks for the existence of the 'current' file, which is the
canonical indicator that a secret exists and has an active version.

This fixes the safety check in UnlockersRemove that was always
allowing removal of the last unlocker.
2026-02-08 12:04:15 -08:00
..
integration_test.go Switch from relative paths to bare names in pointer files 2025-12-23 13:43:10 +07:00
integration_version_test.go uses protected memory buffers now for all secrets in ram 2025-07-15 08:32:33 +02:00
management.go Switch from relative paths to bare names in pointer files 2025-12-23 13:43:10 +07:00
metadata_test.go fix: resolve exported type stuttering issues (revive) 2025-06-20 12:47:06 -07:00
metadata.go fix: resolve all revive linter issues 2025-07-15 06:06:48 +02:00
secrets_version_test.go uses protected memory buffers now for all secrets in ram 2025-07-15 08:32:33 +02:00
secrets.go Add cross-vault move command for secrets 2025-12-23 15:24:13 +07:00
unlockers.go Switch from relative paths to bare names in pointer files 2025-12-23 13:43:10 +07:00
vault_error_test.go Replace symlinks with plain files containing relative paths 2025-12-23 11:53:28 +07:00
vault_test.go fix: NumSecrets() now correctly counts secrets by checking for current file 2026-02-08 12:04:15 -08:00
vault.go fix: NumSecrets() now correctly counts secrets by checking for current file 2026-02-08 12:04:15 -08:00