Receive a provisioning callback

Base URL
https://{kibana_url}
Auth

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_id string optional

An identifier for the space. If space_id is not provided in the URL, the default space is used. Refer to Spaces for more information.

callbackId string · min length: 1 · max length: 128 required

ID of the callback record, as issued to the launched deployment.

Header parameters

kbn-xsrf string required

A required header to protect against CSRF attacks

Request body

role_arn string · min length: 1 · max length: 2048 required

ARN of the IAM role the stack created.

stack_arn string · min length: 1 · max length: 2048 required

ARN (StackId) of the CloudFormation stack.

Responses

The values were stored, or were already stored

application/json
status enum required

State of the callback record. pending: waiting for the deployment. receiving: a report is being applied. received: values stored and the identity exists. cancelled: the form stopped waiting and the token is refused.

Values: pending receiving received cancelled
Base URL
https://{kibana_url}