Declared auth binding delivery¶
A credential travels from your secret manager to the code that needs it in one path, and the path is the same for every project. The block declares a key, the project maps that key to a binding, and when the project runs, the node fetches the credential through its installation-local XSRP gateway and hands it to that one piece of code. The credential passes through your network and the node running the work, and Xratu's control plane only ever sees the record of it. This page follows a credential from declaration to use.
The path¶
flowchart TB
subgraph CP["XRATU CONTROL PLANE"]
direction LR
REL[("Your project release<br/>which binding each key uses")]
REC[("Audit record")]
end
subgraph DPI["DATA PLANE INSTALLATION"]
direction TB
RES["Resolver"]
GW["XSRP gateway"]
KRN["Kernel<br/>your block's code"]
end
subgraph YOU["YOUR MANAGER BOUNDARY"]
direction LR
MGR[("Secret manager")]
end
REL -->|"1. permission to fetch"| RES
RES -->|"2. request"| GW
GW -->|"3. fetch"| MGR
GW -->|"4. credential"| RES
RES -->|"5. credential, to one block"| KRN
RES -->|"6. record, no credential"| REC
Step by step¶
When you write the block. You declare the keys the code needs:
@xratu_auth(requires=["api_key"]). See
Secret binding declaration.
When you set up the project. xratu secret configure project lists every
place the project uses a declared key and records which binding each one gets
in auth.xratu. See
Exact auth mapping and delivery.
When you deploy. Xratu checks every key is mapped to an active binding, every node that might run the project can reach its local XSRP gateway, and each gateway can reach the manager. It then records the exact binding revisions in the release.
When the project runs. The node running the work gets permission to fetch the project's credentials, asks its local XSRP gateway for them, and hands each one to the block that declared it. Signing keys and connection credentials stay at the manager boundary: the gateway returns the signature or the open connection.
What is recorded¶
Every fetch leaves a record with the project, the place in the project that used the credential, the binding and its revision, which version of the credential your manager returned, the node, and whether the XSRP gateway allowed or refused it. No record holds the credential. See Resolution evidence admission.