ci: Tailscale Github Action integration test - #3351
Draft
kradalby wants to merge 4 commits into
Draft
Conversation
kradalby
force-pushed
the
v2-oauth-tskey-compat
branch
2 times, most recently
from
June 27, 2026 07:41
b03cf4f to
078afd5
Compare
The upstream tailscale client only runs its OAuth client-credentials exchange for secrets prefixed tskey-client-, so accept it as an alias for hskey-client-. The prefix is only a label sliced off before lookup, so the same stored client authenticates under either; lets the official client and GitHub Action mint auth keys against headscale.
Registration rejected any --advertise-tags on a pre-auth-key node. The official tailscale client's OAuth authkey flow always re-advertises the key's own tags, so tolerate RequestTags that are a subset of the key's tags and reject only tags the key does not carry.
Stand up a nix-built headscale over self-signed TLS with embedded DERP and a regular node joined via pre-auth, then drive the official tailscale/github-action against it: connect over OAuth (tskey-client-) and an auth key with ping as the success gate, and exercise its hostname, version, tailscaled-args, statedir and args inputs.
…ction The upstream client only runs the OAuth exchange for tskey-client- secrets and reads the control URL from a baseURL attribute, not --login-server. Document the prefix swap, baseURL, and authkey-not-oauth-secret for the GitHub Action.
kradalby
force-pushed
the
v2-oauth-tskey-compat
branch
from
June 27, 2026 10:14
d69c82b to
935483a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR sets up integration tests for Tailscale's Github action. It spins up a headscale at the beginning of the job, and then uses the action to connect to it, validating connectivity.