Receive a provisioning callback
- Base URL
-
https://{kibana_url}
- POST /api/fleet/iac_provisioner/callbacks/{callbackId}
- POST /s/{space_id}/api/fleet/iac_provisioner/callbacks/{callbackId}
Called by the deployment launched from Kibana to report what it created. The request is not authenticated: present the one-time token issued when the callback was created in the x-elastic-callback-token header. The token is not an Elasticsearch credential and admits nothing but this report. The body is shaped for the record's cloud provider and carries origin_proof, the provider's proof that the report was sent from the account of what it reports, bound to this callback and these values; a report whose proof does not verify returns 401 and leaves the record waiting. A deployment launched from a blueprint that sends the proof (for AWS, aws/workload_identity_federation 1.5.0 and later, as recorded on the callback at launch) must send it, and a report without one is a 400; a deployment launched before that may still report without it. For AWS, the CloudFormation stack's Lambda reports role_arn and stack_arn, which must be in the same account, and the proof is an STS GetCallerIdentity request signed from that account with the callback id and the SHA-256 of the reported values among its signed headers; Kibana forwards it to sts.<region>.amazonaws.com, so it needs egress to the regional STS endpoints. The signer must also be named as the stack's callback function and its role would be, which only turns away a stray principal: anyone in the account can pick those names, so the account is what the proof establishes. While the record is pending, a repeat report with the same values succeeds and different values return 409; an expired or cancelled record returns 410.
Path parameters
-
space_idstringoptional -
An identifier for the space. If
space_idis not provided in the URL, the default space is used. Refer to Spaces for more information.
Request body
-
origin_proofobject -
The proof that the report was sent from the account of the reported role and stack: a signed STS
GetCallerIdentityrequest, made by the callback function with the callback id and the SHA-256 of the reported values among its signed headers. Kibana forwards it to the regional STS endpoint; whoever answers identifies the signer. Optional while stacks launched before the proof was sent can still report.
Responses
The values were stored, or were already stored
Bad Request
Unauthorized
Conflict