Files
mesh-delivery/modules/mesh-enrolment/module.json
T
jschoubben 1dae2de835 Issue enrolments and keep dead letters without the lease (issue 1126, A2)
The controller ended by its unassignment, so its lease key is absent for
good and mesh-sdk reads that as not handed away: mesh-enrolment's issue
stayed off and the watchman never took DEAD_LETTER_NOTICES, whose notices
age out after a week. Both now act without reading the lease; the
watchman still waits, and says so, while the controller's consumer on the
notices stands. Neither manifest reads the lease any more.

Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
2026-11-02 10:35:40 +01:00

89 lines
1.7 KiB
JSON

{
"module": "mesh-enrolment",
"version": "1",
"runs-as": "mesh-enrolment",
"claims": [
{
"name": "mesh-enrolment",
"scope": "mesh",
"serves": [
"issue",
"redeem",
"confirm",
"revoke",
"tokens",
"again"
]
}
],
"consumes": [
"mesh-enrolment.node-enrolled",
"mesh-enrolment.enrolment-refused",
"mesh-enrolment.enrolment-revoked",
"mesh-enrolment.enrolment-expired"
],
"uses": [
"operator-channel"
],
"invokes": [
"seat:mesh-hand-acts.hand-act",
"seat:mesh-hand-acts.warranted",
"seat:mesh-placement.propose",
"seat:mesh-vault.enrolment-token",
"seat:mesh-vault.node-account",
"seat:mesh-vault.sign"
],
"reads": [
"mesh-delivery-assigner.placement",
"mesh-grants.user-list",
"mesh-vault.signers",
"node-engine.have"
],
"state": [
{
"name": "enrolments",
"key-ttl": true
},
{
"name": "asked",
"history": 5
}
],
"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"
]
}
]
}
}