Protect production with change requests
A protected environment can't be changed directly: every edit becomes a change request that teammates approve before it is applied, and values stay hidden from people who aren't allowed to reveal them. Protection is part of the Team and Business plans.
آخر تحديث
هذه الصفحة متوفرة بالإنجليزية حاليًا.
Someone with the Protect environments permission (the project owner by default) turns protection on for an environment and chooses how many approvals a change needs, from 1 to 5 (1 by default).
If your plan no longer includes protection, protected environments stay protected, but their protection settings can't be edited until you upgrade.
- Every write, from the dashboard, an import,
productenv pushor a rollback, opens a change request. Nothing is written until it is approved. - Values are hidden from anyone without Reveal protected values.
- Service tokens for a protected environment are read only, and creating one needs Reveal protected values.
- Reviewers need the Approve change requests permission. Nobody approves their own request, except the project owner when no one else can.
- When a request reaches the required approvals, it is applied automatically. One rejection closes it.
- Open requests expire after 14 days.
- If the environment changed since the request was opened, the request shows a conflict and its author can Rebase it onto the current values.
Requests are listed on the project's Change requests page with their status: Open, Approved, Applied, Conflict, Rejected, Cancelled or Expired. Webhooks can announce them in Slack or Discord.
Can CI push to a protected environment?
- No. Service tokens for a protected environment are read only. Changes go through a change request in the dashboard or with productenv push from a personal login.
Who can see values in a protected environment?
- Only people with the Reveal protected values permission, which the project owner has by default. Others see the key names without the values.