Skip to content

lbrlabs/tailscale-authkey-lambda-rotator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tailscale-authkey-lambda-rotator

An AWS lambda function to rotate Tailscale auth keys store in a secret store

Why?

Tailscale Auth Keys have an expiry date, after which they can't be used to add new clients to the tailnet.

The best practice with Tailscale is to create an OAuth Client and use those to authenticate devices. You can use OAuth clients to directly authenticate devices, but then you have static credentials which can be used forever if they're exfiltrated.

The solution is to create an OAuth client, then create an auth key that expires to authorize new devices. If you follow that path, you can use this lambda to periodically rotate your auth keys.

About

An AWS lambda function to rotate Tailscale auth keys store in a secret store

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages