Witness the node tools alone: the controller's lease names no build any more
The controller ended by its unassignment (issue 1126, ADR 0590), so no build is judged by the lease: the lease witness, its contract and the direct get the witness asked it with are removed, and its tests now prove each rollback path on the node tools' PING. Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
+3
-5
@@ -3,16 +3,15 @@
|
||||
# docker run -d --rm --name w -p 14224:4222 -v $PWD/internal/link/testdata:/c:ro nats:2.11-alpine -js -c /c/witness-grants.conf
|
||||
# MESH_TEST_NATS_GRANTS=nats://127.0.0.1:14224 go test ./internal/link/ -run TestNatsWitness
|
||||
#
|
||||
# `node.anchor` is a machine's host with exactly the two subjects the witness asks added to what a
|
||||
# host already has (its inbox); `node.bare` is a host without them. `runtime` stands in for the tool
|
||||
# runtime, `admin` for the controller writing the lease.
|
||||
# `node.anchor` is a machine's host with exactly the subject the witness asks added to what a host
|
||||
# already has (its inbox); `node.bare` is a host without it. `runtime` stands in for the tool runtime.
|
||||
jetstream: enabled
|
||||
accounts {
|
||||
MESH {
|
||||
jetstream: enabled
|
||||
users = [
|
||||
{ user: "node.anchor", password: "a", permissions: {
|
||||
publish: { allow: ["$JS.API.DIRECT.GET.KV_mesh-controller_lease.$KV.mesh-controller_lease.holder", "$SRV.PING.node-tools.anchor"] }
|
||||
publish: { allow: ["$SRV.PING.node-tools.anchor"] }
|
||||
subscribe: { allow: ["_INBOX.node.anchor.>"] }
|
||||
} }
|
||||
{ user: "node.bare", password: "b", permissions: {
|
||||
@@ -23,7 +22,6 @@ accounts {
|
||||
subscribe: { allow: ["$SRV.PING.node-tools.>"] }
|
||||
allow_responses: { max: 1, ttl: "1m" }
|
||||
} }
|
||||
{ user: "admin", password: "x" }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user