Validate configuration #9364
Labels
exp/intermediate
Prior experience is likely helpful
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
P2
Medium: Good to have, but can wait until someone steps up
topic/config
Topic config
Checklist
Description
It currently seems possible to feed
ipfs config
erroneous keys, which will be added to the configuration file. This can lead to unexpected behaviour in case of typos/configuration errors, e.g. in automated deployments.What I would expect is that IPFS commands will fail with a (documented) non-zero exit status for invalid configuration keys and/or values.
Example
Correct key
Incorrect key
In addition,
ipfs
commands will not err and merely ignore invalid/additional configuration keys.Possibly related: #8925, #8776, #8993
The text was updated successfully, but these errors were encountered: