"authelia config validate" should return 1 in case of invalid config #7262
Labels
priority/6/very-low
Very Low priority items
status/in-progress
Work is in progress
type/bug
Confirmed Bugs
Version
v4.38.8
Deployment Method
Bare-metal
Reverse Proxy
HAProxy
Reverse Proxy Version
No response
Description
authelia config validate
exit code should be1
in case of invalid config.I'm using it in my ansible role to validate my config before deployment but this command exit code is always
0
even on if the config contain errors.Reproduction
authelia config validate --config <your config file>
echo $?
=> print0
Expectations
authelia config validate
return code should not be0
in case of invalid config.Configuration (Authelia)
No response
Build Information
Logs (Authelia)
Logs (Proxy / Application)
No response
Documentation
No response
Pre-Submission Checklist
I agree to follow the Code of Conduct
This is a bug report and not a support request
I have read the security policy and this bug report is not a security issue or security related issue
I have either included the complete configuration file or I am sure it's unrelated to the configuration
I have either included the complete debug / trace logs or the output of the build-info command if the logs are not relevant
I have provided all of the required information in full with the only alteration being reasonable sanitization in accordance with the Troubleshooting Sanitization reference guide
I have checked for related proxy or application logs and included them if available
I have checked for related issues and checked the documentation
The text was updated successfully, but these errors were encountered: