Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring an encryptionKey does not immediately switch to encryption #1980

Open
lionelbrits opened this issue Feb 18, 2025 · 5 comments
Open
Labels

Comments

@lionelbrits
Copy link

lionelbrits commented Feb 18, 2025

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.

@jpmens
Copy link
Member

jpmens commented Feb 18, 2025

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.)

@lionelbrits
Copy link
Author

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.

@jpmens
Copy link
Member

jpmens commented Feb 18, 2025

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?

@lionelbrits
Copy link
Author

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.

@jpmens jpmens added the bug label Feb 18, 2025
@jpmens
Copy link
Member

jpmens commented Feb 18, 2025

I agree and am marking this as a bug.

@jpmens jpmens changed the title App refuses to encrypt payloads Configuring an encryptionKey does not immediately switch to encryption Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants