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:
@@ -22,6 +22,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/novox/mesh-host/internal/compose/resolution"
|
||||
engcomp "github.com/novox/mesh-host/internal/compositions"
|
||||
"sort"
|
||||
"strings"
|
||||
@@ -283,6 +284,10 @@ type Node struct {
|
||||
// (`<module>.own-runtime`); nil when none runs. A held module's share of a holder's words that every module gives a
|
||||
// share of (the secret places, the owned paths) is taken from them (resolution.Holding; design 47 H, H-A-335, H-A-337).
|
||||
RunsRuntimes map[string]map[string]string
|
||||
// Filter is, of the node composing itself, what the compose of its packet filter is given beside the derived ports: the
|
||||
// allowances the holder of node-packet-filter answered its verb allowed, or why it did not answer and the filter file as
|
||||
// it runs, which is then kept (design 08 control-verbs §1, §4). Empty renders no allowance, as for every other node.
|
||||
Filter resolution.Filter
|
||||
}
|
||||
|
||||
// ComposedHow is how a node-engine composes its node from an Input (Input.ComposedHow).
|
||||
|
||||
Reference in New Issue
Block a user