-
Notifications
You must be signed in to change notification settings - Fork 172
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
Generate multiple rules from multiple files #252
Comments
Hi @proffalken! Indeed! This was intended. As you saw, the validation has the discovery of manifests on directories, it only needs to validate and doesn't have an output, so it's safe to do it. On the other part, the generator needs an output and we can't ask the user where to place the rules, so not allowing to do this was a way of avoiding this complexity (on the code and on the user). Thinking about it, maybe we could manage something easy for the user with some validations, we could allow the user using a directory as output and use the same names as the input specs for the outputs, what do you think? |
@slok that makes sense, thanks. FWIW, this is exactly what the bash script I've written to wrap around Sloth does. We start out with a directory structure similar to the following:
and end up with the following after running the script:
where The ability to pass it an |
Thanks for the explanation! Makes total sense, lets do it then 🚀 |
As part of our CI/CD chain, we want to be able to run sloth against a number of files.
This works for validation, but not for the generation of alerts/rules:
If we can't generate the files in batches then we'll need to iterate over the files, however as our plan is to use the docker container for this it would add significant overhead to our pipeline
The text was updated successfully, but these errors were encountered: