Tailscaleにサーバを接続する
Tailscaleにサーバを接続する
通常の手順でTailscaleをセットアップすると、証明書に有効期限が存在する
つまり、証明書が切れる前に手動で更新する必要がある
解決策:ACL tagに紐付く形でデバイスを認証する
前準備
ACL tagを定義する
https://login.tailscale.com/admin/acls
code:json
{
// Some other configs
"tagOwners": {
"tag:server": "foo@example.com",
},
}
認証する
ACL tagに紐付いたAuth keyを発行する
https://login.tailscale.com/admin/settings/keys
Authkeyを使ってtailscale upする
code:sh
sudo tailscale up --authkey tskey-auth-xxxxxx
https://tailscale.com/blog/tagged-key-expiry/
https://tailscale.com/kb/1085/auth-keys/
public