get-authkey example #444

Closed
opened 2025-12-29 01:29:27 +01:00 by adam · 2 comments
Owner

Originally created by @almereyda on GitHub (Mar 13, 2023).

Feature request

In https://github.com/tailscale/tailscale/blob/main/cmd/get-authkey/main.go Tailscale publish a small tool that allows to automatically create authentication tokens for OIDC authenticated clients. This can be useful for generating tokens en masse, e.g. for prefilling sidecar containers where #1202 is not available.

The binary provides a TS_BASE_URL to the Tailscale API.
This flag is not present in Tailscale itself.

Given a Headscale endpoint that mimics the TS_BASE_URL at https://api.tailscale.com, get-auth could be used to preallocate credentials.

Originally created by @almereyda on GitHub (Mar 13, 2023). **Feature request** In https://github.com/tailscale/tailscale/blob/main/cmd/get-authkey/main.go Tailscale publish a small tool that allows to automatically create authentication tokens for OIDC authenticated clients. This can be useful for generating tokens en masse, e.g. for prefilling sidecar containers where #1202 is not available. The binary provides a `TS_BASE_URL` to the Tailscale API. This flag is [not present in Tailscale itself](https://github.com/search?q=repo%3Atailscale%2Ftailscale%20TS_BASE_URL&type=code). Given a Headscale endpoint that mimics the `TS_BASE_URL` at `https://api.tailscale.com`, `get-auth` could be used to preallocate credentials.
adam added the enhancementstale labels 2025-12-29 01:29:27 +01:00
adam closed this issue 2025-12-29 01:29:27 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 26, 2023):

This issue is stale because it has been open for 180 days with no activity.

@github-actions[bot] commented on GitHub (Sep 26, 2023): This issue is stale because it has been open for 180 days with no activity.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 11, 2023):

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions[bot] commented on GitHub (Oct 11, 2023): This issue was closed because it has been inactive for 14 days since being marked as stale.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#444