Skip to content

Prerequisites for your organization

You set these up once, for the GitHub organization that holds all your customer repositories. What each customer needs is on Prerequisites for a customer.

GitHub

  • An organization to hold the customer repositories. It can be any organization: the callers reference the public nrit-solutions/tfpr entrypoint, and every job installs the engine runtime from its public release.
  • GitHub Team or higher on that organization. The merge gate is a repository ruleset on a private repository, and GitHub enforces rulesets on private repositories only from the Team plan up. On the Free plan the rulesets API answers "Upgrade to GitHub Pro or make this repository public". To run on Free anyway, set require_approved_pr = false, limit_environments_to_default_branch = false, accept_free_org_risk = true, and secret_scanning = false in the bootstrap. That drops the merge gate and lets any branch workflow act as the apply identity, so keep it to a single-writer trial. See the bootstrap variables.
  • Three GitHub Apps, all yours, created once in your organization. The bootstrap repository's scripts/create-github-app.sh creates the bootstrap and checks Apps from a manifest in one click; the runners App is made by hand. The bootstrap wires each one from its tfvars inputs and key. Create and install them before the bootstrap. Nothing is needed on the NRIT organization.

    App Needed What it does
    Checks App Always Owns every engine check row, the merge gate included. Install it with "All repositories". See the checks App.
    Bootstrap App Recommended, one per MSP Lets the bootstrap create and configure every customer repository in your organization (the approver team and the ruleset live there). An operator token is the fallback. See Create the bootstrap App.
    Runners App Self-hosted posture only Registers the runners. Install it in one of its two install modes. See the runners GitHub App.
  • A license for tfpr apply: the license of the license holder, which the bootstrap writes to each customer repository as a repository variable next to that customer's entitlement. See License.

  • Network access from the runners to the GitHub hosts that serve the engine runtime and to the revocation list host. See License requirements.
  • The template repository nrit-alz-customer-template, public, from which the customer repository is generated.

Entra ID tenant

  • Your own Entra ID tenant to sign in to the license portal, where you issue an entitlement for each customer. An admin of that tenant consents to the portal once and gives the people who issue entitlements the Entitlement.Issuer role. See Onboard as an MSP.

Toolchain

The operator workstation needs Terraform, the Azure CLI, the GitHub CLI, jq, curl and python3. The bootstrap scripts are bash, so they run as they are on macOS and Linux. On Windows, use the bootstrap's dev container (VS Code with Docker Desktop; the pinned toolchain is inside, and the parent folder is mounted so your operator repository sits next to the clone) or WSL with the same tools. In the container, paths outside the mount do not exist, so keep the App keys next to your operator repository and point github_app_pem_file in the customer tfvars at that path, not at a home folder such as ~/Downloads. Git Bash is not supported: the App key's file mode is not enforced on NTFS. PowerShell does not run the scripts. See Workstation in the bootstrap README.

Inside the customer repository, versions are pinned with mise: mise.toml pins Terraform and Terragrunt, which the engine uses, and pre-commit, tflint, and checkov, which the commit hooks and the PR caller's pre-commit job use. Run mise install once after cloning, then pre-commit install to wire up the hooks. When no version manager is present, the engine workflow falls back to built-in versions, but pinning in the repo is the supported path.