-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Fleet] Add bulk migration endpoint #223956
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 bulk migration endpoint #223956
Conversation
|
Pinging @elastic/fleet (Team:Fleet) |
|
@elasticmachine merge upstream |
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --update'
x-pack/platform/plugins/shared/fleet/server/services/agents/migrate.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/fleet/server/routes/agent/migrate_handlers.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/fleet/server/services/agents/crud.ts
Outdated
Show resolved
Hide resolved
…ma, and cleaned up policy lookup
…Supplementing/kibana into feature-bulk-migration-endpoint
|
@elasticmachine merge upstream |
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --update'
…Supplementing/kibana into feature-bulk-migration-endpoint
juliaElastic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| certificate_authorities: schema.maybe(schema.string()), | ||
| elastic_agent_cert: schema.maybe(schema.string()), | ||
| elastic_agent_cert_key: schema.maybe(schema.string()), | ||
| elastic_agent_cert_key_passphrase: schema.maybe(schema.string()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that these are in the requirements, but it's not clear to me what they're needed for. Are they just passed to the action? Are they saved somewhere afterwards?
I'm asking because we might have issues if we store these keys as plain text, they should be saved as secrets in that case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that these are in the requirements, but it's not clear to me what they're needed for. Are they just passed to the action? Are they saved somewhere afterwards? I'm asking because we might have issues if we store these keys as plain text, they should be saved as secrets in that case.
They're passed to the action as additional settings. Maybe @michalpristas can expand more if needed.
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Page load bundle
History
|
Summary
Closes #217618
POST /api/fleet/agents/bulk_migrateThe params are:
agents(required) - an array of Agent ID'senrollment_token(required) - the enrollment token retrieved from the remote clusteruri(required) - the URL of the remote cluster to enroll the agents intosettings(optional) -additional settings such as certificate authorities, etcChecklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesIdentify risks
N/A
Release Notes