Deploy access
organization settings
who can deploy
- >_ Close app CI api user
- DR Dana Ruiz owner
- SP Sam Patel admin
$ helix deploy
DeployerNotAllowed · ship through CI
A finance team builds its month-end close app on Helix. The numbers it posts go to the ledger, so the team wants one rule: nothing reaches production unless it came through the GitHub pipeline, where the change was reviewed. Nobody ships from a laptop at 11pm on close night.
Deploy access is that rule. An organization owner or admin makes a list of the people and API users who may deploy, and turns on “Limit who can deploy.” From then on, anyone not on the list is refused when they run helix deploy. Put the CI pipeline’s API user on the list, and CI is the only way in.
What that gives IT:
- One path to production. Every change goes through the pipeline, so the review lives where the code does.
- A list, not a policy document. The list names each person and API user who can deploy, up to 500, and it is the same list for the whole organization.
- Refusal that explains itself. Someone not on the list gets a plain message from the CLI telling them to deploy through CI or ask an owner or admin to add them.
- No surprises for owners. Owners and admins have to be on the list too. They are not added automatically.
An example
The finance team’s close app has a staging target and a production target. IT wants production to ship only from GitHub, with one approval in Helix.
1. Create the pipeline’s sign-in
An organization admin creates an API user called “Close app CI” in Organization settings, with the Contributor workspace role. It does not get an owner or admin role, because those roles can change the list.
2. Make the list
Under Organization settings, then Deployments, then Deploy access, the admin adds “Close app CI” and the two people who still need to deploy by hand. The list can be prepared with the switch off, so nothing changes yet.
3. Turn it on
The admin turns on “Limit who can deploy.” The confirmation says how many deployers are on the list, and warns if the admin is not one of them.
4. Try to ship from a laptop
An engineer who is not on the list runs the deploy.
$ helix deploy
It stops before anything is built, with DeployerNotAllowed, and says to ship through CI or ask an admin to be added. The pipeline, signed in as “Close app CI,” deploys as before.
5. Add the approval
Deployment approvals stay as they are. A deploy from the pipeline still waits for the approval policy, so IT gets one gate in Helix: CI only, plus approvals.
What follows from how it works
- Listed is not enough on its own. A listed person or API user also needs write access to the workspace they deploy to.
- It covers deploys only. Restoring an earlier deployment, creating a project and changing settings work for anyone who could do them before.
- The list names the API user, not the token. Anyone who can create a token for a listed API user can deploy with it, so keep tokens in the CI secret store.
- An API user belongs to one workspace. A pipeline that deploys to several workspaces needs one API user per workspace.
- Turning it off is one switch. Anyone with write access can deploy again, and the list is kept.
Before you turn it on
Add yourself. If you are not on the list when you turn the switch on, you cannot deploy either.
Keep at least one deployer. The switch needs one on the list. If every listed person has left and every listed API user is deleted, nobody can deploy until an admin adds someone or turns it off.
Use one review gate. The docs recommend approvals in Helix and no required reviewers on the GitHub environment, so a deploy does not wait for two approvals.