Skip to content

Add support for Workload Identity Federation#12

Merged
awly merged 1 commit intomainfrom
awly/hallpass-wif
Feb 11, 2026
Merged

Add support for Workload Identity Federation#12
awly merged 1 commit intomainfrom
awly/hallpass-wif

Conversation

@awly
Copy link
Member

@awly awly commented Feb 11, 2026

As an alternative to reading a static OAuth secret from setec, allow using workload identity to authenticate to the API and set node attributes. If --wif-client-id and --wif-audience are set and --oauth-secret is empty, get the identity token from environment and use it for token exchange with the provided audience.

Updates https://github.com/tailscale/corp/issues/36612

As an alternative to reading a static OAuth secret from setec, allow
using workload identity to authenticate to the API and set node
attributes. If `--wif-client-id` and `--wif-audience` are set and
`--oauth-secret` is empty, get the identity token from environment and
use it for token exchange with the provided audience.

Updates tailscale/corp#36612
@awly awly requested review from mpminardi and patrickod February 11, 2026 00:38
Auth: &tailscale.IdentityFederation{
ClientID: s.wifClientID,
IDTokenFunc: func() (string, error) {
return wif.ObtainProviderToken(context.Background(), s.wifAudience)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the intent here is to always use the AWS metadata service for generating the JWT?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our setup, yes. But more broadly this tool is OSS so any cloud provider JWT that's supported should be usable.

Copy link
Member

@mpminardi mpminardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on the "integrating workload identity" piece but with the caveat that I don't have a ton of context on the project 🙏

@awly awly merged commit a926cc4 into main Feb 11, 2026
1 check passed
@awly awly deleted the awly/hallpass-wif branch February 11, 2026 17:09
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.

2 participants

Comments