broker: a module account scopes its tool serve queues + mesh.rpc (ADR 0052) #5

Merged
jschoubben merged 8 commits from events/tool-account-scope into initialization 2026-09-05 01:06:52 +00:00
Showing only changes of commit 931ca6f01e - Show all commits
+6
View File
@@ -260,9 +260,15 @@ func moduleCommand(ctx context.Context, args []string) error {
held, err := json.Marshal(struct {
URL string `json:"url"`
Fingerprint string `json:"fingerprint,omitempty"`
Node string `json:"node"`
Module string `json:"module"`
}{
URL: fmt.Sprintf("amqps://%s:%s@%s/", account, password, known.Address),
Fingerprint: known.Fingerprint,
// The node and module the account is for, so the runtime names its queue as the mesh
// scoped it (<node>.<module>.events) without a manifest having to interpolate a node.
Node: *forNode,
Module: module,
})
if err != nil {
return err