FiloSottile / FiloSottile/mostly-harmless

Tailscale Ephemeral Nodes (stateless)

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
318
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Hi there! This project is really awesome, and has been inspirational to me for something similar that I’m working on.

I noticed that the biggest reason you’re relying on the USB for state is for Tailscale/`tailscaled`’s state. As it turns out, Tailscale has a stateless mode, achieved by using [ephemeral nodes](https://tailscale.com/kb/1111/ephemeral-nodes).

Essentially what you’d want to do is create an auth key (API token) that spawns ephemeral nodes, and supply the key when starting Tailscale. The caveat is that since the node is ephemeral you _must_ address it by hostname, as the IP addresses will not be persistent.

You could bake the auth key into your image, or you could store the auth key on another server that your NAS requests it from. Personally, I intend to set up a 1Password Connect server on my LAN and Tailnet, to store and supply secrets, but there are other, more self-hosted secrets managers.

If you trust your hardware RNG, it sounds like this might be what you need to run `frood` completely statelessly.

Good luck, and thanks for all the fish!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.