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

[Fleet] Update agent policy saved objects to ensure Fleet idempotency #120613

Closed
1 task done
Tracked by #118423
kpollich opened this issue Dec 7, 2021 · 0 comments · Fixed by #120776
Closed
1 task done
Tracked by #118423

[Fleet] Update agent policy saved objects to ensure Fleet idempotency #120613

kpollich opened this issue Dec 7, 2021 · 0 comments · Fixed by #120776
Assignees
Labels
enhancement New value added to drive a business result Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@kpollich
Copy link
Member

kpollich commented Dec 7, 2021

When an agent policy is created through preconfiguration, we need to ensure a unique ID is generated to guarantee idempotency in multi-Kibana environments. Currently, our default policies do not require an ID to be specified in preconfiguration, so we need to make a change that guarantees a unique ID is generated when preconfiguration creates those policies.

  • When creating default agent policies during preconfiguration, generate a seeded uuidv5 id from a hard-coded string value
    • For the default Fleet policy: default-policy
    • For the default Fleet Server policy: default-fleet-server-policy

All other agent policies already require a unique ID in kibana.yml when preconfigured, so we shouldn't need to worry about idempotency there.

@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 7, 2021
@kpollich kpollich self-assigned this Dec 7, 2021
@kpollich kpollich changed the title Agent policies [Fleet] Update agent policy saved objects to ensure Fleet idempotency Dec 7, 2021
@kpollich kpollich added the Team:Fleet Team label for Observability Data Collection Fleet team label Dec 7, 2021
@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 7, 2021
@kpollich kpollich added the enhancement New value added to drive a business result label Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant