Ask the packet filter's holder allowed at every compose of the filter
The node-engine stays the one renderer of the filter file: at each compose of a converged node's filter it asks the holder of node-packet-filter its verb allowed within the setting compose-ask-bound (10 s) and renders the answer. When allowed does not answer, or answers what is not its answer, no filter file is composed: the one loaded is kept as it runs, the holder's module is not held (an old holder must stay replaceable), and the part withheld is said once in the journal until an answer comes between. The node hears allowances-changed on its own node's subject and composes again. The manifest invokes seat:node-packet-filter.allowed and consumes node-packet-filter.allowances-changed. Builds: design 08 control-verbs §1, §3, §4, §5, §7, §8; ADR 0683; H-A-305, H-A-307 (1), (2), H-A-314 (3), (5), (7), H-A-315 (2), (6), H-A-321
This commit is contained in:
+15
@@ -51,6 +51,7 @@
|
||||
"seat:mesh-recovery.kept-points",
|
||||
"seat:mesh-recovery.restore-kept",
|
||||
"seat:mesh-recovery.snapshot-kept",
|
||||
"seat:node-packet-filter.allowed",
|
||||
"seat:oci-artifact-registry.versions"
|
||||
],
|
||||
"consumes": [
|
||||
@@ -63,6 +64,7 @@
|
||||
"mesh-recovery.ended",
|
||||
"mesh-recovery.restored",
|
||||
"node-engine.running",
|
||||
"node-packet-filter.allowances-changed",
|
||||
"restic.backed-up"
|
||||
],
|
||||
"streams": [
|
||||
@@ -105,6 +107,12 @@
|
||||
"minimum": 1,
|
||||
"default": 5
|
||||
},
|
||||
"compose-ask-bound": {
|
||||
"type": "number",
|
||||
"description": "How long a compose of the node's packet filter waits for the holder of node-packet-filter to answer its verb allowed before it keeps the filter loaded and says the part withheld, in seconds (design 08 control-verbs §1, §4).",
|
||||
"minimum": 1,
|
||||
"default": 10
|
||||
},
|
||||
"resolve-again-minutes": {
|
||||
"type": "number",
|
||||
"description": "How long the node-engine holds a module whose want's version it could not resolve to its artifacts' digests, or whose resolution it forgot after a failed fetch, before it asks the registry seats' verb versions again, in minutes (design 47 H, H-A-146).",
|
||||
@@ -167,6 +175,13 @@
|
||||
"mode": "0644",
|
||||
"content": "${config:entry-asks}\n"
|
||||
},
|
||||
{
|
||||
"id": "compose-ask-bound",
|
||||
"type": "file",
|
||||
"path": "/var/lib/mesh-host/compose-ask-bound",
|
||||
"mode": "0644",
|
||||
"content": "${config:compose-ask-bound}\n"
|
||||
},
|
||||
{
|
||||
"id": "resolve-again",
|
||||
"type": "file",
|
||||
|
||||
Reference in New Issue
Block a user