- Owners and Admins with full access to the project
- The people you add to the environment
What changes for people who aren’t added
A protected environment is hidden from them completely:- It isn’t listed under the project’s environments.
- Its deployments and operations aren’t listed either.
- Opening its link shows Environment not found.
- They can’t pick it as a source for Import from environment.
- The CLI can’t reach it.
Environment roles
Everyone you add gets an environment role - Read-only, Maintainer or Member. Inside that environment it replaces their project role, and it can be higher or lower than it. For example, a project Maintainer can be given Read-only on production, and a project Read-only can be given Maintainer on a protected staging environment. What each role can do there is the same as in the roles tables: deploying needs Maintainer, secret values need Member, and so on. The CLI uses the environment role too. Only people who are already in the project can be added. To give someone access to a protected environment, add them to the project first.Protect an environment
You need the Member role in the project, or full access.- Open the environment.
- Click Protect in the header.
- Read the confirmation and click Protect.
Add people and set their role
Open the environment’s Members tab. It only appears on protected environments. The list shows everyone who could have access - the project’s members and the organization’s Owners and Admins:
To add someone, click ⋯ on their row, choose Add to environment, pick a role and click Add.
To change a role, choose Change environment role, pick the new role and click Save.
To take someone out, choose Remove from environment. They can no longer see the environment.
You need the Member role in the environment, or full access, to add, change or remove people.
Owners and Admins in a protected environment
Owners and Admins with full access don’t need adding. Setting an environment role on one of them is a restriction - it lowers their access in this environment only, following the restriction rules:- Anyone can restrict themselves, to any role, and lift their own restriction.
- Restricting another Owner or Admin needs the Member role in the environment, or full access. If they’re already restricted, their role can only be lowered.
- Only the person themselves or an Owner or Admin with full access can lift a restriction, with Lift restriction.
Unprotect an environment
You need the Member role in the environment, or full access.- Open the environment.
- Click Unprotect in the header.
- Confirm with Unprotect.
Who can do what
Full access means an Owner or Admin who isn’t restricted in the project or the environment.