Approvals & promotion
Protect environments with peer review and promote changes between environments.
On this page
When an environment is protected, secrets in it cannot be changed directly, not in the console, not with the API and not by restoring history. Instead you propose changes and other members approve them.
Proposing a change#
In a protected environment the editor works as usual, but Deploy becomes Submit for approval: your edits are sent as one change request, with the reason you type in the bar above the secrets. Values, comments, new secrets and deletions can be proposed; to rename a secret or change its type or tags, delete it and create a new one. With the API:
POST /v1/changes/
{"environmentId": "…", "reason": "rotate vendor key",
"changes": [{"op": "update", "secretId": "…", "value": "…"},
{"op": "create", "key": "FEATURE_X", "value": "on", "path": "/"},
{"op": "delete", "secretId": "…"}]}
Approving#
Click Change requests above the environment's secrets. Members with permission to update secrets can approve or reject, with a comment. You cannot approve your own request unless the protection allows it. When enough approvals are recorded, all changes are applied together.
If a secret was changed after the request was made, the request is marked conflict and nothing is applied; submit a new one. Pending requests expire after 7 days.
Promotion#
Compare & promote (server-side encrypted apps) shows which keys differ between this environment and another, and copies the ones you select into this environment. Into a protected environment, promotion opens a change request.