forked from sneak/secret
Add isValidSecretName() check at the top of GetSecretVersion(), matching the existing validation in AddSecret(). Without this, crafted secret names containing path traversal sequences (e.g. '../../../etc/passwd') could be used to read files outside the vault directory. Add regression tests for both GetSecretVersion and GetSecret. Closes #13 |
||
|---|---|---|
| .. | ||
| integration_test.go | ||
| integration_version_test.go | ||
| management.go | ||
| metadata_test.go | ||
| metadata.go | ||
| path_traversal_test.go | ||
| secrets_version_test.go | ||
| secrets.go | ||
| unlockers.go | ||
| vault_error_test.go | ||
| vault_test.go | ||
| vault.go | ||