claha / smart-home

Infrastructure as Code. I have spoken. This is the way.
MIT License
1 stars 0 forks source link

Monitor tailscale key expiry #185

Open claha opened 7 months ago

claha commented 7 months ago

https://github.com/tailscale/tailscale/blob/main/api.md

claha commented 7 months ago

Need to parse a date string which doesn't seem possible (right now) in gatus

claha commented 7 months ago

Seems home-assistant has a tailscale integration, so perhaps easier to do it there. Could also generate a dashboard and remove them from the homepage dashboard. Will need to add support for keyExpiryDisabled (or what it is named) to home-assistant, supports seems to exist in the python library used so should be fairly easy.

claha commented 4 months ago

Since I am using gatus to ping all my tailscale machinesI will get a notification if one can't be reach. My workflow is usually that I then try to ssh to it and if that fails I will probably go to the tailscale admin panel and I will see that the key has expired.

It would nice with a notification from homeassistant a day or so before but it is not crucial. Keeping it open for now but prio is low.

claha commented 1 month ago

One step closer :) https://github.com/home-assistant/core/pull/117667