Approval gates let you require a review before a change reaches production. But how do you go from “someone clicks approve” to clear rules for your whole team, with stricter checks where it matters and policies that live in code?
If you’re still deciding why approvals matter at all, our earlier post on approval workflows for Nomad deployments covers the thinking. This post is the hands-on follow-up. You’ll start with a single approver, move to team-based approval, add stricter rules for production, manage the policy as code, and review plans from the CLI. Along the way, you’ll see how approvals apply to rollbacks and destroy plans, and how to unstick an approval that won’t budge.
How an approval fits in the delivery flow
Before setting anything up, it helps to know exactly where an approval sits. Every change in Nomatron moves through the same lifecycle:
- A source change is detected.
- A plan or render is created.
- The approval requirement is evaluated.
- Approval is granted or denied.
- The apply runs.
- Deployment history is recorded.
Where an approval sits between a plan and its apply.
A few things about how policies are shaped make the rest of this post easier to follow:
- The policy belongs to the app. One approval policy covers every job in the app, both
NOMADandTEMPLATEjobs. - A policy has a default rule that applies everywhere, plus optional environment rules that override it for specific environments.
- Plans need an environment. A deployable app needs at least one environment. If you don’t name one for a normal deployment, Nomatron uses the first environment by priority.
- Every save creates a new policy version, so you can always see what changed and when.
It also helps to know where a new app starts. Every app gets a policy straight away, with a default rule of one required approval and no approvers listed. Plans wait for approval from day one, but nobody can approve them until you name some approvers, or set Required Approvals to 0, which approves plans automatically. That’s why the first job with any new app is to decide who approves.
A new app’s default policy: one required approval and no approvers yet.
Checkpoint: you know where approvals sit and what a policy is made of. Let’s build one.
Before you start
You need a few things in place:
- A Nomatron v0.1.7 server and the
nomatronCLI, signed in. - An organization (this post uses
example-org) with an app (api), at least one app job (web), and at least one environment. Ideally, set updev,stagingandprod. - A
release-managersgroup in the organization, set up as in our IAM zero to pro post, the previous one in this series. Its members also need a role with approval permission, assigned to them directly or through an IdP group mapping. - A GitHub App integration if you want Git-triggered plans. It’s optional for this walkthrough.
Level 0: One approver
Every team should start here. One named person approves each change, and the whole flow becomes visible before you add any complexity.
To set it up in the UI:
- Open the
apiapp and go to the Approval Policy tab. - Set Approver Users to a named user, for example
morgan.smith. - Leave Approver Groups empty.
- Set Required Approvals to
1. - Click Save Policy.
You should see a new version under Version History. From now on, every plan for this app waits for Morgan’s approval.

A default rule on the payments-api Approval Policy tab: one required approval from morgan.smith.
Reviewing and approving a plan
When a change arrives, Nomatron queues an approvable plan. Open the app’s Overview, or the job’s Deployments page, and wait for the new plan run to appear. Before approving, check:
- the target app, job and environment;
- the approval state;
- the plan output or diff; and
- any validation or execution errors.
For TEMPLATE and NOMAD jobs, the Rendered job tab on the job page shows the exact HCL or JSON that Nomatron will plan or apply. It’s the best way to see what’s really about to happen, rather than what you think the template says.
When you’re happy, click Approve Stack and wait for the approval state to update. Nomatron continues the deployment once the approval status allows it.
Approve Stack records one decision per job, on each job’s latest plan that’s waiting for approval. It’s the same thing apps stack review does from the CLI, which you’ll see later.
Checkpoint: one person can review and approve every change. That works right up until Morgan goes on vacation.
Level 1: Approve as a team
Named approvers don’t scale, and they create a single point of failure. The next step is to approve as a team.
In the same Approval Policy tab, clear Approver Users and set Approver Groups to release-managers. Keep Required Approvals at 1 and click Save Policy. Now any member of the release group can approve, and adding or removing an approver is just a group membership change.

