Files
teleport/lib/auth
Dan UptonandZac Bergquist 7b3a563c93 Allow machineid.AutoUpdateVersionReporter to shut down correctly (#60219)
* Allow `machineid.AutoUpdateVersionReporter` to shut down correctly

Fixes an issue where, because we were starting the leader election routine
inside `auth.NewServer`, nothing was waiting for it to shut down correctly,
and we were failing to release the semaphore.

There wasn't a huge user-facing impact (as the semaphore lease would eventually
expire) but it leads to a confusing error message in the logs and delays things
unnecessarily.

* Use `Clock.Since` instead of manually subtracting time

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2025-10-14 15:35:16 +00:00
..
2025-10-01 20:30:50 +00:00
2025-10-01 20:30:50 +00:00
2025-08-14 00:39:54 +00:00
2025-10-01 20:30:50 +00:00
2025-01-06 21:31:53 +00:00
2025-01-06 21:31:53 +00:00
2025-05-14 21:18:21 +00:00
2025-01-06 21:31:53 +00:00