cli: module issue seals the node and module into the credential
So the runtime knows the identity the account was scoped to, without a manifest naming the node. Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF
This commit is contained in:
@@ -260,9 +260,15 @@ func moduleCommand(ctx context.Context, args []string) error {
|
|||||||
held, err := json.Marshal(struct {
|
held, err := json.Marshal(struct {
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Fingerprint string `json:"fingerprint,omitempty"`
|
Fingerprint string `json:"fingerprint,omitempty"`
|
||||||
|
Node string `json:"node"`
|
||||||
|
Module string `json:"module"`
|
||||||
}{
|
}{
|
||||||
URL: fmt.Sprintf("amqps://%s:%s@%s/", account, password, known.Address),
|
URL: fmt.Sprintf("amqps://%s:%s@%s/", account, password, known.Address),
|
||||||
Fingerprint: known.Fingerprint,
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user