-
Notifications
You must be signed in to change notification settings - Fork 8.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
[Fleet] Add a reset API #118214
Comments
Pinging @elastic/fleet (Team:Fleet) |
It'd be nice if this API provided two modes:
Open questions:
|
I think it will make sense to have a reset API for 7.x. This will really help as in most of our SDH we provide information to reset default policies. One good starting point and the less risky option will be to implement a reset preconfigured policy, something like this:
That API will delete all the saved object related to the default policies:
Then we should clean all .fleet-* internal for these policies
Then this should call the setup to restore the preconfigured policies. |
++ this keeps coming up in SDHs. I'm +1 on adding the very specific API @nchaulet mentioned above only to 7.x for the time being to help with those cases and only consider adding in 8.x if we still have not solved the problem fully (which I believe we have). Once we align on a proposal, let's open a separate issue and schedule this for early January. We can consider a more generic reset API in the future as needed. |
@kpollich any feedback on the proposal in #118214 (comment) based on your experience in the SDHs? |
100% on board with @nchaulet's proposal for a very specific API. We run through this exact process when recreating the cloud policy on a consistent basis in SDH's. |
Thanks for taking a look, I'll open a separate issue and add to our board. |
Closing this as we haven't had a need for this since #121887 was implemented. |
The text was updated successfully, but these errors were encountered: