Model
What secrets are used for
Referencing a secret in a monitor
HTTP monitors can use a secret inline in a header value or the request body with{{SECRET.KEY}} (spaces inside the braces are allowed: {{ SECRET.KEY }}). The stored config keeps the reference; the value is filled in by the worker at check time and is never written back, logged or shown in check results.
- Not in the URL. A secret in the URL (or any field other than header values and the body) is refused at save with
MONITOR_SECRET_REFERENCE_INVALID_FIELD. Use a header, the body or the typedauthblock instead. ${SECRET.KEY}also works as an alias. In CLI YAML and Terraform write it as$${SECRET.KEY}, because both treat a plain${…}as their own interpolation. The{{…}}form needs no escaping.- A missing secret fails the check. If the key does not exist (a typo, or the secret was deleted), the check fails with
Secret API_TOKEN is missing or deletedand no request is sent — the target never receives the literal reference. The same applies to the typedauthblock:Secret API_TOKEN used by the Authentication section is missing or deleted. - Keys are matched exactly (case-sensitive). Other
{{…}}text, such as a Handlebars template in a body, is sent unchanged.
Managing secrets
- Dashboard
- CLI
- YAML
- Open Settings → Secrets.
- Click Add Secret, enter a key + value.
- Save. The dashboard list shows keys and the SHA-256 hash — never the value.
Drift detection
The CLI never reads plaintext values back from the API. Instead, every secret has a server-computed SHA-256valueHash, and devhelm plan/devhelm deploy compares it to the hash of the value about to be written:
- Hashes match → secret is left alone.
- Hashes differ → secret is updated.
- Local definition removed but server still has it → CLI reports the secret as orphaned (and deletes it when you pass
--prune).
Security model
- Encryption at rest with envelope encryption (AES-256-GCM data keys, KMS-managed key encryption keys).
- Decryption only at use time — values are decrypted just-in-time inside the worker that executes a monitor check, then discarded.
- No read-back API. The API only exposes
GET /api/v1/secrets(list metadata) andPUT/DELETEon/api/v1/secrets/{key}. Even superadmins cannot retrieve plaintext via the API. - Audit logged. Create, update, delete, and resolution-failure events are written to the org audit log.
- Use API key rotation for keys that gate access to the vault itself.
Lifecycle notes
- Deleting a secret that a monitor uses is blocked with HTTP 409
SECRET_DELETE_BLOCKED. The message names up to five monitors (paused ones included). Remove the secret from those monitors’auth, headers or body first. Monitors that already point at a deleted secret fail their checks with a named reason. - Updating a value is instant: the next check picks up the new value without redeploying the monitor.
- Secret keys are case-sensitive.
api_tokenandAPI_TOKENare different secrets.
Next steps
Authenticated endpoints guide
Use secrets to monitor protected APIs.
YAML — Tags & Secrets
Define secrets in monitoring-as-code.
Environments
Variable namespaces for monitors.
secrets CLI
Manage from the command line.