Skip to content

feat: Support Workload Identity (ADC) for Google Pub/Sub authentication - #2204

Merged
lbroudoux merged 1 commit into
microcks:masterfrom
potatopri:feat/pubsub-workload-identity
Jul 2, 2026
Merged

lbroudoux merged 1 commit into
microcks:masterfrom
potatopri:feat/pubsub-workload-identity

Conversation

@potatopri

Copy link
Copy Markdown
Contributor

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.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

👋 @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!

@potatopri
potatopri force-pushed the feat/pubsub-workload-identity branch from 5289aaa to b608902 Compare July 2, 2026 12:28

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks a lot!

@lbroudoux
lbroudoux merged commit 5632376 into microcks:master Jul 2, 2026
12 checks passed
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🎉 @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 🙌

lbroudoux pushed a commit that referenced this pull request Aug 5, 2026
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.

Support Workload Identity for Google Pub/Sub Authentication

2 participants