feat: optional NATS token authentication (archie-core-l1q)
Add token_env to [nats] config, resolved and validated at daemon startup (fails early if configured but the named env var is unset). Container workers get NATS_URL/NATS_TOKEN; archie-agent honors both while CLI-supplied URL still takes precedence. Anonymous auth remains the default for single-node deployments. Unblocks archie-core-5zh (promote archie-agent to per-task process).
This commit is contained in:
1 parent
b6b23bbb59
commit
4be28e0e48
12 files changed
+159
-20
No files matched your search
@@ -251,7 +251,7 @@ func TestNATSRunnerRoundTrip(t *testing.T) {
|
||||
url := srv.ClientURL()
|
||||
|
||||
ctx := context.Background()
|
||||
client, err := arnats.Connect(ctx, url, slog.New(slog.DiscardHandler))
|
||||
client, err := arnats.Connect(ctx, url, "", slog.New(slog.DiscardHandler))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user