Repository navigation
feat: Support Workload Identity (ADC) for Google Pub/Sub authentication - #2204
Conversation
|
👋 @priyamkarn Welcome to the Microcks community! 💖 Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly. Hope you have a great time there! |
Signed-off-by: priyamkarn <[email protected]>
5289aaa to
b608902
Compare
|
🎉 @priyamkarn You are now a Microcks community contributor! 💖 Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏 📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌" Kudos and please keep going, we need you 🙌 |
Closes #2120
Adds support for GKE Workload Identity / Application Default Credentials
(ADC) as an authentication option for Google Pub/Sub, in both the async
minion's producer (mocking) and consumer (test) paths.
Previously, if no service-account JSON key was configured, the code
fell back straight to NoCredentialsProvider, which only works against
the local emulator and fails against real GCP Pub/Sub.
Now it first attempts GoogleCredentials.getApplicationDefault(), which
transparently picks up Workload Identity credentials on GKE (or any
other ADC source), and only falls back to NoCredentialsProvider if
that also fails — preserving existing behavior for local/dev setups.
This is non-breaking: existing JSON-key-based configuration is
unaffected and still takes priority when present.