Skip to content

feat(mqtt): optional TLS for broker connections - #555

Merged
gnacho merged 1 commit into
mainfrom
feat/mqtt-tls
Nov 1, 2026
Merged

gnacho merged 1 commit into
mainfrom
feat/mqtt-tls

Conversation

@gnacho

@gnacho gnacho commented Nov 1, 2026

Copy link
Copy Markdown
Owner

MQTT can now connect over TLS, from the local settings page and from a plan sent by NetPulse.

  • MQTT_TLS and MQTT_TLS_INSECURE are stored in the MQTT env file under /etc/netgrip. When TLS is on and no port is set, the default is 8883.
  • The broker URL uses tls:// and the client verifies against the system roots. The insecure option skips verification for self-signed brokers.
  • Probe, publisher and plan apply use the same settings.
  • mqtt.configure accepts 7 arguments (old layout) or 9 (with tls and tlsInsecure). NetPulse sends the long form only when TLS is enabled, so older servers keep working.
  • Tests cover the env round trip, the port defaults, the 7/9 argument decode and the apply path.

Part of gnacho/netpulse#1764. NetPulse will only propagate TLS to agents running v0.78.0 or newer.

@gnacho
gnacho merged commit 8a92cfa into main Nov 1, 2026
2 checks passed
@gnacho
gnacho deleted the feat/mqtt-tls branch November 1, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant