meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
2.89k stars 670 forks source link

[Bug]: MQTT JSON message are not encrypted if Encrpyted is on #3919

Closed petrkr closed 2 weeks ago

petrkr commented 2 weeks ago

Category

WiFi, Other

Hardware

Not Applicable

Firmware Version

2.3.6.7a3570a

Description

If there is enabled JSON output in MQTT then payload in JSON is not encrypted regardless on "Encryption enabled" is on/off

in topic /e/ it encrypt if enabled, plain text if disabled.

Do not know if this is actually BUG or Feature. But node with JSON enabled output will send unencrypted plain text even encryption is enabled.

Relevant log output

No response

caveman99 commented 2 weeks ago

JSON is never encrypted, that is intended behaviour. the encryption only affects the binary protobuf format payload.