Skip to content

Commit

Permalink
feat: Customer Certificate Authority support
Browse files Browse the repository at this point in the history
  • Loading branch information
hessjcg committed Dec 17, 2024
1 parent deab18c commit 5606daa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cloudsql/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ func (c ConnectionInfo) TLSConfig() *tls.Config {
for _, caCert := range c.ServerCACert {
pool.AddCert(caCert)
}
if c.ServerCAMode == "GOOGLE_MANAGED_CAS_CA" {
if c.ServerCAMode == "GOOGLE_MANAGED_CAS_CA" ||
c.ServerCAMode == "CUSTOMER_MANAGED_CAS_CA" {
// For CAS instances, we can rely on the DNS name to verify the server identity.
return &tls.Config{
ServerName: c.DNSName,
Expand Down

0 comments on commit 5606daa

Please sign in to comment.