zimfarm
zimfarm copied to clipboard
During ssh authentication of worker, display clear warning when the time seems not synchronized
When we are authenticating a worker with POST /auth/ssh_authorize
, it is mandatory that the clocks of both systems are synchronized.
If there is a lag, the authentication fails.
Since we are receiving the current datetime, we could log a clear warning in such a situation since it would help, is not coming, and would be very valuable while on-boarding new workers.