Skip to content
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

Command to validate/lint guardian policy #237

Open
bsushmith opened this issue Aug 1, 2022 · 1 comment
Open

Command to validate/lint guardian policy #237

bsushmith opened this issue Aug 1, 2022 · 1 comment
Labels
enhancement New feature or request policy

Comments

@bsushmith
Copy link
Member

Summary

At the moment, guardian policy validation is done on creation. And any testing for the intricate steps require creating a policy and doing the whole appeal flow just to check policy steps.

We should have a command/api similar to guardian policy validate or guardian policy lint so that one can run it and check if the policy file that they have created is valid. And if invalid, detailed error output to describe what is incorrect.

Additional context
We might not be able to validate everything in policy without going through the appeal flow itself, but having something to validate at least a few things is better and we can always extend it later.

@rahmatrhd
Copy link
Member

this relates to #128, having dry-run capability on creating policy can help to validate the policy config

@mabdh mabdh changed the title command to validate/lint guardian policy Command to validate/lint guardian policy Aug 2, 2022
lifosmin pushed a commit to lifosmin/guardian that referenced this issue Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request policy
Projects
None yet
Development

No branches or pull requests

2 participants