Fix volcanic-agents user config: token → password

NATS's authorization.users entries don't accept a `token` field
(only `user+password`, `nkey`, or JWT). `token` at the top of the
authorization block is a single global token. NATS was crash-looping
with "unknown field 'token'" at line 20 col 32 of nats-server.conf.

Wire the NATS_VOLCANIC_AGENTS_TOKEN env var through the password
field instead. Env-var name stays the same — semantically the value
is still a bearer token, only the NATS field it's carried in changes.
CLAUDE.md and credentials.local.json updated accordingly.
This commit is contained in:
2026-08-26 15:07:47 +00:00
parent 6d91fdbfb1
commit 2f14b6c40a
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ configs:
authorization {
users = [
{ user: "${NATS_USER}", password: "${NATS_PASSWORD}" },
{ user: "volcanic-agents", token: "${NATS_VOLCANIC_AGENTS_TOKEN}" }
{ user: "volcanic-agents", password: "${NATS_VOLCANIC_AGENTS_TOKEN}" }
]
}