Google Cloud DNS credentials

A Google Cloud DNS credential lets Cloudera Cloud Factory manage records in a public Cloud DNS managed zone by using a service account key.

A Google Cloud DNS credential lets Cloudera Cloud Factory create and delete DNS records, and answer Let's Encrypt DNS-01 challenges, in a public Cloud DNS managed zone. Cloudera Cloud Factory uses the credential to run external-dns and cert-manager on project clusters.

Supported options

Table 1. Google Cloud DNS support
OptionStatusNotes
Static credentials (service account key JSON) with the DNS Administrator role on the projectSupportedThe credential check, record creation, and record deletion work.
Role granted on the zone onlyNot supportedSaving the credential fails with HTTP 403 and the message Credentials are valid but lack required DNS permissions. Grant roles/dns.admin on the project.
Let's Encrypt DNS-01 (Cloud DNS challenge)SupportedSingle-name and wildcard certificates work. Requires a public zone.
Workload identity (GKE Workload Identity in the form)Not supported yetThe option needs the GKE metadata server, and clusters that Cloudera Cloud Factory builds on Google Cloud run on virtual machines. Use static credentials.
Private Cloud DNS zones, including a private zone with the same name as the public zoneNot supportedLet's Encrypt cannot validate against a private zone. A private zone with the same name in the project splits the records between the zones and breaks record deletion.

Before you start

  • A public Cloud DNS managed zone that is delegated from its parent domain. To check the delegation, run dig NS zone @1.1.1.1. The command must return the ns-cloud-*.googledomains.com name servers.
  • The Cloud DNS API (dns.googleapis.com) enabled in the Google Cloud project that holds the zone.
  • Service account keys allowed in that project. Many organizations block key creation with the iam.disableServiceAccountKeyCreation policy. Without keys, you cannot use static credentials.
  • No CAA record on the zone, or a CAA record that allows letsencrypt.org, if you plan to use Let's Encrypt.
  • Permission to create a service account and a key, and to grant IAM roles on the project, for example the Owner role, or the Project IAM Admin and Service Account Admin roles together.

Workload identity

Workload identity is not supported yet. Use static credentials. The form offers GKE Workload Identity for Google Cloud DNS, but Cloudera Cloud Factory only checks the format of the project and the service account email address, and does not connect to Google Cloud. Cloudera Cloud Factory sets the iam.gke.io/gcp-service-account annotation, which works only on GKE with the GKE metadata server. Clusters that Cloudera Cloud Factory builds on Google Cloud run on virtual machines without it.

To continue, see Setting up Google Cloud for DNS credentials and Adding a Google Cloud DNS credential.