caius / spacelift-tailscale

Docker image for Spacelift containing Tailscale
Apache License 2.0
3 stars 2 forks source link

Support Tailscale OAuth Client authentication #17

Open caius opened 4 months ago

caius commented 4 months ago

Tailscale Auth Keys expire every 90 days (maximum) which makes it annoying to keep updating the Spacelift context with a new auth key every 3 months. The workaround/solution to this from Tailscale is to implement an OAuth client that can generate a tailscale auth key "just in time" whenever one is needed.

The easy way is probably to use tailscale's get-authkey utility to take in OAuth Token/secret and generate an auth key for spacetail to then consume.

caius commented 4 months ago

Ideally we compile get-authkey at image build time however, not at runtime.