Skip to content

Project-auth admission and use-policy compilation

When you deploy a project that declares keys, Xratu checks its auth.xratu before anything runs: every use of a key must be mapped exactly once, to an active binding in the workspace, through an integration that is ready. It then records, for each use, which binding revision it gets and what it may do with it, such as fetch the credential or only sign with it. xratu secret check project runs the same checks without deploying. This page covers how Xratu finds every use, the checks, the refusals and what is recorded.

How Xratu finds every use of a key

Xratu builds the list from your project's declarations and the published versions of everything it uses: blocks, published flows, agents, the tools and subagents each agent declares, and included flows. It never reads block source code. The same block used in two places counts twice, and the same tool under two agents counts twice, so each can get its own credential. An agent counts only the tools it declares.

Every artifact must be published and pinned to a version; an unpublished or unpinned one stops the check before any binding is suggested.

If the control plane cannot be reached, Xratu can use only a current lock that the control plane signed for that exact project closure. The lock has its own signing authority and validity window. An unsigned, expired or changed lock is refused; Xratu does not fall back to local source inspection or a stale cache.

The checks

flowchart TB
  subgraph CP["XRATU CONTROL PLANE"]
    direction TB
    LIST["List every use of a key"]
    MAP{{"Each use mapped once<br/>to an active binding"}}
    COV{{"Integration ready<br/>on every node"}}
    POL{{"Approval needed?"}}
    REL[("Project release")]
  end
  subgraph SRC["YOUR PROJECT FOLDER"]
    direction LR
    AX["auth.xratu"]
  end
  AX --> MAP
  LIST --> MAP
  MAP --> COV
  COV --> POL
  POL -->|"no, or approved"| REL

Refusals

You see Cause Fix
Unresolved use A use of a key has no mapping, often a new block, tool or include Run xratu secret configure project
Stale or duplicate mapping auth.xratu maps a use absent from the project, or maps one twice Run configure project and confirm the clean-up
Project changed The project changed after auth.xratu was written Run configure project
Key meaning changed A block release changed what one of its keys means Map that use again
Unknown binding The binding name does not exist in this workspace Check the workspace context and the name
Binding or integration not active It is Draft, Disabled or Revoked Map to an active binding
Operation not offered The integration cannot do what the block needs, for example signing Use an integration that offers it
Integration not ready Some node that could run the project has not passed coverage See Coverage admission
Approval required Policy marks this use as sensitive See Break-glass authority

A project with no declared keys passes without auth.xratu.

What is recorded

For each use of a key, the release records the binding revision, the integration revision and the use policy: what the use may do, for what purpose, and which version of the credential it gets. Changing a binding, an integration or the mapping takes effect when you apply the project again.