Every module follows the assigner's new places: the contracts' go/ path, mesh-wants in the delivery contracts, the state and tool assignments (issue 1966)
The legacy key form placement.<node> is gone from the client, so the readers and their fixtures lose it. The check noplacement now also refuses the assigner's retired names in a manifest. Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
assignerclient "git.novox.be/novox/mesh-contracts/go/clients/meshmoduleassignerclient"
|
||||
engineclient "git.novox.be/novox/mesh-contracts/go/clients/nodeengineclient"
|
||||
mesh "git.novox.be/novox/mesh-contracts/go/seats/meshmoduleassigner"
|
||||
nodeengine "git.novox.be/novox/mesh-contracts/go/seats/nodeengine"
|
||||
assignerclient "git.novox.be/novox/mesh-contracts/placement/go/clients/meshmoduleassignerclient"
|
||||
mesh "git.novox.be/novox/mesh-contracts/placement/go/seats/meshmoduleassigner"
|
||||
"git.novox.be/novox/mesh-contracts/provisioning/go/clients/meshprovisionerclient"
|
||||
|
||||
"bytes"
|
||||
@@ -36,10 +36,10 @@ import (
|
||||
// back. A module taken off the node loses its needs and its report; the node-engine removes the files the
|
||||
// declaration no longer names.
|
||||
//
|
||||
// The owners it fills from are placement (in the module's plan), config (mesh-config_resolved) and the vault, asked for
|
||||
// The owners it fills from are assignments (in the module's plan), config (mesh-config_resolved) and the vault, asked for
|
||||
// each secret the module's plan names (secrets.go), and for each consumer's credential a provider here lists
|
||||
// (consumers.go); and each provider's entries for a consumer here. Every key it writes is its own machine's; it reads
|
||||
// the plans whole, for who binds a provider here (ADR 0373), and the seat mesh-module-assigner's placement, for which
|
||||
// the plans whole, for who binds a provider here (ADR 0373), and the seat mesh-module-assigner's assignments, for which
|
||||
// modules stay here: its bus account is granted no other.
|
||||
|
||||
// The holders whose states this module reads, each named once here (held equal to the manifest's `reads` by a unit row).
|
||||
@@ -57,14 +57,14 @@ const (
|
||||
// PlansBucket is where each module's provisioning plan on each node is read: the seat mesh-provisioner's
|
||||
// `plans` (novox/hq ADR 0570 clause 2), read as an assignment's value carried it (asAssignment).
|
||||
PlansBucket = provisionerModule + "_" + meshprovisionerclient.PlansState
|
||||
// PlacementBucket is the seat mesh-module-assigner's placement (novox/hq ADR 0567): a module it names on this node stays
|
||||
// AssignmentsBucket is the seat mesh-module-assigner's assignments (novox/hq ADR 0567): a module it names on this node stays
|
||||
// here while the seat mesh-provisioner holds no plan of it (nats on novox runs without a want), filled from its
|
||||
// last plan, and leaves only when neither names it (issue 1126 B12; the controller's assignments mirror, read for
|
||||
// this before, is frozen since the controller's end, ADR 0590).
|
||||
PlacementBucket = assignerModule + "_" + mesh.StatePlacement
|
||||
ConfigBucket = "mesh-config_resolved"
|
||||
RegistryBucket = "mesh-provisioner_registry"
|
||||
AppliedBucket = "mesh-provisioner_applied"
|
||||
AssignmentsBucket = assignerModule + "_" + mesh.StateAssignments
|
||||
ConfigBucket = "mesh-config_resolved"
|
||||
RegistryBucket = "mesh-provisioner_registry"
|
||||
AppliedBucket = "mesh-provisioner_applied"
|
||||
)
|
||||
|
||||
// AppliedSubject is where the client says what it applied for one module (ADR 0349 clauses 4 and 15).
|
||||
@@ -167,15 +167,15 @@ type state struct {
|
||||
plans map[string]Plan
|
||||
// seatPlans is the seat's plan by key, as an assignment's value reads.
|
||||
seatPlans map[string][]byte
|
||||
// placement is the seat mesh-module-assigner's keys as read, and placed the modules it names on this node.
|
||||
placement *assignerclient.Keys
|
||||
placed map[string]bool
|
||||
refused map[string]string // a module whose plan cannot be acted on, and why
|
||||
config map[string]map[string]json.RawMessage
|
||||
applied map[string]bool // module → a report is kept
|
||||
reported map[string][]byte // module → the last report said, undated
|
||||
last map[string]Report // module → the last report said, dated
|
||||
secrets map[string]heldSecret // the vault's name → what this run holds of it; never written anywhere
|
||||
// assignments is the seat mesh-module-assigner's keys as read, and placed the modules it names on this node.
|
||||
assignments *assignerclient.Keys
|
||||
placed map[string]bool
|
||||
refused map[string]string // a module whose plan cannot be acted on, and why
|
||||
config map[string]map[string]json.RawMessage
|
||||
applied map[string]bool // module → a report is kept
|
||||
reported map[string][]byte // module → the last report said, undated
|
||||
last map[string]Report // module → the last report said, dated
|
||||
secrets map[string]heldSecret // the vault's name → what this run holds of it; never written anywhere
|
||||
// items is every item recorded for this node, by collection and contributor: what a collector is filled from.
|
||||
items map[string]map[string]itemValue
|
||||
// recorded is each item's key and its value as kept: what this client compares before it records again.
|
||||
@@ -217,7 +217,7 @@ func (c *Client) Run(ctx context.Context) error {
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
defer cancel()
|
||||
kvs := map[string]jetstream.KeyValue{}
|
||||
for _, b := range []string{PlansBucket, PlacementBucket, ConfigBucket, RegistryBucket, AppliedBucket,
|
||||
for _, b := range []string{PlansBucket, AssignmentsBucket, ConfigBucket, RegistryBucket, AppliedBucket,
|
||||
CollectBucket} {
|
||||
kv, err := c.JS.KeyValue(ctx, b)
|
||||
if err != nil {
|
||||
@@ -255,9 +255,9 @@ func (c *Client) Run(ctx context.Context) error {
|
||||
}
|
||||
mine := c.Node + ".>"
|
||||
// The registry whole, and every machine's plan: a provider here is bound by consumers on any machine, in their plans
|
||||
// (ADR 0373); and placement whole, as its account is granted it (its node key and the legacy key are both read).
|
||||
// (ADR 0373); and assignments whole, as its account is granted it (its node key and the legacy key are both read).
|
||||
// Every other bucket, this machine's keys alone.
|
||||
for _, b := range []string{RegistryBucket, PlansBucket, PlacementBucket} {
|
||||
for _, b := range []string{RegistryBucket, PlansBucket, AssignmentsBucket} {
|
||||
if err := watch(b, ">"); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -347,13 +347,13 @@ func (c *Client) Run(ctx context.Context) error {
|
||||
config: map[string]map[string]json.RawMessage{}, applied: map[string]bool{},
|
||||
reported: map[string][]byte{}, secrets: map[string]heldSecret{}, items: map[string]map[string]itemValue{},
|
||||
recorded: map[string][]byte{}, assigned: map[string]bool{}, binds: map[string]binding{},
|
||||
placement: assignerclient.NewKeys(), placed: map[string]bool{},
|
||||
assignments: assignerclient.NewKeys(), placed: map[string]bool{},
|
||||
providing: map[string]bool{}, leftOut: map[string]string{}, bound: map[string]map[string][]byte{},
|
||||
boundReady: map[string]bool{}, unplaced: map[string]bool{}, boundUsers: map[string]map[string]bool{}}
|
||||
// Every current value first: nothing is filled from half of them.
|
||||
current := map[string]bool{}
|
||||
var early []*nats.Msg
|
||||
for len(current) < 6 { // the registry, the plans, placement, config, applied, collect
|
||||
for len(current) < 6 { // the registry, the plans, assignments, config, applied, collect
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return ctx.Err()
|
||||
@@ -519,7 +519,7 @@ func ownComposedOf(e jetstream.KeyValueEntry) string {
|
||||
return h.Composed
|
||||
}
|
||||
|
||||
// told says what an update moved of a module's config, or of its placement, which decides whether it is answered
|
||||
// told says what an update moved of a module's config, or of its assignments, which decides whether it is answered
|
||||
// at all (asks.go).
|
||||
func (c *Client) told(u update) {
|
||||
rest, ok := strings.CutPrefix(u.entry.Key(), c.Node+".")
|
||||
@@ -579,8 +579,8 @@ func (c *Client) take(s *state, u update) []string {
|
||||
}
|
||||
// A kind's answer moves what every module waits on.
|
||||
return sortedKeys(s.plans)
|
||||
case PlacementBucket:
|
||||
return c.takePlacement(s, key, e.Value(), e.Revision(), gone)
|
||||
case AssignmentsBucket:
|
||||
return c.takeAssignments(s, key, e.Value(), e.Revision(), gone)
|
||||
case PlansBucket:
|
||||
if s.seatPlans == nil {
|
||||
s.seatPlans = map[string][]byte{}
|
||||
@@ -599,8 +599,8 @@ func (c *Client) take(s *state, u update) []string {
|
||||
// key, so the module leaves the machine as it does when the key goes (issue 1098).
|
||||
gone = gone || !provider.Standing(value)
|
||||
if module, mine := strings.CutPrefix(key, c.Node+"."); mine && gone && s.placed[module] {
|
||||
// Placement still names it: it stays, filled from its last plan and binding as it did, until neither names
|
||||
// it (takePlacement).
|
||||
// Assignments still names it: it stays, filled from its last plan and binding as it did, until neither names
|
||||
// it (takeAssignments).
|
||||
return []string{module}
|
||||
}
|
||||
// Whom it binds, whichever machine's it is: a provider here listing its consumers is filled again.
|
||||
@@ -1173,19 +1173,19 @@ func (c *Client) forgetItems(ctx context.Context, kvs map[string]jetstream.KeyVa
|
||||
return removed
|
||||
}
|
||||
|
||||
// takePlacement folds one key of the seat mesh-module-assigner's placement in, and answers the modules of this node it moved:
|
||||
// takeAssignments folds one key of the seat mesh-module-assigner's assignments in, and answers the modules of this node it moved:
|
||||
// one it names now stays here without a plan; one it no longer names, with no plan of the seat, leaves.
|
||||
func (c *Client) takePlacement(s *state, key string, value []byte, revision uint64, gone bool) []string {
|
||||
node, err := s.placement.Put(key, value, revision, gone)
|
||||
func (c *Client) takeAssignments(s *state, key string, value []byte, revision uint64, gone bool) []string {
|
||||
node, err := s.assignments.Put(key, value, revision, gone)
|
||||
if node != c.Node {
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
logf("[provisioner-client] the placement's %s cannot be read, so this node's placement stays as it was: %v", key, err)
|
||||
logf("[provisioner-client] the assignments' %s cannot be read, so this node's assignments stays as it was: %v", key, err)
|
||||
return nil
|
||||
}
|
||||
now := map[string]bool{}
|
||||
if p, _, ok := s.placement.Of(c.Node); ok {
|
||||
if p, _, ok := s.assignments.Of(c.Node); ok {
|
||||
for _, m := range p.Modules {
|
||||
now[m.Module] = true
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
assignerclient "git.novox.be/novox/mesh-contracts/go/clients/meshmoduleassignerclient"
|
||||
engineclient "git.novox.be/novox/mesh-contracts/go/clients/nodeengineclient"
|
||||
mesh "git.novox.be/novox/mesh-contracts/go/seats/meshmoduleassigner"
|
||||
nodeengine "git.novox.be/novox/mesh-contracts/go/seats/nodeengine"
|
||||
assignerclient "git.novox.be/novox/mesh-contracts/placement/go/clients/meshmoduleassignerclient"
|
||||
mesh "git.novox.be/novox/mesh-contracts/placement/go/seats/meshmoduleassigner"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
@@ -84,7 +84,7 @@ func startBus(t *testing.T) *aBus {
|
||||
t.Fatal(err)
|
||||
}
|
||||
b := &aBus{url: s.ClientURL(), domain: js, conn: nc, kv: map[string]jetstream.KeyValue{}}
|
||||
for _, name := range []string{PlansBucket, PlacementBucket, ConfigBucket, RegistryBucket, AppliedBucket,
|
||||
for _, name := range []string{PlansBucket, AssignmentsBucket, ConfigBucket, RegistryBucket, AppliedBucket,
|
||||
CollectBucket, haveBucket} {
|
||||
kv, err := js.CreateKeyValue(context.Background(), jetstream.KeyValueConfig{Bucket: name})
|
||||
if err != nil {
|
||||
@@ -125,18 +125,18 @@ func (b *aBus) put(t *testing.T, bucket, key, value string) {
|
||||
}
|
||||
}
|
||||
|
||||
// place writes this node's placement as the seat mesh-module-assigner keeps it, naming exactly these modules.
|
||||
// place writes this node's assignments as the seat mesh-module-assigner keeps it, naming exactly these modules.
|
||||
func (b *aBus) place(t *testing.T, modules ...string) {
|
||||
t.Helper()
|
||||
p := mesh.Placement{V: 1, Node: node}
|
||||
p := mesh.Assignments{V: 1, Node: node}
|
||||
for _, m := range modules {
|
||||
p.Modules = append(p.Modules, mesh.PlacedModule{Module: m})
|
||||
}
|
||||
keys := assignerclient.NewKeys()
|
||||
ctx := context.Background()
|
||||
have, _ := b.kv[PlacementBucket].Keys(ctx)
|
||||
have, _ := b.kv[AssignmentsBucket].Keys(ctx)
|
||||
for _, k := range have {
|
||||
if e, err := b.kv[PlacementBucket].Get(ctx, k); err == nil {
|
||||
if e, err := b.kv[AssignmentsBucket].Get(ctx, k); err == nil {
|
||||
_, _ = keys.Put(k, e.Value(), e.Revision(), false)
|
||||
}
|
||||
}
|
||||
@@ -146,10 +146,10 @@ func (b *aBus) place(t *testing.T, modules ...string) {
|
||||
}
|
||||
for _, w := range writes {
|
||||
if w.Value == nil {
|
||||
b.del(t, PlacementBucket, w.Key)
|
||||
b.del(t, AssignmentsBucket, w.Key)
|
||||
continue
|
||||
}
|
||||
if _, err := b.kv[PlacementBucket].Put(ctx, w.Key, w.Value); err != nil {
|
||||
if _, err := b.kv[AssignmentsBucket].Put(ctx, w.Key, w.Value); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
@@ -448,7 +448,7 @@ func eventually(t *testing.T, what string, ok func() bool) {
|
||||
|
||||
const dunstrc = "/home/nox/.config/dunst/dunstrc"
|
||||
|
||||
// dunst is a module with one owned file naming a config value and a placement value.
|
||||
// dunst is a module with one owned file naming a config value and an assignment value.
|
||||
func dunst(t *testing.T) Plan {
|
||||
tpl, _ := templates(t, map[string]string{
|
||||
"dunstrc": "[global]\nfont = Monospace ${config:font-size}\nicons = ${machine:account-home}/.icons\n"})
|
||||
@@ -662,10 +662,10 @@ func TestNatsAModuleTakenOffTheNodeLosesItsReport(t *testing.T) {
|
||||
}
|
||||
|
||||
// Issue 1126 B12 (ADR 0590): the controller's assignments are frozen and go, so what places a module here is the seat
|
||||
// mesh-module-assigner's placement alone. A module stays while placement names it, even with no plan of the seat
|
||||
// mesh-module-assigner's assignments alone. A module stays while assignments names it, even with no plan of the seat
|
||||
// mesh-provisioner (nats on novox runs without a want): its last plan keeps being filled, and it leaves only when
|
||||
// neither its plan nor its placement is there.
|
||||
func TestNatsAModuleStaysWhilePlacementNamesItAndLeavesOnlyWhenNeitherPlacesIt(t *testing.T) {
|
||||
// neither its plan nor its assignments is there.
|
||||
func TestNatsAModuleStaysWhileAssignmentsNamesItAndLeavesOnlyWhenNeitherPlacesIt(t *testing.T) {
|
||||
b := startBus(t)
|
||||
heard := b.listen(t)
|
||||
e := startEngine(t, map[string]string{dunstrc: "owned"})
|
||||
@@ -677,14 +677,14 @@ func TestNatsAModuleStaysWhilePlacementNamesItAndLeavesOnlyWhenNeitherPlacesIt(t
|
||||
return strings.Contains(e.read(t, dunstrc), "Monospace 13")
|
||||
})
|
||||
|
||||
// The seat's plan goes, placement stays: the module stays, filled from its last plan, its report kept.
|
||||
// The seat's plan goes, assignments stays: the module stays, filled from its last plan, its report kept.
|
||||
b.del(t, PlansBucket, node+".dunst")
|
||||
b.config(t, "dunst", "font-size", "15")
|
||||
eventually(t, "dunstrc follows a change with only placement naming it", func() bool {
|
||||
eventually(t, "dunstrc follows a change with only assignments naming it", func() bool {
|
||||
return strings.Contains(e.read(t, dunstrc), "Monospace 15")
|
||||
})
|
||||
if r, _ := heard.last("dunst"); r.Status == StatusRemoved || len(b.keys(t, AppliedBucket, node+".dunst")) != 1 {
|
||||
t.Fatalf("the module left when its plan went, though placement still names it: %+v", r)
|
||||
t.Fatalf("the module left when its plan went, though assignments still names it: %+v", r)
|
||||
}
|
||||
|
||||
// Neither places it: it leaves.
|
||||
@@ -756,10 +756,10 @@ func TestNatsWhatCannotBeFilledFailsWithTheReason(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestNatsResticsFilesFillFromTheBackupPlacement is the backup lines as placement (issue 794): restic's two files
|
||||
// TestNatsResticsFilesFillFromTheBackupAssignments is the backup lines as assignments (issue 794): restic's two files
|
||||
// are the plan's `backup:lines` and `backup:data`, each exactly the text the controller composed, trailing newline
|
||||
// and all, and a changed plan refills them.
|
||||
func TestNatsResticsFilesFillFromTheBackupPlacement(t *testing.T) {
|
||||
func TestNatsResticsFilesFillFromTheBackupAssignments(t *testing.T) {
|
||||
const backups, data = "/var/lib/restic/backups.conf", "/var/lib/restic/data.conf"
|
||||
b := startBus(t)
|
||||
e := startEngine(t, map[string]string{backups: "owned", data: "owned"})
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
// their providers' entries carry them, the console's port from node-tools, the secrets and the per-holder read
|
||||
// credential from the vault.
|
||||
//
|
||||
// The controller's placement (nothing refused or unplaced) and the byte-identity of every file not handed are checked
|
||||
// The controller's assignments (nothing refused or unplaced) and the byte-identity of every file not handed are checked
|
||||
// against the controller itself, not here: this module cannot import its internals (the report of issue 761).
|
||||
|
||||
func catalogFile(t *testing.T, path string) string {
|
||||
|
||||
@@ -146,7 +146,7 @@ type PlannedFile struct {
|
||||
Takes string `json:"takes,omitempty"`
|
||||
}
|
||||
|
||||
// The placeholder kinds placement answers, as the plan's Placement keys begin (ADR 0349 clause 2).
|
||||
// The placeholder kinds assignments answers, as the plan's Assignments keys begin (ADR 0349 clause 2).
|
||||
var placementKinds = []string{"dir", "access", "port", "seat", "machine", "backup"}
|
||||
|
||||
var (
|
||||
@@ -345,7 +345,7 @@ func (p Plan) problems() []string {
|
||||
for k := range p.Placement {
|
||||
kind, name, ok := strings.Cut(k, ":")
|
||||
if !ok || name == "" || !slices.Contains(placementKinds, kind) {
|
||||
out = append(out, fmt.Sprintf("placement %q is not <kind>:<name> of a placement kind", k))
|
||||
out = append(out, fmt.Sprintf("assignments %q is not <kind>:<name> of an assignment kind", k))
|
||||
}
|
||||
}
|
||||
slices.Sort(out)
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ accounts {
|
||||
users = [
|
||||
{ user: "domain", password: "x" }
|
||||
{ user: "provisioner.g14", password: "x", permissions: {
|
||||
publish: { allow: ["$JS.API.CONSUMER.CREATE.KV_mesh-config_resolved.*.$KV.mesh-config_resolved.g14.>", "$JS.API.CONSUMER.CREATE.KV_mesh-provisioner_plans.>", "$JS.API.CONSUMER.CREATE.KV_mesh-delivery-assigner_placement.>", "$JS.API.CONSUMER.CREATE.KV_mesh-provisioner_applied.*.$KV.mesh-provisioner_applied.g14.>", "$JS.API.CONSUMER.CREATE.KV_mesh-provisioner_collect.*.$KV.mesh-provisioner_collect.g14.>", "$JS.API.CONSUMER.CREATE.KV_mesh-provisioner_registry.>", "$JS.API.CONSUMER.CREATE.KV_node-engine_have.*.$KV.node-engine_have.g14.node", "$JS.API.CONSUMER.DELETE.KV_node-engine_have.>", "$JS.API.DIRECT.GET.KV_node-engine_have.$KV.node-engine_have.g14.node", "$JS.API.STREAM.INFO.KV_node-engine_have", "$JS.FC.KV_node-engine_have.>", "$JS.API.CONSUMER.CREATE.KV_postgres_bound.*.$KV.postgres_bound.g14.>", "$JS.API.CONSUMER.CREATE.KV_route-adapter_bound.*.$KV.route-adapter_bound.g14.>", "$JS.API.CONSUMER.CREATE.KV_route-proxy_bound.*.$KV.route-proxy_bound.g14.>", "$JS.API.CONSUMER.CREATE.KV_node-tools_bound.*.$KV.node-tools_bound.g14.>", "$JS.API.CONSUMER.DELETE.KV_mesh-config_resolved.>", "$JS.API.CONSUMER.DELETE.KV_mesh-provisioner_plans.>", "$JS.API.CONSUMER.DELETE.KV_mesh-delivery-assigner_placement.>", "$JS.API.CONSUMER.DELETE.KV_mesh-provisioner_applied.>", "$JS.API.CONSUMER.DELETE.KV_mesh-provisioner_collect.>", "$JS.API.CONSUMER.DELETE.KV_mesh-provisioner_registry.>", "$JS.API.CONSUMER.DELETE.KV_postgres_bound.>", "$JS.API.CONSUMER.DELETE.KV_route-adapter_bound.>", "$JS.API.CONSUMER.DELETE.KV_route-proxy_bound.>", "$JS.API.CONSUMER.DELETE.KV_node-tools_bound.>", "$JS.API.DIRECT.GET.KV_mesh-config_resolved.$KV.mesh-config_resolved.g14.>", "$JS.API.DIRECT.GET.KV_mesh-provisioner_plans.>", "$JS.API.DIRECT.GET.KV_mesh-delivery-assigner_placement.>", "$JS.API.DIRECT.GET.KV_mesh-provisioner_applied.$KV.mesh-provisioner_applied.g14.>", "$JS.API.DIRECT.GET.KV_mesh-provisioner_collect.$KV.mesh-provisioner_collect.g14.>", "$JS.API.DIRECT.GET.KV_mesh-provisioner_registry.>", "$JS.API.DIRECT.GET.KV_postgres_bound.$KV.postgres_bound.g14.>", "$JS.API.DIRECT.GET.KV_route-adapter_bound.$KV.route-adapter_bound.g14.>", "$JS.API.DIRECT.GET.KV_route-proxy_bound.$KV.route-proxy_bound.g14.>", "$JS.API.DIRECT.GET.KV_node-tools_bound.$KV.node-tools_bound.g14.>", "$JS.API.STREAM.INFO.KV_mesh-config_resolved", "$JS.API.STREAM.INFO.KV_mesh-provisioner_plans", "$JS.API.STREAM.INFO.KV_mesh-delivery-assigner_placement", "$JS.API.STREAM.INFO.KV_mesh-provisioner_applied", "$JS.API.STREAM.INFO.KV_mesh-provisioner_collect", "$JS.API.STREAM.INFO.KV_mesh-provisioner_registry", "$JS.API.STREAM.INFO.KV_postgres_bound", "$JS.API.STREAM.INFO.KV_route-adapter_bound", "$JS.API.STREAM.INFO.KV_route-proxy_bound", "$JS.API.STREAM.INFO.KV_node-tools_bound", "$JS.FC.KV_mesh-config_resolved.>", "$JS.FC.KV_mesh-provisioner_plans.>", "$JS.FC.KV_mesh-delivery-assigner_placement.>", "$JS.FC.KV_mesh-provisioner_applied.>", "$JS.FC.KV_mesh-provisioner_collect.>", "$JS.FC.KV_mesh-provisioner_registry.>", "$JS.FC.KV_postgres_bound.>", "$JS.FC.KV_route-adapter_bound.>", "$JS.FC.KV_route-proxy_bound.>", "$JS.FC.KV_node-tools_bound.>", "$KV.mesh-provisioner_applied.g14.>", "$KV.mesh-provisioner_collect.g14.>", "mesh.seat.mesh-vault.call.get.provisioner~g14", "prov.applied.g14.>", "prov.changed.g14.>"] }
|
||||
publish: { allow: ["$JS.API.CONSUMER.CREATE.KV_mesh-config_resolved.*.$KV.mesh-config_resolved.g14.>", "$JS.API.CONSUMER.CREATE.KV_mesh-provisioner_plans.>", "$JS.API.CONSUMER.CREATE.KV_mesh-delivery-assigner_assignments.>", "$JS.API.CONSUMER.CREATE.KV_mesh-provisioner_applied.*.$KV.mesh-provisioner_applied.g14.>", "$JS.API.CONSUMER.CREATE.KV_mesh-provisioner_collect.*.$KV.mesh-provisioner_collect.g14.>", "$JS.API.CONSUMER.CREATE.KV_mesh-provisioner_registry.>", "$JS.API.CONSUMER.CREATE.KV_node-engine_have.*.$KV.node-engine_have.g14.node", "$JS.API.CONSUMER.DELETE.KV_node-engine_have.>", "$JS.API.DIRECT.GET.KV_node-engine_have.$KV.node-engine_have.g14.node", "$JS.API.STREAM.INFO.KV_node-engine_have", "$JS.FC.KV_node-engine_have.>", "$JS.API.CONSUMER.CREATE.KV_postgres_bound.*.$KV.postgres_bound.g14.>", "$JS.API.CONSUMER.CREATE.KV_route-adapter_bound.*.$KV.route-adapter_bound.g14.>", "$JS.API.CONSUMER.CREATE.KV_route-proxy_bound.*.$KV.route-proxy_bound.g14.>", "$JS.API.CONSUMER.CREATE.KV_node-tools_bound.*.$KV.node-tools_bound.g14.>", "$JS.API.CONSUMER.DELETE.KV_mesh-config_resolved.>", "$JS.API.CONSUMER.DELETE.KV_mesh-provisioner_plans.>", "$JS.API.CONSUMER.DELETE.KV_mesh-delivery-assigner_assignments.>", "$JS.API.CONSUMER.DELETE.KV_mesh-provisioner_applied.>", "$JS.API.CONSUMER.DELETE.KV_mesh-provisioner_collect.>", "$JS.API.CONSUMER.DELETE.KV_mesh-provisioner_registry.>", "$JS.API.CONSUMER.DELETE.KV_postgres_bound.>", "$JS.API.CONSUMER.DELETE.KV_route-adapter_bound.>", "$JS.API.CONSUMER.DELETE.KV_route-proxy_bound.>", "$JS.API.CONSUMER.DELETE.KV_node-tools_bound.>", "$JS.API.DIRECT.GET.KV_mesh-config_resolved.$KV.mesh-config_resolved.g14.>", "$JS.API.DIRECT.GET.KV_mesh-provisioner_plans.>", "$JS.API.DIRECT.GET.KV_mesh-delivery-assigner_assignments.>", "$JS.API.DIRECT.GET.KV_mesh-provisioner_applied.$KV.mesh-provisioner_applied.g14.>", "$JS.API.DIRECT.GET.KV_mesh-provisioner_collect.$KV.mesh-provisioner_collect.g14.>", "$JS.API.DIRECT.GET.KV_mesh-provisioner_registry.>", "$JS.API.DIRECT.GET.KV_postgres_bound.$KV.postgres_bound.g14.>", "$JS.API.DIRECT.GET.KV_route-adapter_bound.$KV.route-adapter_bound.g14.>", "$JS.API.DIRECT.GET.KV_route-proxy_bound.$KV.route-proxy_bound.g14.>", "$JS.API.DIRECT.GET.KV_node-tools_bound.$KV.node-tools_bound.g14.>", "$JS.API.STREAM.INFO.KV_mesh-config_resolved", "$JS.API.STREAM.INFO.KV_mesh-provisioner_plans", "$JS.API.STREAM.INFO.KV_mesh-delivery-assigner_assignments", "$JS.API.STREAM.INFO.KV_mesh-provisioner_applied", "$JS.API.STREAM.INFO.KV_mesh-provisioner_collect", "$JS.API.STREAM.INFO.KV_mesh-provisioner_registry", "$JS.API.STREAM.INFO.KV_postgres_bound", "$JS.API.STREAM.INFO.KV_route-adapter_bound", "$JS.API.STREAM.INFO.KV_route-proxy_bound", "$JS.API.STREAM.INFO.KV_node-tools_bound", "$JS.FC.KV_mesh-config_resolved.>", "$JS.FC.KV_mesh-provisioner_plans.>", "$JS.FC.KV_mesh-delivery-assigner_assignments.>", "$JS.FC.KV_mesh-provisioner_applied.>", "$JS.FC.KV_mesh-provisioner_collect.>", "$JS.FC.KV_mesh-provisioner_registry.>", "$JS.FC.KV_postgres_bound.>", "$JS.FC.KV_route-adapter_bound.>", "$JS.FC.KV_route-proxy_bound.>", "$JS.FC.KV_node-tools_bound.>", "$KV.mesh-provisioner_applied.g14.>", "$KV.mesh-provisioner_collect.g14.>", "mesh.seat.mesh-vault.call.get.provisioner~g14", "prov.applied.g14.>", "prov.changed.g14.>"] }
|
||||
subscribe: { allow: ["_INBOX.provisioner.g14.>", "mesh.mod.mesh-vault.event.secret-changed", "prov.ask.g14"] }
|
||||
allow_responses: { max: 1, ttl: "1m" }
|
||||
} }
|
||||
|
||||
Reference in New Issue
Block a user