mesh-grants: list the held seat's own-node machine event in the carried module's membership too
Code review round 1, C-1: granting the subject in the tool runner's NATS account (the previous commit) is not enough, because the runtime's own mayPublish (node-tools/internal/bus/seat.go) checks a module's membership (SeatTraffic.Publish), never the account permissions. SeatTrafficOf leaves a held seat's machine event out of that list and defers to the held-seats' account grant, which the membership check never reads. MembershipFor now lists it too, on the carried module's own node alone. Golden file testdata/user-lists.json updated: the existing "pause" fixture (node-power's machine event "paused") now also appears in its seat-traffic publish list. Builds: design 08 sign-in-page C-1
This commit is contained in:
@@ -344,7 +344,8 @@
|
||||
"tools": "mesh.mod.pause.tool.tools",
|
||||
"seat-traffic": {
|
||||
"publish": [
|
||||
"mesh.seat.node-power.event.slept"
|
||||
"mesh.seat.node-power.event.slept",
|
||||
"mesh.seat.node-power.event.paused.ace"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user