The release-managers group in Example Org, ready to name in Approver Groups.
Pair this with the right role. The built-in release-manager role, or a narrow custom role, helps keep release authority separate from full administration. That’s a pattern worth following: the people who approve releases don’t need to manage users, roles or platform settings.
To approve, a person needs two things: the organization.app_jobs.update permission, and a place on the rule’s approver list, either by name or through a group. Being in an approver group doesn’t grant the permission. It comes from a role, assigned to the person directly or through an OIDC mapping of one of their IdP groups, because in v0.1.7 roles can’t be assigned to Nomatron groups. Of the built-in roles, developer, release-manager and organization-admin include that permission, while organization-viewer, access-admin and security-auditor don’t. Service accounts can’t approve at all.
When a rule lists both users and groups, any listed user or any member of a listed group counts toward the total. Required Approvals set to 2 means two different people; a second decision from the same person doesn’t count twice. There’s also no self-approval block: if the person who triggered a plan is a listed approver, they can approve it themselves. Where separation of duties matters, set Required Approvals to 2 so someone else always signs off as well. Nomatron doesn’t enforce separation of duties for you. Whether your setup meets your internal or regulatory controls is for your team to decide.
Note: keep a documented fallback approver for every app. Clear approval owners plus a written fallback mean one absence doesn’t block a release.
Checkpoint: approval belongs to a team, not a person. Now let’s make production stricter than the rest.
Level 2: Stricter rules per environment
Most teams don’t want the same rules for dev and prod. Environment rules let you keep lower environments quick while asking for more care in production.
A default rule for most environments, and a stricter rule for prod.
In the Approval Policy tab, keep your default rule and add environment rules:
- Click Add Environment Rule and set Environment to
dev, Approver Groups set torelease-managersand Required Approvals set to1. - Add a rule for
stagingwith the same settings. - Add a rule for
prodwith Approver Groups set torelease-managersand Required Approvals set to2. - Click Save Policy.
Each environment rule overrides the default for that environment only, and both raw Nomad jobs and template jobs follow it.

An environment rule for prod on the payments-api policy: two approvals from release-managers.
Note: environment rules use the approval_policies_environment_scoped license entitlement, and rules needing more than one approver use approval_multi_approver. If either option isn’t available, check which entitlements your license includes in the licensing area of the UI.
If your license stops including either entitlement later, existing environment or multi-approver rules stay in place and are still enforced, and the UI shows a license compliance warning. You can’t edit that policy again, even to remove those rules, until the license includes the feature.
Promotion and environment rules
Promotion follows the app’s environment order. Once a change has a successful release in dev, the main forward action is to promote it to the next environment. The commands below promote one job, or the whole app stack, to the next environment:
nomatron app-jobs promote --organization example-org --app api --job web
nomatron apps stack promote --organization example-org --slug apiThe first promotes the web job. The second plans each job’s latest successful release in the next environment of its promotion path.
The important part is what happens next. A promotion isn’t a replay of the source environment. The new plan uses the target environment’s variables and the target environment’s approval rule, so promoting into prod asks for two approvals even though staging needed one.
Checkpoint: production is stricter than everything else, and promotion respects it. Time to get the policy out of the UI and into code.
Level 3: Policy as code
Clicking through a form is fine for a first policy. For anything you’ll keep, we recommend managing the policy as code, so changes are reviewed like any other change.
With the CLI
The CLI reads and writes the policy for a whole app. Because the policy is app-wide, there’s no --job flag. The commands below show the current policy, set a new one from a file, and list previous versions:
nomatron app-jobs approval-policy --organization example-org --app api
nomatron app-jobs set-approval-policy \
--organization example-org \
--app api \
--file ./approval-policy.json
nomatron app-jobs approval-policy-versions --organization example-org --app apiThis gives you a simple loop: read the policy, change the file in a pull request, apply it with set-approval-policy, and check the version history afterwards.
The file is JSON. It has a default_rule object with required_approvals and an approvers object holding users and groups lists, plus an optional environment_rules array. Each environment rule has environment, required_approvals and approvers. Here’s a file version of the Level 2 setup, with one approval from release-managers by default and two in prod, where Morgan can approve alongside the group:
{
"default_rule": {
"required_approvals": 1,
"approvers": {
"users": [],
"groups": ["release-managers"]
}
},
"environment_rules": [
{
"environment": "prod",
"required_approvals": 2,
"approvers": {
"users": ["morgan.smith"],
"groups": ["release-managers"]
}
}
]
}Users can be usernames or user IDs, and groups can be group names or IDs. Every user you list must be a member of the organization, and every group must belong to it.
With Terraform
If you already manage Nomatron with Terraform, the nomatron_approval_policy resource covers the same ground. The configuration below matches the JSON file: one approval from release-managers by default, and two in prod, where Morgan can approve alongside the group:
resource "nomatron_approval_policy" "api" {
org_name = "example-org"
app_slug = "api"
default_rule = {
required_approvals = 1
groups = ["release-managers"]
}
environment_rules = [
{
environment_id = nomatron_environment.prod.id
required_approvals = 2
users = ["morgan.smith"]
groups = ["release-managers"]
}
]
}Key points to note about this configuration:
org_nameandapp_slugselect the app the policy belongs to.default_ruleapplies to every environment without its own rule.- Each item in
environment_rulesnames an environment by its ID inenvironment_id, here taken from anomatron_environmentresource calledprod, and its rule overrides the default there.
Notice that users and groups sit directly in each rule. That’s a little different from the JSON file: there’s no nested approvers object, and environment rules use environment_id rather than environment.
One piece of advice from the docs is worth repeating: manage the policy in code, but keep the day-to-day approval decisions out of Terraform. Code decides who may approve. People still do the approving.
Checkpoint: your policy is versioned and reviewable. Now let’s look at the decisions themselves from the terminal.
Reviewing and deciding from the CLI
Not everyone wants to open a browser to approve a release. The CLI can review a whole stack or a single job.
The whole stack
The commands below approve every pending plan for the app in its first environment, then apply the approved plans:
nomatron apps stack review \
--organization example-org \
--slug api \
--decision approve \
--comment "Release 2026-11"
nomatron apps apply --organization example-org --slug api --environment dev --jobs web,workerapps stack review approves or rejects the latest pending plan for every job in one environment. Its --environment flag defaults to the first environment, and jobs with nothing waiting show no_pending_plan. apps apply then applies the latest approved plan for each selected job. Its --environment flag is required.
One job
To work on a single job, look up its latest approvable plan, then record a decision:
nomatron app-jobs latest-approval-plan --organization example-org --app api --job web
nomatron app-jobs approval-decision \
--organization example-org \
--app api \
--job web \
--decision approve \
--comment "Reviewed diff"The first command shows the plan waiting for a decision. The second approves it with a comment. Use --decision reject to turn it down.
approval-decision has no --environment flag. It uses the app’s default environment, and it always acts on the job’s latest plan that’s waiting for approval and hasn’t been applied or superseded.
A rejection is final. The rejected plan is closed for good, so to try again, fix what needs fixing and run a new plan. Plans that are still waiting don’t pile up either: a newer plan for the same job and environment supersedes any older one that’s still waiting, so reviewers always decide on the latest change.
A couple of rules are worth knowing:
- Service accounts can’t approve. The decision has to come from a user who is a member of the organization. Automation can queue plans, but where a rule needs approval, a person has to sign off.
- GitHub plan comments are a review surface, not an approval. If a plan was triggered from a pull request, the comment Nomatron posts there is plan output. It helps reviewers see the change in context, but it isn’t an approval request, and environment approval rules still apply before an apply can go ahead.
Approvals beyond normal deploys
Approvals don’t only guard new releases. Two other workflows go through the same policy.
Rollback
Rollback restores a prior healthy release in the same environment. It creates an approval-gated plan that replays that release’s rendered jobspec, including the variables as of that deploy. The commands below list rollback candidates in staging and create a rollback plan:
nomatron app-jobs rollback-candidates \
--organization example-org \
--app api \
--job web \
--environment staging
nomatron app-jobs rollback \
--organization example-org \
--app api \
--job web \
--environment stagingBy default, the rollback targets the previous healthy release before the current head. Pass --source-release-id to pin a specific one. The plan then follows the normal approval, apply and health path. Rollback isn’t promotion in reverse; moving between environments still uses promote.
Destroy plans
Destroy plans stop and purge a live Nomad job while keeping the Nomatron app, job, environments, approval policy, releases and audit history intact. The command below creates a destroy plan for the web job:
nomatron app-jobs destroy --organization example-org --app api --job webDestroy plans are approval-aware. If the app’s policy requires approval, the plan isn’t ready to apply until the required decisions are recorded.
One related workflow is different. Accept drift rebases Nomatron’s desired state onto what’s live in Nomad. It isn’t a rollback, and it’s a topic for another post.
Who can change the policy, and how to review changes
Changing an approval policy needs the organization.app_jobs.approval_policy.update permission. Keep that permission with the people who own release governance, not everyone who can deploy.
To review how a policy has changed over time, use the version history and the organization’s audit entries. The command below lists recorded approval policy changes in example-org:
nomatron audit-logs list --organization example-org --resource-type approval_policyCombine it with approval-policy-versions and approval-policy-version to see exactly what each version contained.
Troubleshooting a stuck approval
Sooner or later, a plan will sit there refusing to move. When it does, work through these causes in order:
- You’re looking at the wrong environment. Check the plan’s target environment first.
- The active policy isn’t the one you expected. Check the policy versions to see what’s really in force.
- Your role doesn’t include approval authority. Being able to see the plan isn’t the same as being allowed to approve it.
- The approver is a service account. Service accounts can’t approve.
- The approver isn’t an organization member. Approvals must come from organization members.
- The app has no environments. Plans and applies need at least one.
Two more causes catch new teams out. First, a brand-new app’s default rule names no approvers, so nobody can approve until you add some. Second, nobody told the approvers. Nomatron doesn’t notify approvers in v0.1.7, so they need to check the UI or the CLI for plans waiting on them, for example with latest-approval-plan. Agree how your team will spot waiting plans, whether that’s a daily look at the app’s Overview or a habit of checking before standup.
Starter patterns
If you’re not sure where to begin, pick the pattern closest to your team today and adjust from there:
- Small team: a default rule with one approval from a group.
- Growing platform:
devandstagingneed one approval each, andprodneeds two fromrelease-managers. - Platform-owned production: production approvers come from a platform group, while the app team approves lower environments.
Summary
This post walked through Nomatron approval policies from the ground up. You started with a single approver, moved approval to a team, added stricter rules for production, and saw how promotion applies the target environment’s rules. You then managed the policy as code with the CLI and Terraform, reviewed plans from the terminal, and saw how rollback and destroy plans follow the same policy. You also have a checklist for unsticking an approval.
Here’s the setup as a checklist:
- An approval policy exists for every deployable app.
- Approvers are groups, not individuals.
- Production has a stricter rule than lower environments.
- The policy lives in code and changes through review.
- Fallback approvers are documented.
This approach is a good fit for any team that ships to more than one environment, or where more than one person can change production. If you’re a single team deploying to one environment, the Level 0 or Level 1 setup is plenty for now. For the why behind approvals, revisit our approval workflows for Nomad deployments post, and see the approvals and deployments pages in the Nomatron docs for more detail. Next in this series, we’ll look at Application Networking and how to choose a networking mode for your Nomad clusters.
Ready to try it on your own Nomad clusters? Get early access
HashiCorp, Nomad and Terraform are trademarks of HashiCorp. Nomatron is not affiliated with or endorsed by HashiCorp. Other names may be trademarks of their respective owners.






