Task containers log in with their run credential on an external broker and reach only their own subjects, decided by the embedded broker's authenticator. The broker token is never put in a container environment.
11 lines
216 B
Plaintext
11 lines
216 B
Plaintext
jetstream { store_dir: /data }
|
|
http_port: 8222
|
|
|
|
authorization {
|
|
users: [{ user: "archie-callout", password: $NATS_TOKEN }]
|
|
auth_callout {
|
|
issuer: $NATS_CALLOUT_ISSUER
|
|
auth_users: ["archie-callout"]
|
|
}
|
|
}
|