-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add command to validate config #3455
Comments
I also use the |
Even if it was a simple syntax check I would like to use it with test-kitchen to ensure the config template was rendered correctly. |
Hi @meirish , is this feature request a possibility? |
To ask more broadly - is the request for a generic HCL syntax validation check? - I'm just curious what are the exact details and criteria in terms of a well-qualified schema? - eg would it be checking that each matching stanza is in the required type? I agree that some minimal HCL syntax checking would be nice in case of any unforeseen / empty variables. I'm wondering if |
Beyond syntax validation it'd be nice to validate the storage backend configuration. That's probably quite a bit more effort, but just loading the config is a good start, to just check the syntax. |
Issues that are not reproducible and/or not had any interaction for a long time are stale issues. Sometimes even the valid issues remain stale lacking traction either by the maintainers or the community. In order to provide faster responses and better engagement with the community, we strive to keep the issue tracker clean and the issue count low. In this regard, our current policy is to close stale issues after 30 days. Closed issues will still be indexed and available for future viewers. If users feel that the issue is still relevant but is wrongly closed, we encourage reopening them. Please refer to our contributing guidelines for details on issue lifecycle. |
@narayan-iyengar - do you have any inputs or ideas if this is already been worked on or scheduled for release in a foreseeable version? - it would be nice to get a status update before the 5th anniversary of the request. The request is still relevant since any bad HCL that may prevented with a check (even most minimally) is better than a bad file / ConfigMap resulting in the failure of a node or cluster. What's more most apps like |
Re-quoting note from #8338:
|
This one would be specially useful to validate vault agent templates and broken syntax for template files. Same way it's possible consul-template. |
Feature Request:
Environment:
Please add a vault command to validate its config file, like consul has
consul validate
. This would be very helpful for example when deploying vault with puppet, because puppet can verify a new config file before deploying it withvalidate_cmd
.The text was updated successfully, but these errors were encountered: