Skip to content

fix: issue-5388: Fixes GCP Workload Identity Federation auth issue#5392

Merged
Skarlso merged 2 commits intoexternal-secrets:mainfrom
bharath-b-rh:issue-5388
Oct 2, 2025
Merged

fix: issue-5388: Fixes GCP Workload Identity Federation auth issue#5392
Skarlso merged 2 commits intoexternal-secrets:mainfrom
bharath-b-rh:issue-5388

Conversation

@bharath-b-rh
Copy link
Copy Markdown
Contributor

Problem Statement

GCP Workload Identity Federation authentication fails when serviceAccountRef is specified.

Related Issue

Fixes #5388

Proposed Changes

The issue is caused due to the incorrect initialization of the WIF audience.

Checklist

  • I have read the contribution guidelines
  • All commits are signed with git commit --signoff
  • My changes have reasonable test coverage
  • All tests pass with make test
  • I ensured my PR is ready for review with make reviewable

Signed-off-by: Bharath B <bhb@redhat.com>
}
config.SubjectTokenSupplier = &k8sSATokenReader{
audience: config.Audience,
audience: w.config.Audience,
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.

Nice catch. I assume there were no tests for this? :D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the manual e2e tests would have caught, not sure when this typo happened :)

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Oct 2, 2025

@Skarlso Skarlso moved this to In Review in External Secrets Oct 2, 2025
@Skarlso Skarlso merged commit d21a82e into external-secrets:main Oct 2, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in External Secrets Oct 2, 2025
@bharath-b-rh bharath-b-rh deleted the issue-5388 branch October 6, 2025 04:06
SamuelMolling pushed a commit to SamuelMolling/external-secrets that referenced this pull request Oct 24, 2025
…al-secrets#5392)

Signed-off-by: Bharath B <bhb@redhat.com>
Co-authored-by: Gergely Brautigam <skarlso777@gmail.com>
Signed-off-by: Samuel Molling <samuelmolling@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug. size/xs

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

GCP Workload Identity Federation - invalid token request when using a Service Account

2 participants