Tuesday, April 26, 2022

[google-cloud-sql-discuss] DNS in CloudSQL wth private IP

How do we set DNS in CloudSQL wiith private IP only. I am using the server cert from the CloudSQL instance but get the following error when using the private IP in nodejs code.

"code":"ERR_T │
│ LS_CERT_ALTNAME_INVALID","message":"Hostname/IP does not match certificate's altnames: Host: localhost. is not cert's CN: <CloudSQL_Instance_NAME>"

 Understand the the private ip can be assigned a domain name but I have the following concern
  1. I don't own any domain, how do we use Cloud DNS to get a google domain subdomain or equivalent?
  2. PrivateIP will change when Instance edited i.e. when Network is changed, then Cloud DNS would point to wrong IP.
  3. As per the above error message its not clear which domain the certificate is minted for it just shows the fully qualified cloud SQL instance name.
I understand cloud SQL proxy is solution to everything related to ths but isn't really there any other option?

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/3b34b9a7-f679-44a3-bcdf-b82b7878c7f8n%40googlegroups.com.

No comments:

Post a Comment