Skip to content

fix: support external_account workload identity, add tests#2120

Merged
DrPsychick merged 2 commits into
gomods:mainfrom
DrPsychick:fix-gcp-workload-identity
May 12, 2026
Merged

fix: support external_account workload identity, add tests#2120
DrPsychick merged 2 commits into
gomods:mainfrom
DrPsychick:fix-gcp-workload-identity

Conversation

@DrPsychick
Copy link
Copy Markdown
Member

@DrPsychick DrPsychick commented May 12, 2026

What is the problem I am trying to address?

Resolve #2119

How is the fix applied?

Support all credential types, cover service_account and external_account with tests.

What GitHub issue(s) does this PR fix or close?

Fixes #2119

@DrPsychick DrPsychick requested a review from a team as a code owner May 12, 2026 17:49
Comment thread pkg/storage/gcp/gcp.go Outdated
}
var credType google.CredentialsType
switch keyType.Type {
case "service_account":
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we use the actual type from the package here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good point. I gave it another shot, now supporting all types that would work.

Copy link
Copy Markdown
Contributor

@matt0x6F matt0x6F left a comment

Choose a reason for hiding this comment

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

Gave a nit-pick, otherwise looks good

@DrPsychick DrPsychick merged commit 5a7e150 into gomods:main May 12, 2026
14 checks passed
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.

athens@0.17.0 breaks support of workload identity for GCP

2 participants