-
Notifications
You must be signed in to change notification settings - Fork 563
[FR] git synchronize #362
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
Comments
I think this could use the
|
Hey @SHolzhauer I've been talking with @brokensound77 and had some discussions in slack and I think we have an option to sync between this repo to and from Kibana. Here's my proposal for the high level workflow and design:
How's that plan sound to you? |
@rw-access LGTM Couple of notes:
On the |
Great point about the state file. CI/CD solutions generally don't modify files in version control so that's problematic. I think a Kibana saved object might be a more appropriate place to store that state, since it's persistent and outside of VCS. For Elastic provided rules, we don't have many options because the rules themselves are actually immutable. So we can't change them via API even if we wanted to. We're also working on a more native upgrade mechanism in Kibana, hopefully as simple as an "upgrade rules" button that can happen at any time, without needing a stack update. You can always layer exceptions on top of the rules when you want deviations in the logic but want to remain subscribed to the rule. |
Thinkin about it, wouldn't you be able to use the |
Hey, @SHolzhauer haven't updated you for a while. We are planning some refactors to the repository internals, and I think that we'll unlock some nice new functionality to make the I think our refactor will span a month or so, and hopefully this becomes a natural solution that emerges easily from there. 🤞. I think this is a really cool use case, and something that I think will be a huge value add for organizations that are very CI/CD leaning for rules management and "detections as code" thinking. |
@rw-access thank you for the update, looking forward to it! |
Hey @rw-access, I was curious if you had any update regarding this issue? We are starting to notice more and more bugs with our current work-around/implementation and can really use this feature 😃 |
hey @SHolzhauer, yeah here's some updates for you and your team:
given all of that, my hope is that you can specify where your within that directory, you'd put all of the configuration. it would have and if you want, you could put that directory inside your own git repo or VCS it however you like. then you don't have to worry about forking this repo and dealing with merge conflicts. |
Sounds promising, looking forward. And thank you for the blazing fast response! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This has been closed due to inactivity. If you feel this is an error, please re-open and include a justifying comment. |
Just wanted to check if this functionality is still planned? |
Update November 30Based on recent discussions, as we plan to move forward, we will want to support custom rules only (not prebuilt rules for now). |
This is now supported for custom rules via #3889. Please feel free to re-open this issue or create a new one if you run into any trouble. Thanks! |
Is your feature request related to a problem? Please describe.
Within organizations there is a desire to "version control" the rules/code in use.
SOC teams want to organize and make documented, incremental changes to their custom
detection-rules and have a "back-up" of their code in case of data loss.
This is an extension of #17 as discussed in the issue.
Describe the solution you'd like
We need a way to
This process should
This FR should not
Possible command could be:
python -m detection_rules kibana git-sync
Additional context
#17
The text was updated successfully, but these errors were encountered: