Glossary¶
The words this site uses, in alphabetical order. Where a term has an owning page, the definition links to it.
Four things are called a gate
The command gate, the approval gate, the merge gate, and the three plan gates are separate mechanisms with separate failure modes. Each has its own entry below, and Policy, security, and cost gates covers the plan gates in full.
| Term | Definition |
|---|---|
| Approval gate (apply gate) | The check that blocks tfpr apply until the pull request meets the repository's required reviews. It reads GitHub's own review decision, so it is configured in branch protection or a ruleset, not in the engine. Every run that selects a unit also publishes it as the informational tfpr / approval check run, which must never be made a required check. See The approval gate. |
| Archetype | A named bundle of policy assignments, policy definitions, policy set definitions, and role definitions. An archetype lists asset names only; it does not contain the assets and it does not decide scope. Scope comes from the architecture attaching it to a management group. See Vendored policy library. |
| Architecture (ALZ architecture definition) | The JSON file that declares the management group hierarchy and which archetypes each group gets. The platform ships one, baseline, which is the stock alz architecture reproduced in full, with baseline_root (stock root minus Deploy-SvcHealth-BuiltIn) and the baseline_tags archetype on the intermediate root. architecture_name in landing-zones/main.tf selects it. See Vendored policy library. |
| Caller workflow | One of the five thin files in a customer repository's .github/workflows/ that call the engine at a pinned tag: tfpr-pr.yml, tfpr-unlock.yml and tfpr-review.yml (the dispatch composite action), and tfpr.yml and drift.yml (the reusable workflows). They stay stable across most engine releases. See The PR-ops engine. |
| Command gate | The first check on a comment command. tfpr plan, tfpr apply, tfpr unlock and tfpr help are accepted only from a comment whose GitHub author_association is OWNER, MEMBER, or COLLABORATOR. It answers "who is asking", and it is not a write-permission check. See Who can run a command. |
| Drift | A difference between the deployed tenant and the code that is supposed to describe it. A daily read-only sweep plans every unit and opens one GitHub issue per drifted unit, titled Drift: <label>. See Drift detection. |
| Engine | The PR-ops engine, called through the public nrit-solutions/tfpr entrypoint at a pinned tag, whose release also carries the engine runtime. It runs plan, apply, the gates, and the drift sweep. It surfaces on a pull request through App check runs under the tfpr / prefix. See The PR-ops engine. |
| Entitlement | A signed token, in the TFPR_ENTITLEMENT repository variable, that binds one GitHub organization to one Azure tenant under a license. tfpr apply needs it. See License. |
| Foundation | The three units under live/_foundation/ that build the platform: management-resources, landing-zones, and amba. _foundation/ is not a management group; the underscore marks it as tenant-global. See Foundation units. |
| Gates | Four different things carry the name. The command gate decides who may type a command. The approval gate decides whether tfpr apply may run. The merge gate decides whether the pull request may merge. The plan gates are the three post-plan checks on the plan itself. Each has its own entry here. |
| Impacted set | The units a run plans. A unit is impacted when its own directory changed, when a file it reads changed, or when it is downstream of an impacted unit through a dependencies block. Because every unit reads root.hcl, a one-line change there impacts the whole tree. See The impacted set. |
| Initiative | An Azure policy set definition: a group of policy definitions assigned together with shared parameters. The vendored library ships one, Enforce-Tag-Governance, with eleven members. See Vendored policy library. |
| License | The signed token of the license holder, in the TFPR_LICENSE variable. With an entitlement it allows tfpr apply; without a valid pair the repository is plan only. See License. |
| Library (vendored library) | live/_foundation/landing-zones/lib/, a complete Azure Landing Zones library carried inside the customer repository. The alz provider reads it on top of the stock library, so a policy change is reviewable in the same diff as the code that consumes it. See Vendored policy library. |
| Live tree | Everything under live/. The folder tree mirrors the management group hierarchy, and each folder is named after the management group ID it represents. Position in the tree is the wiring: it decides inherited context and the state key. See Live tree. |
| Management group scope files | tenant.hcl, subscription.hcl, env.hcl, and region.hcl. They carry scope rather than resources: the tenant, the subscription a subtree deploys into, and the environment and region for a subtree. Units never include them directly; root.hcl walks up the tree and the nearest ancestor wins. See Live tree. |
| Merge gate | The tfpr / merge-gate check run. It is green when the pull request has no Terraform changes, when every unit is a no-op, or when every impacted unit has been applied. Make it a required check; it is the only engine check that should be required. See The merge gate. |
| Plan gates | The three post_plan checks that run against every plan and every drift plan: conftest for policy, checkov for security, and infracost for cost. All three start quiet (conftest ships no active policy, checkov only warns, infracost never gates), so they report without blocking until you enforce them. See Policy, security, and cost gates. |
| Project | The engine's word for a planning target. In this platform a project is a Terragrunt unit, discovered from the terragrunt: block in projects.yml and labeled by its path under live/. See projects.yml schema. |
| Reusable workflow mode | The default consumption model. The customer repository holds no engine code; two callers reference the engine's reusable workflows with uses:, two pin its dispatch composite action, and at run time each job installs the engine runtime of that tag (the tfpr binary, and the gate scripts in $TFPR_ENGINE_DIR) from the public release. See The PR-ops engine. |
| Root contract | live/root.hcl, the single file every unit includes. It generates the backend, the providers, and a context.tf from the nearest scope files, and sets the state key from the unit's path. See Root contract. |
| Run report | The comment the engine posts for each unit on each run. It is ordered for scanning: a headline with the result and the change counts, a line with the unit path, time and run log, then one collapsed row per step in run order (pre-plan hooks, the plan output, the post-plan hooks by name), and the exact tfpr apply instructions last. Output too long for one comment continues in follow-up comments. Each run posts a fresh comment and minimizes the superseded one as Outdated, so the newest report is the one that reads. See The plan comment. |
| Unit | A leaf folder containing a terragrunt.hcl. That is the whole definition. It pairs terragrunt.hcl, which wires the unit into the tree, with main.tf, which sources an Azure Verified Module at a pinned version. Each unit has its own state. See What a unit is. |
| Vendored mode | The escape hatch for a repository that cannot call the org-shared workflow. It copies the engine tree in at a tag, Go source included, and runs the workflows directly, with no uses:; the tfpr binary is built from the vendored source. $TFPR_ENGINE_DIR then falls back to the workspace, so hook paths still resolve, and the repository owns updates by re-copying at a new tag. The gate code then lives in the pull request's own tree, so a pull request can change the gates it is judged by. See Vendored mode, the escape hatch. |
For the version numbers behind the pins, see Versions and upgrades.