forked from sneak/secret
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. |
||
|---|---|---|
| .. | ||
| integration_test.go | ||
| integration_version_test.go | ||
| management.go | ||
| metadata_test.go | ||
| metadata.go | ||
| secrets_version_test.go | ||
| secrets.go | ||
| unlockers.go | ||
| vault_error_test.go | ||
| vault_test.go | ||
| vault.go | ||