Skip to content

Resolution grant lifecycle

A grant is the permission a node holds to fetch one credential for the work it is running. The control plane creates grants when it places your project on a node, authorizes and reserves each admitted use when the installation-local XSRP gateway asks, and ends them when the work moves, finishes, runs out of uses or is revoked. You never handle grants directly; this page explains their lifecycle so you can predict what disabling, revoking or moving work does.

When a grant is created

A grant is created only when all of these are true:

  • the project was deployed with a mapping for that use of the key;
  • the binding and the integration are Active, and any approval is in place;
  • the integration's coverage is Ready for the nodes the project may run on;
  • the work has been placed on a node, and that node is running it.

A grant is for that node, that work and that credential, with a limited number of uses and a short lifetime.

States

stateDiagram-v2
  [*] --> Issued
  Issued --> Active: confirmed for the node
  Issued --> Refused: check fails
  Active --> Consumed: last use
  Active --> Expired: time limit
  Issued --> Expired: time limit
  Active --> Revoked: work moved, or revoked
  Issued --> Revoked: work moved, or revoked

Only an Active grant fetches. The other end states are final: renewing, moving the work or redeploying creates a new grant.

Authorized and reserved on every fetch

The XSRP gateway asks the control plane to authorize and atomically reserve the exact use before every new fetch. The reservation counts the request once even if it is retried. A completed replay returns its recorded outcome and skips a second fetch.

If your integration permits bounded-offline recovery, the control plane first reserves the exact use and issues a short-lived signed assertion for that reservation. The active gateway records the assertion and in-flight operation before it contacts the manager. During a short control-plane outage it may recover or replay only that retained operation. It cannot reserve another use, choose another credential or begin another manager operation while disconnected. Anything revoked during the outage stops working when the assertion expires. An integration that requires live authorization refuses during the outage.

What ends grants

You do Grants
Disable a binding, integration or approval No new grants; existing ones run to their limit
Revoke a binding, integration or approval Existing grants stop at once
Nothing; the work moves to another node The old node's grants stop; the new node gets new ones
Nothing; the time or use limit runs out The grant ends; a renewal creates a new one

Loss of a logical XSRP gateway makes its data plane installation unavailable after the installation's health grace. Ordinary ownership transfer ends the old grants and creates gateway-bound grants for the new owner. The returning gateway's old grants stay fenced, and transferred work stays with its new owner. A manager-specific outage leaves ownership in place and reports a manager or coverage failure.