Welcome
Detailed Description
It would be helpful to have a command which only verifies the configuration file against the schema and possibly any additional required rules (e.g. to ensure that there are any certificates or challenges defined). e.g. lego verify.
This new command should return a non-zero exit code if the config file is not valid.
It could be used to ensure that a given configuration file is syntactically and semantically valid before attempting to actually use the config file and without having to resort to manual validation with JSONSchema (as proposed in #3171).
I'd like to use this command to verify a generated configuration file as part of configuration management in order to outright reject invalid generated configuration files from being used in a live environment.
Effective version of lego
v5.3.1
How do you use lego?
Binary
In which context are you using lego?
Personal and professional use
🌱 Supporting the Maintainers
Confirmation
Welcome
Detailed Description
It would be helpful to have a command which only verifies the configuration file against the schema and possibly any additional required rules (e.g. to ensure that there are any certificates or challenges defined). e.g.
lego verify.This new command should return a non-zero exit code if the config file is not valid.
It could be used to ensure that a given configuration file is syntactically and semantically valid before attempting to actually use the config file and without having to resort to manual validation with JSONSchema (as proposed in #3171).
I'd like to use this command to verify a generated configuration file as part of configuration management in order to outright reject invalid generated configuration files from being used in a live environment.
Effective version of lego
v5.3.1
How do you use lego?
Binary
In which context are you using lego?
Personal and professional use
🌱 Supporting the Maintainers
Confirmation