android icon indicating copy to clipboard operation
android copied to clipboard

Configuring an encryptionKey does not immediately switch to encryption

Open lionelbrits opened this issue 10 months ago • 5 comments

For some reason, I can't get the app (Owntracks 2.5.3) to encrypt the payloads. Even if I include a secret key, inspecting the results with MQTT Explorer shows that it is being sent in cleartext. Another device seems to encrypt without issue, and there seems to be no difference in settings for the two phones.

lionelbrits avatar Feb 18 '25 00:02 lionelbrits

Please export your configuration into a file and verify that the encryption key is actually set, and that it doesn't begin or end with white space. (I don't think the latter should matter, but better safe than sorry.)

jpmens avatar Feb 18 '25 07:02 jpmens

Here's my redacted config file: config.txt What's interesting is that I copied this .ortc from a phone on which the payload actually gets encrypted.

lionelbrits avatar Feb 18 '25 10:02 lionelbrits

That looks ok to me.

This might be a stupid question, but have you tried restarting the app completely? Do you then still see the messages unencrypted when they're published?

jpmens avatar Feb 18 '25 10:02 jpmens

That did the trick. I previously reinstalled the app after clearing all data, but because the default state is unencrypted, the issue persisted. This seems like a critical bug to me, however. One expects that if an encryption key is set that the data is actually encrypted. Thanks.

lionelbrits avatar Feb 18 '25 11:02 lionelbrits

I agree and am marking this as a bug.

jpmens avatar Feb 18 '25 11:02 jpmens

Pretty sure this got fixed, please re-raise if you see it again on 2.5.4.

growse avatar Aug 24 '25 12:08 growse