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

Only accept PKI messages for MQTT downlink for known nodes #4498

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Aug 18, 2024

We're potentially receiving a lot of DMs on an MQTT root topic if we have downlink enabled on a (private) channel, but not all are of interest. Let's only accept PKI messages when we know the transmitter and receiver, as then it's (more) likely they would normally have communicated via a channel we have downlink enabled.

@GUVWAF GUVWAF requested a review from jp-bennett August 18, 2024 13:13
@thebentern
Copy link
Contributor

Seems like a good idea. Most of these would get zero-hopped on the default broker anyway, so we'd only be dealing with private channels or a private broker instance.

@GUVWAF
Copy link
Member Author

GUVWAF commented Aug 18, 2024

Most of these would get zero-hopped on the default broker anyway

True, but still it lowers the processing effort of the node :)

@jp-bennett
Copy link
Collaborator

My only hesitation here is the case where one or both nodes have rolled out of the nodeDB, on a busy mesh.

@thebentern thebentern merged commit a85df19 into meshtastic:2.5-changes Aug 18, 2024
3 checks passed
@GUVWAF GUVWAF deleted the PKI_MQTT_Known_Only branch September 28, 2024 17:28
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.

3 participants