Skip to content

feat: Add support for universe_domain parameter (#242)#243

Draft
matgou wants to merge 3 commits into
hashicorp:mainfrom
matgou:matgou/feat/add-support-of-custom-universe-domain
Draft

feat: Add support for universe_domain parameter (#242)#243
matgou wants to merge 3 commits into
hashicorp:mainfrom
matgou:matgou/feat/add-support-of-custom-universe-domain

Conversation

@matgou

@matgou matgou commented Feb 27, 2025

Copy link
Copy Markdown

Overview

This commit introduces a new universe_domain parameter to the plugin configuration, allowing users to specify the Google Cloud environment for client connections. This enables support for specialized offerings and sovereign controls beyond the default googleapis.com.

Design of Change

  • Added universe_domain field to the plugin configuration.
  • Modified IAM client creation to use the configured universe_domain.
  • Updated credentials parsing to utilize cloud.google.com/go/auth/credentials.DetectDefault and support local-signing JWT generation.
  • Adjusted token generation to use cloud.google.com/go/auth/credentials.DetectDefault for credential handling.

Related Issues/Pull Requests

[ ] Issue #242 Feature Request: Support universe_domain for Sovereign Google Cloud Environments

Contributor Checklist

[ ] Add relevant docs to upstream Vault repository, or sufficient reasoning why docs won’t be added yet
My Docs PR Link
Example
[ ] Add output for any tests not ran in CI to the PR description (eg, acceptance tests)
[ ] Backwards compatible

This commit introduces a new `universe_domain` parameter to the plugin configuration, allowing users to specify the Google Cloud environment for client connections. This enables support for specialized offerings and sovereign controls beyond the default googleapis.com.

Key changes:

- Added `universe_domain` field to the plugin configuration.
- Modified IAM client creation to use the configured `universe_domain`.
- Updated credentials parsing to utilize `cloud.google.com/go/auth/credentials.DetectDefault` and support local-signing JWT generation.
- Adjusted token generation to use `cloud.google.com/go/auth/credentials.DetectDefault` for credential handling.
@hashicorp-cla-app

hashicorp-cla-app Bot commented Feb 27, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

1 participant