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

Remove legacy remote node administration #5684

Open
fifieldt opened this issue Dec 27, 2024 · 6 comments
Open

Remove legacy remote node administration #5684

fifieldt opened this issue Dec 27, 2024 · 6 comments

Comments

@fifieldt
Copy link
Contributor

Firmware 2.5 introduced Public Key Cryptography (PKC) to Meshtastic. With it came the ability for node operators to specify which keys should be allowed to remotely administer a node. This was a major security improvement - previously node operators had to have a single management channel and one pre-shared key to secure their nodes.

Until now, we've kept the 'legacy' functionality in place, so users of version 2.5+ firmware could still manage older nodes. Now firmware 2.5+ is in widespread use, and the new remote node administration functionality is well-tested, we can safely remove 'legacy' remote node administration. This has benefits of a smaller and more maintainable code-base, reducing a potential vulnerability vector.

References:
https://meshtastic.org/docs/overview/encryption/
https://meshtastic.org/docs/development/reference/encryption-technical/
https://meshtastic.org/docs/configuration/remote-admin/

@iondulgheru
Copy link

This new way of remote admin is not working on nodes where licensed ham radio is enabled. Only the older way with admin channel still works on nodes for licensed radio operators. I tested multiple times, last time on 2.5.15.
So removing the legacy functionality will make remote nodes used by licensed ham operators unavailable for remote administration.

@garthvh
Copy link
Member

garthvh commented Jan 9, 2025

This new way of remote admin is not working on nodes where licensed ham radio is enabled. Only the older way with admin channel still works on nodes for licensed radio operators. I tested multiple times, last time on 2.5.15. So removing the legacy functionality will make remote nodes used by licensed ham operators unavailable for remote

an admin channel that is not encrypted is not a supported option, the legacy admin channel is not expected to work in licensed mode.

@iondulgheru
Copy link

This new way of remote admin is not working on nodes where licensed ham radio is enabled. Only the older way with admin channel still works on nodes for licensed radio operators. I tested multiple times, last time on 2.5.15. So removing the legacy functionality will make remote nodes used by licensed ham operators unavailable for remote

an admin channel that is not encrypted is not a supported option, the legacy admin channel is not expected to work in licensed mode.

Yet, it works. Tested on both remote node and active node on 2.5.15.
And the new remote admin method does not work.

@garthvh
Copy link
Member

garthvh commented Jan 10, 2025

This new way of remote admin is not working on nodes where licensed ham radio is enabled. Only the older way with admin channel still works on nodes for licensed radio operators. I tested multiple times, last time on 2.5.15. So removing the legacy functionality will make remote nodes used by licensed ham operators unavailable for remote

an admin channel that is not encrypted is not a supported option, the legacy admin channel is not expected to work in licensed mode.

Yet, it works. Tested on both remote node and active node on 2.5.15. And the new remote admin method does not work.

It works because if you manually configure it the firmware code does not remove the admin channels like the ham parameters message does, it is not expected functionality that is going to be retained.

@iondulgheru
Copy link

So how can I change the configuration on remote nodes after the the admin channels are removed?
The new remote administration method does not work if "Licensed amateur radio" is enabled.

@ianmcorvidae
Copy link
Contributor

There isn't a way to safely and legally change configurations on remote nodes along with the licensed amateur radio setting. Either you do it by getting close enough to connect with BLE/TCP/Serial, you encrypt it (breaking license rules), or you add an unencrypted admin channel that anyone could trivially use to change your nodes' configurations (though I haven't checked, we may not allow an unencrypted admin channel either).

The best workaround I can think of without spending too much time thinking about it would be to create some sort of a side-channel that uses the unlicensed side of things and talks to the licensed-mode node over serial to change configuration. But that would probably mean 2 additional MCUs as well.

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

No branches or pull requests

4 participants