]> git.aero2k.de Git - urlbot-v3.git/commit
Bind local NATS server to 127.0.0.1 instead of all interfaces
authorThorsten <mail@aero2k.de>
Sat, 18 Jul 2026 08:50:35 +0000 (10:50 +0200)
committerThorsten <mail@aero2k.de>
Sat, 18 Jul 2026 08:50:35 +0000 (10:50 +0200)
commitcf5e2232be5f462a80345db9ec3131e98b246077
treee327e50db81bfefb33f89a9cfd197a2ad6535b7a
parent8af183f0d95111f94ba08d6809e22624f0f5da8f
Bind local NATS server to 127.0.0.1 instead of all interfaces

nats-server defaults to binding 0.0.0.0, and the systemd unit didn't
override that - meaning any host that can reach munin's port 4222 could
publish/subscribe to the bot's classifier exchange or JetStream streams
with zero authentication configured. It's only ever used by processes on
the same host (nats_uri=localhost), so restrict it to loopback.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
deploy/roles/urlbot/tasks/nats_server.yml
deploy/roles/urlbot/templates/nats-server.service