Deployments
Preview

Which secrets a restore of a snapshot would find wrong

Compares the deployment's secrets as they are now with how they were while the snapshot ran: missing, stale, or with a fingerprint that changed. Secrets that are fine are not listed.

GET
/deployments/{deploymentId}/secret-refs/preflight
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid
snapshotId*string
Formatuuid

Response Body

The secrets to be warned about.

application/json
  1. response
deploymentId*string
Formatuuid
snapshotId*string
Formatuuid
problems*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/secret-refs/preflight?snapshotId=497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",  "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",  "problems": [    {      "name": "string",      "kind": "missing",      "detail": "string",      "was": "string",      "now": "string"    }  ]}