Skip to content

Resolution evidence admission

Every time a node fetches a credential, or is refused one, Xratu keeps a record. The record says which project, which place in the project, which binding and revision, which version of the credential your manager returned, which node asked, and whether its local XSRP gateway allowed it, with the reason when it refused. The gateway signs its part, and the control plane accepts the record only when the gateway's part and the node's part agree. No record holds the credential. This page covers what a record answers and how it is kept trustworthy.

What a record answers

Question The record holds
Which project used a credential, and where The project, the release and the place in the project that used the key
Which credential The binding and its revision
Which version The version your manager returned, as an opaque identifier
Who asked The node and the work it was running
What happened Allowed or refused, with the reason
Can it be trusted The XSRP gateway's signature over its part

How a record is kept trustworthy

flowchart TB
  subgraph CP["XRATU CONTROL PLANE"]
    direction LR
    ADM{{"Check signature and<br/>match to the grant"}}
    REC[("Fetch records")]
  end
  subgraph DPI["DATA PLANE INSTALLATION"]
    direction TB
    RES["Resolver"]
    GW["XSRP gateway<br/>signs its receipt"]
  end
  RES -->|"1. request"| GW
  GW -->|"2. signed receipt"| RES
  RES -->|"3. receipt and node's record"| ADM
  ADM --> REC

The control plane checks the XSRP gateway's signature, that the receipt and the node's record agree, and that both match the grant the node held. A repeated record is accepted once. A record that conflicts with one already kept, or that was altered, is refused, and a fetch with no record is never counted as a success.

The kernel keeps its own record of using the credential, which links to the fetch record. Together they show a credential from the XSRP gateway to the code that used it. See Audit and replay.