git.schokokeks.org
Repositories
Help
Report an Issue
derivepassphrase.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
2eaaa7f
Branches
Tags
documentation-tree
master
0.1.0
0.1.1
0.1.2
0.1.3
0.2.0
0.3.0
0.3.1
0.3.2
derivepassphrase.git
docs
changelog.d
20241008_094814_the-13th-letter_vault_config_falsy.md
Signal and list falsy value cleanup steps that were actually performed
Marco Ricci
commited
2eaaa7f
at 2024-10-09 16:20:12
20241008_094814_the-13th-letter_vault_config_falsy.md
Blame
History
Raw
### Changed - In `derivepassphrase vault`, accept `key` and `phrase` entries just like vault(1) does: `key` always overrides `phrase` in the configuration, no matter the level. This is a command-line only change. - In `derivepassphrase vault`, when importing settings, accept falsy values everywhere `vault` does, with a warning. Depending on the setting, they are equivalent to zero, the empty string, or "not set". ([#17]) This is a command-line only change, and only affects importing. The API provides a new function to normalize falsy settings, but still otherwise requires settings to be of the correct type. Storing a malformed configuration with such falsy values will still generate errors when `derivepassphrase vault` loads the settings from disk. [#17]: https://github.com/the-13th-letter/derivepassphrase/issues/17