Every account may call every verb from H1, so secret-ask answers every caller the runtime proved and retire every caller whose warrant holds; the manifest's two lists, the config retire-callers and its file go. The enrolment verbs keep their one list, now a small type of the vault's own since mesh-sdk's Callers goes. Builds: design 47 H §752 (ADR 0682 §10's exception for the enrolment caller, H-A-11); H-A-41, H-A-66 Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
246 lines
5.1 KiB
JSON
246 lines
5.1 KiB
JSON
{
|
|
"module": "mesh-vault",
|
|
"version": "0.1",
|
|
"packages": {
|
|
"git.novox.be/novox/mesh-delivery/modules/mesh-grants/grantsstate": "0.1"
|
|
},
|
|
"runs-as": "mesh-vault",
|
|
"provides": [
|
|
{
|
|
"name": "secret",
|
|
"credential": {
|
|
"form": "pair"
|
|
},
|
|
"scope": "mesh",
|
|
"identity": {
|
|
"in": "a vault entry"
|
|
}
|
|
}
|
|
],
|
|
"emits": [
|
|
"provisioned",
|
|
"rotated",
|
|
"secret-changed",
|
|
"account-hashed",
|
|
"own-replaced",
|
|
"account-issued",
|
|
"signed",
|
|
"rotation-begun",
|
|
"node-account-ready",
|
|
"rotation-done",
|
|
"own-retired"
|
|
],
|
|
"invokes": [
|
|
"seat:mesh-hand-acts.hand-acts",
|
|
"mesh-delivery-assigner.assigner_read_assignments",
|
|
"seat:anthropic-licence-manager.bindings"
|
|
],
|
|
"reads": [
|
|
"node-engine.have",
|
|
"mesh-grants.accounts",
|
|
"mesh-provisioner.plans",
|
|
"mesh-provisioner.provisions"
|
|
],
|
|
"state": [
|
|
{
|
|
"name": "bus-accounts",
|
|
"history": 2
|
|
},
|
|
"signers",
|
|
"bound",
|
|
"node-logins",
|
|
"findings",
|
|
"licence-bindings"
|
|
],
|
|
"receives": {
|
|
"secret": "${dir:grants}/mesh.json"
|
|
},
|
|
"grants": {
|
|
"secret": "${dir:grants}"
|
|
},
|
|
"keeps": "/var/lib/mesh-vault/root",
|
|
"data": {
|
|
"own": [
|
|
{
|
|
"id": "state",
|
|
"path": "${dir:state}",
|
|
"class": "valuable",
|
|
"why": "the vault's own keys"
|
|
},
|
|
{
|
|
"id": "ledger",
|
|
"path": "${dir:ledger}",
|
|
"class": "valuable",
|
|
"why": "every secret the vault keeps"
|
|
},
|
|
{
|
|
"id": "root",
|
|
"path": "${dir:root}",
|
|
"class": "valuable",
|
|
"why": "the vault's root material"
|
|
},
|
|
{
|
|
"id": "store",
|
|
"path": "${dir:store}",
|
|
"class": "valuable",
|
|
"why": "every secret the vault holds, sealed to its own key and to the operator key"
|
|
}
|
|
],
|
|
"consumers": {
|
|
"secret": {
|
|
"class": "valuable",
|
|
"in": "ledger",
|
|
"why": "a secret given to a consumer is kept nowhere else in the clear"
|
|
}
|
|
}
|
|
},
|
|
"own-secrets": {
|
|
"broker": "${dir:state}/broker"
|
|
},
|
|
"secrets-owner": "mesh-vault",
|
|
"runtime-health": {
|
|
"kind": "tool",
|
|
"tool": "vault_health",
|
|
"interval": "60s",
|
|
"timeout": "10s",
|
|
"looks": 2,
|
|
"grace": "60s"
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "account",
|
|
"type": "user",
|
|
"name": "mesh-vault",
|
|
"shell": "/usr/bin/nologin",
|
|
"home": "/var/lib/mesh-vault"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-vault",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "grants",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-vault",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "ledger",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-vault",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "root",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-vault",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "store",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-vault",
|
|
"unknown": "program"
|
|
}
|
|
],
|
|
"streams": [
|
|
{
|
|
"name": "mesh-vault-findings",
|
|
"events": [
|
|
"finding-written.*",
|
|
"finding-cleared.*",
|
|
"findings-stated.*"
|
|
],
|
|
"max-age-days": 7,
|
|
"max-mib": 16
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "code",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-vault",
|
|
"binary": "mesh-vault",
|
|
"loads": [
|
|
"mesh-vault"
|
|
],
|
|
"env": {
|
|
"MESH_RECEIVES": "${dir:grants}/mesh.json",
|
|
"MESH_VAULT_LEDGER": "${dir:ledger}",
|
|
"MESH_VAULT_ROOT": "${dir:root}",
|
|
"MESH_VAULT_STORE": "${dir:store}",
|
|
"MESH_VAULT_STATE": "${dir:state}",
|
|
"MESH_VAULT_ENROLMENT_CALLERS": "mesh-enrolment"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"tools": [
|
|
"secret_export",
|
|
"secret_holders",
|
|
"secret_verify",
|
|
"secret_handed",
|
|
"own_handed",
|
|
"secret_own",
|
|
"account_hash",
|
|
"account_adopt",
|
|
"account_retire",
|
|
"secret_asks",
|
|
"secret_vault_export",
|
|
"provisioner_retirement",
|
|
"provisioner_retire_approve",
|
|
"provisioner_retire_reject",
|
|
"provisioner_delete",
|
|
"vault_status",
|
|
"vault_health",
|
|
"own_drift",
|
|
"own_take_switch",
|
|
"vault_signers",
|
|
"vault_signed",
|
|
"signers_reassert",
|
|
"node_logins",
|
|
"vault_first_views",
|
|
"vault_first_view_again"
|
|
],
|
|
"claims": [
|
|
{
|
|
"name": "mesh-vault",
|
|
"scope": "mesh",
|
|
"serves": [
|
|
"get",
|
|
"secret-ask",
|
|
"issued",
|
|
"rotate",
|
|
"move-in",
|
|
"node-key",
|
|
"own",
|
|
"issue-account",
|
|
"sign",
|
|
"enrolment-token",
|
|
"node-account",
|
|
"rotate-node",
|
|
"node-account-confirm",
|
|
"abandon",
|
|
"retire",
|
|
"licence-put"
|
|
]
|
|
}
|
|
],
|
|
"consumes": [
|
|
"mesh-delivery-assigner.views.assignments",
|
|
"mesh-conditions.findings-asked",
|
|
"claude-licence-manager.binding.changed"
|
|
]
|
|
}
|