Skip to content

Handle new Migrate action and ACK type #4785

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

Open
4 tasks
michalpristas opened this issue Apr 9, 2025 · 0 comments · May be fixed by #4786
Open
4 tasks

Handle new Migrate action and ACK type #4785

michalpristas opened this issue Apr 9, 2025 · 0 comments · May be fixed by #4786
Assignees
Labels
enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@michalpristas
Copy link
Contributor

michalpristas commented Apr 9, 2025

DoD

  • OpenAPI spec is updated to include MIGRATE action
  • Fleet server recognizes new MIGRATE action (definition below)
  • Fleet server can ACK MIGRATE action
  • Tests are up to date with new action set

Action definition

MigrateAction:
 type: object
 properties:
   id:
     type: string
     description: Unique identifier for the action.
   type:
     type: string
     description: Type of the action.
   target_uri:
     type: string
     description: URI of Fleet Server in a target cluster
   enrollment_token:
     type: string
     description: Enrollment token used to enroll agent to a new cluster
   settings:
     description: |
      An embedded JSON object that holds user-provided settings like TLS.
      Defined in fleet-server as a `json.RawMessage`.
     type: string
     format: application/json
     x-go-type: json.RawMessage
 required:
   - id
   - type
   - policy_id

Supported keys for settings are (more details here):

  • ca-sha256
  • certificate-authorities
  • elastic-agent-cert
  • elastic-agent-cert-key
  • elastic-agent-cert-key-passphrase
  • header
  • insecure
  • proxy-disabled
  • proxy-header
  • proxy-url
  • staging
  • tag
  • replace-token

follow camelCase for naming properties in settings json object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant