Skip to content

feat(gcpkms): add SOPS_GCP_KMS_ENDPOINT and SOPS_GCP_KMS_UNIVERSE_DOMAIN env vars#2114

Open
DnR-iData wants to merge 4 commits intogetsops:mainfrom
Tiime-Software:feat/gcpkms-sovereign-cloud-endpoint
Open

feat(gcpkms): add SOPS_GCP_KMS_ENDPOINT and SOPS_GCP_KMS_UNIVERSE_DOMAIN env vars#2114
DnR-iData wants to merge 4 commits intogetsops:mainfrom
Tiime-Software:feat/gcpkms-sovereign-cloud-endpoint

Conversation

@DnR-iData
Copy link
Copy Markdown

Allow overriding the GCP KMS endpoint and universe domain via environment
variables, using two new env vars:

  • SOPS_GCP_KMS_ENDPOINT: overrides the KMS endpoint URL directly
  • SOPS_GCP_KMS_UNIVERSE_DOMAIN: derives the endpoint as
    cloudkms.<domain>:443

This enables use of sovereign cloud environments that expose a
GCP-compatible KMS API at a non-standard endpoint (e.g. S3NS/Thales TPC
with cloudkms.s3nsapis.fr).

Both the gRPC and REST client paths are supported. Documentation updated
in README.rst.

…AIN env vars

Allow overriding the GCP KMS endpoint and universe domain via environment
variables. This enables use of sovereign cloud environments that expose a
GCP-compatible KMS API at a non-standard endpoint (e.g. S3NS/Thales TPC
with cloudkms.s3nsapis.fr).

Signed-off-by: David RIBEIRO <dr@devops.works>
@DnR-iData DnR-iData force-pushed the feat/gcpkms-sovereign-cloud-endpoint branch from bb5e250 to fc89e01 Compare March 20, 2026 09:50
@felixfontein felixfontein requested a review from a team March 23, 2026 22:02
Copy link
Copy Markdown
Contributor

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

- Use else if to make SOPS_GCP_KMS_ENDPOINT precedence over
  SOPS_GCP_KMS_UNIVERSE_DOMAIN explicit in code
- Use RST note directive in README.rst
- Verify env var options are applied by asserting on
  client.Connection().Target() in tests

Signed-off-by: David RIBEIRO <dr@devops.works>
@DnR-iData DnR-iData requested a review from felixfontein March 31, 2026 08:24
Copy link
Copy Markdown
Contributor

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me!

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.

2 participants