Skip to content

[DRAFT] feat(dns): support custom universe domains in Client and Connection - #19232

Draft
daniel-sanche wants to merge 2 commits into
python_bug_burndown_track_five_google-cloud-core_01_universe-domainfrom
python_bug_burndown_track_five_google-cloud-dns_02_universe-domain
Draft

daniel-sanche wants to merge 2 commits into
python_bug_burndown_track_five_google-cloud-core_01_universe-domainfrom
python_bug_burndown_track_five_google-cloud-dns_02_universe-domain

Conversation

@daniel-sanche

@daniel-sanche daniel-sanche commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Adds custom universe domain support to google-cloud-dns using the shared Client and JSONConnection helpers in google-cloud-core:

  • Resolves universe_domain from client_options or GOOGLE_CLOUD_UNIVERSE_DOMAIN and validates credential universe compatibility on dns.Client initialization.
  • Templates default Cloud DNS endpoints as https://dns.{universe_domain} while preserving explicit api_endpoint overrides.
  • Bumps the google-cloud-core dependency floor to >= 2.9.0.
    • This allows us to make use of new universe protections in google-cloud-core
    • diamond-dependencies are less of an issue for this library, because it is pure-python, and has a smaller dependency/user footprint than other core deps

Blocked on release of google-cloud-core v2.9.0

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request introduces support for universe domains in the Google Cloud DNS client library. Key changes include updating the connection and client initialization to handle custom universe domains, validating credentials against the universe domain, and upgrading the google-cloud-core dependency to version 2.9.0 or higher. Additionally, comprehensive unit tests have been added to verify universe domain routing, validation, and error handling. I have no further feedback to provide as there are no review comments.

@daniel-sanche daniel-sanche changed the title f[DRAFT] eat(dns): support custom universe domains in Client and Connection [DRAFT] feat(dns): support custom universe domains in Client and Connection Nov 26, 2026
@chalmerlowe

Copy link
Copy Markdown
Contributor

@daniel-sanche

SYNC WARNING:

See this comment in #19231 regarding some possible areas to sync up.

@daniel-sanche
daniel-sanche force-pushed the python_bug_burndown_track_five_google-cloud-dns_02_universe-domain branch from a04f559 to 046ffc7 Compare November 30, 2026 19:15
@daniel-sanche
daniel-sanche force-pushed the python_bug_burndown_track_five_google-cloud-dns_02_universe-domain branch from 4a6239a to 49ba05b Compare November 30, 2026 20:39

This branch has not been deployed

No deployments
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