Software access
Granting a software identity read access to selected records or collections, how software retrieves them, and revocation.
2 minute read
Software — a deployment script, a service, a CI job — can read selected secrets without a person’s password. It authenticates as a Heimdall application identity and receives only ciphertext it decrypts with its own private key.
flowchart LR
O(["Owner"]) -- "grant: records / collections" --> A{{Cerberus API}}
S["Software<br/>(holds its P-256 private key)"] -- "1 · POST /api/applications/token" --> H[("Heimdall")]
H -- "application JWT" --> S
S -- "2 · GET /api/software-secrets<br/>Bearer: application JWT" --> A
A -- "live check:<br/>GET /api/applications/self" --> H
A -- "ciphertext + key wrapped<br/>for the software's key" --> S
S -- "3 · decrypt locally" --> P["plaintext secret"]Granting
sequenceDiagram
autonumber
actor O as Owner
participant C as Owner's client
participant A as Cerberus API
O->>C: pick the software identity and targets
Note over C: for each target, wrap its root for the<br/>software's P-256 public key (HPKE)
C->>A: POST /api/software-grants<br/>{grantId, softwareIdentityId, expectedRevision,<br/>recipientKey, targets[{kind: record|collection, id, keyEnvelope}]}
A-->>C: 201 {grantId, revision}Retrieving
GET /api/software-secrets?grantId=…&kind=record|collection&id=…[&collectionId=…]
Authorization: Bearer <Heimdall application token>
- Only this endpoint accepts an application token. It must carry
tokenKind=applicationand the dedicated application audience, which must differ from the person audience; zero clock skew is allowed. - Every read is checked live with Heimdall (
GET /api/applications/self); there is no positive cache. - The response (
software_secret_found) carriesownerAccountId,grantId,grantRevision,target,provisioning,recipientKeyandauthorKey. Access is read-only.
Revoking
DELETE /api/software-grants/{id} with {expectedRevision} revokes the grant. Closing the
account revokes all of its software grants. As with any revocation, anything the software already
fetched and decrypted cannot be retracted.