-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"authelia config validate" should return 1 in case of invalid config #7262
Comments
Please note this response was created using generative AI leveraging previously available information from the repository. This information may be helpful however it is our strong recommendation that you carefully consider the information before blindly applying it. It appears that the behavior you're experiencing with the This might be a bug or an oversight in the implementation of the command. I recommend reporting this issue on the Authelia GitHub repository to bring it to the attention of the developers. They can provide further insights or fixes to ensure that the command behaves as expected. In the meantime, as a workaround, you might consider implementing additional checks in your Ansible role to parse the output of the Here is the link to the Authelia GitHub repository where you can report this issue: Authelia GitHub Issues This comment was generated by Glime. |
This fixes an issue where the exit status for the config validate command returns a 0 instead of 1. Fixes #7262 Signed-off-by: James Elliott <[email protected]>
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: