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

mg_rpc_check_nonce smaller time drift tolerance #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markterrill
Copy link

I'd suggest that providing an hour in the past is too long. Even with global traversing MQTT and processing delays it should handle a response well within 2 minutes.
NTP docs suggest a device without NTP sync will drift about 8 seconds a day. 2 minutes provides a full week without sync.

I've provided a method that doesn't presume this device is accurate, the client who offered an initial nonce before the challenge may actually have the correct time.

I'd suggest that providing an hour in the past is too long. Even with global traversing MQTT and processing delays it should handle a response well within 2 minutes.
NTP docs suggest a device without NTP sync will drift about 8 seconds a day. 2 minutes provides a full week without sync.

I've provided a method that doesn't presume this device is accurate, the client who offered an initial nonce before the challenge may actually have the correct time.
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.

1 participant