Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCLOUD: split horizon domains within the same GCP project #2483

Open
asn-iac opened this issue Jul 18, 2023 · 5 comments
Open

GCLOUD: split horizon domains within the same GCP project #2483

asn-iac opened this issue Jul 18, 2023 · 5 comments

Comments

@asn-iac
Copy link
Contributor

asn-iac commented Jul 18, 2023

Is your feature request related to a problem? Please describe.
Google Cloud DNS API supports "Private" dns zones, and can have multiple dns zones with the same dns name in the same project, enabling split horizon dns (https://cloud.google.com/dns/docs/zones/zones-overview#split-horizon). #2482 adds support for private dns zones, however the dnscontrol GCLOUD provider still cannot support split horizon dns within the same GCP project.

Describe the solution you'd like
Support split horizon domains within the same GCP project

Describe alternatives you've considered
Private and Public zones can be defined in different GCP projects to enable split horizon dns.

Additional context
In order to fully support split horizon domains within the same GCP project, need to parse the zone Visibility field from *ManagedZone in *gcloudProvider.loadZoneInfo(), but currently gcloudProvider.zones is map[string]*gdns.ManagedZone where the map keys are the zone dns names. A given GCP project can have multiple zones of the same dns name.

@tlimoncelli
Copy link
Contributor

CC @riyadhalnur (maintainer of the Google DNS provider)

@tlimoncelli
Copy link
Contributor

This should be fixed as of #2481. If not, please re-open this issue. Thanks!

@riyadhalnur
Copy link
Contributor

Hey @tlimoncelli, I asked @asn-iac to open this as an actionable ticket for the TODO from the original support in #2481. We can re-open in case someone's interested in picking this up

@asn-iac
Copy link
Contributor Author

asn-iac commented Jan 3, 2024

for additional context, #2481 only added support for private domains. the provider would still need to be refactored to support split-horizon domains in the same gcloud project as it currently relies on the zone dns name.

// TODO(asn-iac): In order to fully support split horizon domains within the same GCP project,
// need to parse the zone Visibility field from *ManagedZone, but currently
// gcloudProvider.zones is map[string]*gdns.ManagedZone
// where the map keys are the zone dns names. A given GCP project can have
// multiple zones of the same dns name.

we haven't had a direct need for this yet but if we decide to spend cycles on it I'll pick this up and re-open.

@tlimoncelli tlimoncelli reopened this Jan 3, 2024
@tlimoncelli
Copy link
Contributor

Sounds good! I've re-opened the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants