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

Facilitate the import of multiple rego files in weaver registry check #259

Closed
lquerel opened this issue Jul 24, 2024 · 0 comments · Fixed by #284
Closed

Facilitate the import of multiple rego files in weaver registry check #259

lquerel opened this issue Jul 24, 2024 · 0 comments · Fixed by #284
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@lquerel
Copy link
Contributor

lquerel commented Jul 24, 2024

Currently, the --policy parameter allows specifying a single rego file. It would be useful to be able to import all rego files present in a directory. I see two possible approaches:

  • Extend the existing --policy parameter to accept a directory and modify the internal logic of weaver to import, in this case, all files with the .rego extension.
  • Add a new --policies parameter to specify a directory and automatically import all **/*.rego files.

I don’t have a strong preference for either approach. Feel free to share your opinion in the comments of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant