Refuse config keys that no setting has (closes #419)
check / check (push) Successful in 14m3s
check / check (push) Successful in 14m3s
A misspelled or unknown config key was accepted silently, so a typo in exclude backed up everything it meant to leave out. Loading now refuses a key that no setting has, at any depth, naming its dotted path and, when it is in the file, its line; keys brought in by ${...} references are checked too. config set refuses an unknown key. A top-level env: section stays accepted, since the config library uses it. Anchors that contain themselves fail with an error.
Model: opus-5-5
This commit was merged in pull request #443.
This commit is contained in:
1 parent
028a166256
commit
d8d13d1c8b
6 files changed
+462
-47
No files matched your search
@@ -313,12 +313,10 @@ when the next path element is a number (so
|
||||
`vaultik config set age_recipients.0 age1...` works on a file without
|
||||
`age_recipients`), otherwise as a map. If the config loads, a change after which
|
||||
it would not, such as `vaultik config set compression_level 99`, is refused and
|
||||
the file is left unchanged. A config that does not load, such as the one
|
||||
`config init` writes before `storage_url` is set or one with a `${ENV:...}`
|
||||
reference to a variable not set in this shell, is checked one setting at a time:
|
||||
only a change after which the changed setting cannot be read, such as one giving
|
||||
it the wrong type (a single value where a list belongs or a word where a number
|
||||
belongs), is refused.
|
||||
the file is left unchanged. A config that does not load is checked one setting
|
||||
at a time. Examples are the file `config init` writes before `storage_url` is
|
||||
set, and one with a `${ENV:...}` reference to a variable not set in this shell.
|
||||
In such a config, an unknown key or a value of the wrong type is refused.
|
||||
|
||||
**`snapshot create`**: Perform incremental backup of configured snapshots.
|
||||
|
||||
|
||||
Reference in new issue
Block a user