Files
mesh-delivery/modules/mesh-enrolment/module.json
T
jschoubben df82ca5959 JUDGE (A-30, §529, §387): the teller, the view, the watchman and the enrolment ask their findings in requires
Each drops its old state findings and stream <module>-findings for the requires entries findings (state, history kept) and finding-events (the three finding events, 7 days, 16 MiB); none is a foundation part (§529, A-30).

Builds: design 47 G §387, §529, §577, A-30

Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
2026-11-11 22:44:34 +01:00

116 lines
2.3 KiB
JSON

{
"module": "mesh-enrolment",
"version": "0.1",
"runs-as": "mesh-enrolment",
"claims": [
{
"name": "mesh-node-enroller",
"scope": "mesh",
"serves": [
"issue",
"redeem",
"confirm",
"revoke",
"tokens",
"again"
]
}
],
"consumes": [
"mesh-node-enroller.node-enrolled",
"mesh-node-enroller.enrolment-refused",
"mesh-node-enroller.enrolment-revoked",
"mesh-node-enroller.enrolment-expired",
"mesh-delivery-assigner.views.assignments",
"mesh-conditions.findings-asked"
],
"uses": [
"operator-channel"
],
"invokes": [
"seat:mesh-hand-acts.hand-act",
"seat:mesh-hand-acts.warranted",
"seat:mesh-module-assigner.propose",
"seat:mesh-vault.enrolment-token",
"seat:mesh-vault.node-account",
"seat:mesh-vault.sign",
"mesh-delivery-assigner.assigner_read_assignments"
],
"reads": [
"mesh-grants.user-list",
"mesh-vault.signers",
"node-engine.have"
],
"state": [
{
"name": "enrolments",
"key-ttl": true
},
{
"name": "asked",
"history": 5
}
],
"tools": [
"enrolment_first_views",
"enrolment_first_view_again"
],
"own-secrets": {
"broker": "${dir:state}/broker"
},
"secrets-owner": "mesh-enrolment",
"resources": [
{
"id": "account",
"type": "user",
"name": "mesh-enrolment",
"shell": "/usr/bin/nologin",
"home": "/var/lib/mesh-enrolment"
},
{
"id": "state",
"type": "directory",
"mode": "0700",
"owner": "mesh-enrolment",
"place": ".",
"unknown": "program"
}
],
"build": {
"artifacts": [
{
"name": "tools",
"kind": "bundle",
"language": "go",
"system": "arch",
"from": "cmd/mesh-enrolment",
"binary": "mesh-enrolment",
"loads": [
"mesh-enrolment"
]
}
]
},
"requires": [
{
"name": "findings",
"storage": "key-value",
"template": "state"
},
{
"name": "finding-events",
"storage": "stream",
"template": "events",
"options": {
"events": [
"finding-written.*",
"finding-cleared.*",
"findings-stated.*"
],
"max-age-days": 7,
"max-mib": 16
}
}
]
}