-
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] policy revision_idx source of truth #173538
Comments
Pinging @elastic/fleet (Team:Fleet) |
I think it make sense to have kibana to be the source of truth for revision, I am wondering if we can have another mechanism in fleet server. |
@michel-laterman I do not think it should be possible for fleet-server to increment revision idx, we will not be able to know when a policy is out-of-date, and the new revision will not match our saved objects, I am wondering if it's better to include a new field? write to a new index fleet-server processed policies? (thinking loud here) |
We increment the coordinator_idx/revision_idx in order to signal the policy monitor to generate new api keys as part of output migration for v8.5.0: https://github.com/elastic/fleet-server/blob/main/internal/pkg/dl/migration.go#L187-L205. Or we may be able to try to change the @AndersonQ if you remember any details of the issue (elastic/fleet-server#1672) we would welcome your input |
@michel-laterman, what I remember is pretty much what I commented in the code, the |
elastic/fleet-server#3131 has been updated so that fleet-server will no longer increment the |
The PR elastic/fleet-server#3131 to remove the fleet-server coordinator changes some migration logic to increment the
revision_idx
instead of the removedcoordinator_idx
in a.fleet-policy
document in order to force fleet-server to reload the policy and generate a new outputs block.However, fleet's current source of truth for this attribute is part of the agent policy saved object so we may run into a conflict as they differ.
The text was updated successfully, but these errors were encountered: