1
0
forked from sneak/secret
secret/internal
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
..
cli Add cross-vault move command for secrets 2025-12-23 15:24:13 +07:00
secret Fix unlocker rm to succeed when keychain item is missing 2025-12-23 14:14:14 +07:00
vault fix: NumSecrets() now correctly counts secrets by checking for current file 2026-02-08 12:04:15 -08:00