License¶
tfpr apply needs a valid license and entitlement. Every job
checks them and reports the result. Only tfpr apply is ever refused: plan, drift
and tfpr unlock keep working whatever the license state.
Public is not the same as open source. In nrit-solutions/tfpr, the
repository tree, install-runtime.sh and SHA256SUMS are Apache-2.0. The
engine runtime release assets (the binaries and the gate scripts) are
proprietary and run only under a license; each release ships the notice as
ENGINE-LICENSE.txt.
The engine messages that point here link to one section per cause. Each section says what the message means, how to fix it, and how to retry.
Requirements¶
Two values identify who may apply and where:
- The license belongs to the license holder, usually your managed service provider. One license covers all of its customers.
- An entitlement binds one GitHub organization to one Azure tenant, under that license. Each customer repository needs one.
Neither expires. Both stay valid until they are revoked.
Two special entitlements can take the place of the regular one in the same variable: an exit entitlement, after a contract ends, and a temporary entitlement, while the revocation list cannot be refreshed. Both are issued by the license issuer, not by the license holder.
Written by the bootstrap
The bootstrap's scripts/onboard.sh gets the entitlement from the license
portal at https://portal.license.nrit.cloud and writes both variables
(see Plan and apply). The license
holder issues and revokes entitlements there, signed in with its own Entra
ID tenant (see
Onboard as an MSP).
On a
repository the bootstrap does not manage, set them by hand with
gh variable set (see Missing variable).
| Variable | Scope | Holds | Set by |
|---|---|---|---|
TFPR_LICENSE |
Repository variable | The license | The bootstrap, from tfpr_license in the tfvars |
TFPR_ENTITLEMENT |
Repository variable | The entitlement for this repository's organization and Azure tenant | The bootstrap's scripts/onboard.sh, which fetches it from the portal |
AZURE_TENANT_ID |
Repository variable | The Azure tenant the repository deploys to. The entitlement must be bound to this tenant | The bootstrap |
TFPR_LICENSE can also be an organization variable, but only on a paid GitHub
plan: on GitHub Free, private repositories cannot read organization
variables. A repository variable wins over an organization variable of the
same name.
These are plain Actions variables, not secrets. A license or entitlement is a signed token that only works for the organization and tenant it names.
The runners must reach these hosts over HTTPS (port 443):
| Host | Used for |
|---|---|
api.github.com |
The GitHub API, and reading the engine install script |
github.com |
The engine runtime release downloads |
release-assets.githubusercontent.com |
Where the release downloads redirect to |
license.nrit.cloud |
The signed revocation list (/revocations.jws) |
The revocation list is a plain download. No repository, tenant or customer data is sent. On the self-hosted posture, the apply job downloads the list again on the self-hosted runner, so that runner needs the revocation list host too. The other jobs that download it run on GitHub-hosted runners.
License states¶
| State | When | What works |
|---|---|---|
| Healthy | The license and entitlement verify, and the revocation list is less than 7 days old | Everything. Nothing shows on the pull request; the check run text says License: valid. |
| Warning | The revocation list is 7 to 30 days old | Everything. The run report shows a warning with the date tfpr apply stops working |
| Plan only | A variable is missing or not valid, something is revoked, the revocation list is older than 30 days or was never downloaded, or the engine is newer than an exit entitlement covers | Plan, drift and tfpr unlock work. tfpr apply is refused |
On an exit or an active temporary entitlement, a healthy run also shows one plain line under each report's headline, and the check run text names the entitlement.
In plan only:
- The run report shows a Plan only note with the cause and the fix, and
leaves out the
tfpr applyinstructions. - On a pull request with changes to apply, the merge gate title names the cause and the fix. A pull request with nothing to apply keeps its green gate.
tfpr applygets one reply, Apply blocked, and nothing runs.- If the state changes after
tfpr applywas accepted, the apply job checks again before Terraform runs and replies Apply stopped. Nothing is applied. - Drift issues carry the same note and end with "The next drift run picks this up."
When one run has several problems, the report names the first one in this order (an exit entitlement is checked on its own: Azure tenant, organization, then engine version): missing license, missing entitlement, license not valid, entitlement not valid, license revoked, entitlement from another license, entitlement for another Azure tenant, entitlement for another organization, entitlement revoked, no revocation list, revocation list over 30 days old. Fix it and the next run shows the next problem, if any.
Retry works the same for every cause but one: fix the variable or the
network, then comment tfpr apply on the pull request again. After
pinning back to the version an exit entitlement
covers, comment tfpr plan first. The new run reads the
variables fresh. On a drift issue, wait for the next drift run, or start
drift.yml by hand.
Missing variable¶
The message says the repository has no entitlement (TFPR_ENTITLEMENT) or no
license (TFPR_LICENSE). The variable is not set, is empty, or is not visible
to the repository.
Fix. Set it as a repository variable, in the repository's Settings > Secrets and variables > Actions > Variables, or with the GitHub CLI:
gh variable set TFPR_LICENSE -R <org>/<repo> --body "<license>"
gh variable set TFPR_ENTITLEMENT -R <org>/<repo> --body "<entitlement>"
The bootstrap writes both from tfpr_license and tfpr_entitlement, and
scripts/onboard.sh -f <path to the customer tfvars> fetches the entitlement
and applies. Re-running it for the customer also fixes this; setting them by
hand as above is the fallback.
Check it is visible. List what the repository can read:
gh variable list -R <org>/<repo>
gh api repos/<org>/<repo>/actions/organization-variables --jq '.variables[].name'
An organization variable that does not show in the second list is not shared with this repository, or the organization is on GitHub Free and the repository is private. Set a repository variable instead.
Retry: comment tfpr apply again.
Entitlement not valid¶
TFPR_ENTITLEMENT is set, but it is not a valid entitlement. The usual causes
are copy errors:
- spaces or line breaks before, inside or after the value;
- a value cut short when it was copied;
- the license pasted into
TFPR_ENTITLEMENTinstead of the entitlement; - quotes around the value.
An entitlement is one line of three dot-separated parts. It starts with ey.
Fix. Copy the entitlement again, as one line, into the repository variable
TFPR_ENTITLEMENT. If you do not have it any more, ask the license holder for
it.
Retry: comment tfpr apply again.
License not valid¶
TFPR_LICENSE is set, but it is not a valid license. The causes are the same
copy errors as for the entitlement, including the entitlement pasted into
TFPR_LICENSE instead of the license.
Fix. Copy the license again, as one line, into the TFPR_LICENSE variable.
If an organization variable and a repository variable both exist, the
repository variable is the one used: fix that one, or delete it.
Retry: comment tfpr apply again.
Entitlement for another organization¶
The entitlement was issued for a different GitHub organization. An entitlement is bound to one organization by its numeric id, so it does not work in another one. A repository that moved to a new organization, or an entitlement copied from another customer, gives this message.
Fix. Issue an entitlement for this organization and this Azure tenant in
the license portal at https://portal.license.nrit.cloud, and set it as
TFPR_ENTITLEMENT. The portal takes the organization login and
looks up the numeric id; to check the id yourself, run
gh api orgs/<org> --jq .id.
Retry: comment tfpr apply again.
Entitlement for another Azure tenant¶
The entitlement was issued for a different Azure tenant than the one in
AZURE_TENANT_ID. An entitlement is bound to one tenant.
Fix. Check AZURE_TENANT_ID first:
If it is wrong, correct it (the bootstrap sets it). If it is right, get an
entitlement for this tenant and set it as TFPR_ENTITLEMENT.
Retry: comment tfpr apply again.
Entitlement from another license¶
The entitlement was issued by a different license holder than the one in
TFPR_LICENSE. An entitlement only works with a license of the holder that
issued it. This happens when a repository moves from one provider to another
and keeps one of the two old values, or when the values were copied from
different places.
Fix. Check that TFPR_LICENSE holds your current license. Then get an
entitlement issued under it, and set it as TFPR_ENTITLEMENT.
Retry: comment tfpr apply again.
Entitlement revoked¶
The license holder revoked this entitlement. Revocation takes effect on the next run, with no grace period.
Fix. If this repository should still apply, ask the license holder for a
new entitlement for this organization and tenant, and set it as
TFPR_ENTITLEMENT. A revoked entitlement cannot be restored; a new one
replaces it.
Retry: comment tfpr apply again.
License revoked¶
The license in TFPR_LICENSE was revoked. A revoked license also disables
every entitlement issued under it, so every repository that uses it is plan
only.
Fix. Contact your license provider. When you have a new license, set it as
TFPR_LICENSE. The entitlements of the same license holder keep working with
the new license, so TFPR_ENTITLEMENT can stay.
Retry: comment tfpr apply again.
Revocation list not refreshed¶
The engine checks licenses and entitlements against a signed revocation list. The list is signed again every day, and its age is measured from that signature.
How it is fetched:
- Each run downloads the list from
https://license.nrit.cloud/revocations.jwsand saves it in the repository's Actions cache. - If the download fails, the run uses the newest cached copy.
- The apply job downloads it again just before it applies.
| List age | Result |
|---|---|
| Less than 7 days | Healthy |
| 7 to 30 days | Warning. The report gives the date tfpr apply stops working |
| Over 30 days, or no list and no cached copy | Plan only |
The message has three forms:
- Could not be refreshed, cached copy used. The download failed, and the run fell back to the cache.
- The revocation list is N days old. The download worked, but the list itself is old. This is a problem on the signing side, not yours; tell your license provider.
- Could not be downloaded and there is no cached copy. The download failed and the cache is empty, for example on a new repository.
When a temporary entitlement has just ended, the message starts with its end date: "The temporary entitlement ended on 2026-11-08 and the cached license revocation list is 34 days old". The fix is the same.
Fix. Restore the download. The runners must reach license.nrit.cloud on
port 443. Check from a job on the same runner label:
200 is good. A timeout or a connection error means a firewall, proxy or DNS
rule blocks the host; allow it as in Requirements. The job log
of the failed run also names the error. Remember the self-hosted runner: the
apply job downloads the list there.
Retry: comment tfpr apply again. A successful download clears the warning and
plan only at once.
Exit entitlement¶
An exit entitlement keeps a repository applying after its contract ends. It
works without TFPR_LICENSE and without the revocation list: the engine does
not download the list at all, so nothing outside your organization can stop
it. It is still bound to one GitHub organization and one Azure tenant, and it
does not expire.
It covers one engine version and every earlier one. Every run report shows which:
ℹ️ Exit entitlement: this repository can apply with tfpr v9.1.0 and earlier. Keep the tfpr workflows pinned at v9.1.0 or earlier.
The check run text says License: valid, on an exit entitlement for tfpr
v9.1.0 and earlier.
Keep the pins. All tfpr caller workflows must stay at the
covered version or earlier. Turn off automatic engine updates: in Renovate,
disable the tfpr package rule ("enabled": false), or close any engine
update pull request without merging. Such a pull request plans normally,
because pull request runs use the engine pinned on the default branch, so the
problem only shows after it merges (see
Engine newer than the exit entitlement).
Set it. Replace the value of TFPR_ENTITLEMENT with the exit entitlement.
TFPR_LICENSE can stay or go; an exit entitlement ignores it.
The exit bundle¶
The exit entitlement is one part of the exit bundle the license issuer delivers when a contract ends. The bundle has three parts:
| Part | What it is |
|---|---|
| Exit entitlements | One per customer tenant that holds an unrevoked entitlement on the termination date, bound to that tenant, its GitHub organization, and the engine version pinned in its repository. |
| Engine mirror | A copy of the engine release at each pinned version, with its release binaries and the matching public entrypoint, in a public repository in a GitHub organization you choose. It holds only what the public entrypoint already publishes. |
| Caller changes | The edits to each customer repository's caller workflows and allowed actions so that its jobs fetch the engine from the mirror and run with the exit entitlement. |
After the bundle, a customer repository depends on nothing outside your organization: not the license, not the revocation list, not the public entrypoint.
Repoint the callers. Each job installs the engine runtime from the
repository that holds the workflow it runs, so the repository named in the
uses: lines decides where the engine comes from. The caller changes swap
nrit-solutions/tfpr for the mirror in every caller under
.github/workflows/, keeping the covered version as the ref:
The dispatch action lines (.github/actions/dispatch@) change the same way.
The mirror must be public: every job downloads the release binaries and
reads SHA256SUMS from the mirror without credentials, and a job's token
cannot read another private repository. Turn Actions off in the mirror's
settings; the callers run its workflows, the mirror itself runs nothing.
Add the mirror to each customer repository's allowed actions, next to the
nrit-solutions/tfpr entries, or GitHub refuses to start the callers: add
<your-org>/<mirror>@* and <your-org>/<mirror>/* to allowed_actions in
the customer tfvars and apply the bootstrap with
-target=github_actions_repository_permissions.live.
Set TFPR_ENTITLEMENT to the exit entitlement. TFPR_LICENSE is no longer
checked.
Apply the changes by pull request, merge to the default branch, then run one
tfpr plan and tfpr apply cycle per customer repository to confirm it works
against the mirror.
Engine newer than the exit entitlement¶
The repository runs on an exit entitlement, and the engine version that ran is newer than the one it covers. Preview builds are never covered. The run is plan only:
Plan only:
TFPR_ENTITLEMENTis an exit entitlement for tfpr v9.1.0 and earlier, and this run used v9.2.0, sotfpr applyis refused.
Find the covered version. The message names it. The check run text of any unit says it too.
Fix. Pin the tfpr workflows on the default branch back to the
covered version. In each caller workflow under
.github/workflows/, set the uses: ref to that version:
Merge that change to the default branch. Comment and dispatched runs use the workflows on the default branch, so the change takes effect on the next run.
Retry: comment tfpr plan, then tfpr apply. The tfpr plan writes a fresh reviewed
plan with the pinned engine, so the plan you approve and the apply run on the
same version.
Temporary entitlement¶
A temporary entitlement keeps tfpr apply working while the revocation list
cannot be refreshed, for a short time with a fixed end date. Until that date
the list age rules (the 7-day warning and the 30-day plan only) do not apply.
Everything else does: it needs TFPR_LICENSE, it is bound to one GitHub
organization and one Azure tenant, and a revoked license or entitlement on
the last list the run has still stops it.
Every run report shows the end date:
ℹ️ Temporary entitlement:
tfpr applykeeps working without a current revocation list until 2026-11-08.
In its last 7 days, if the list would still be over 30 days old at the end date, the report shows a warning instead:
The temporary entitlement in
TFPR_ENTITLEMENTends on 2026-11-08, in 4 days. After that,tfpr applyneeds a revocation list under 30 days old again.
After the end date it is a regular entitlement again. With a fresh list,
nothing changes and tfpr apply keeps working. With a list over 30 days old, or no
list, the run is plan only as described in
Revocation list not refreshed, with the end date in
the message.
Fix. Restore the revocation list download before the end date (see
Revocation list not refreshed). Then put the regular
entitlement back in TFPR_ENTITLEMENT; the bootstrap's scripts/onboard.sh
writes it again. Ask your license provider if the end date is too close.
Retry: comment tfpr apply again.