Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically create single-use auth keys #212

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lucacome
Copy link
Contributor

@lucacome lucacome commented Mar 6, 2025

This pull request removes the need to specify an auth key. The create command will generate a single-use auth key for the exit node.

I think this is more robust and safe than automatically creating an auth key and storing it in the config file, but let me know.

Closes #37

Configuration and Command Updates:

  • Removed the AuthKey field from the TailscaleConfig struct in tailout/config/config.go.
  • Removed the tailscale-auth-key flag from the buildCreateCommand function in cmd/create.go.

Core Logic Changes:

  • Updated the Create method in tailout/create.go to remove the dependency on AuthKey and instead dynamically create a Tailscale API key with specific capabilities.
  • Modified the Tailscale up command to use the newly created API key instead of the removed AuthKey.

Documentation:

  • Updated the README.md to reflect the removal of AuthKey and the new method for setting up the Tailscale API key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The init command should create the auth key for tailout exit nodes
1 participant