From 9fe50b0c3b48f88666a47a74637a8d29eb0a4422 Mon Sep 17 00:00:00 2001 From: Herman Slatman Date: Tue, 23 Dec 2025 11:24:47 +0100 Subject: [PATCH] Use `option.WithAuthCredentialsFile` for Google API auth --- cas/cloudcas/cloudcas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas/cloudcas/cloudcas.go b/cas/cloudcas/cloudcas.go index 398f7fed..e1d7ef19 100644 --- a/cas/cloudcas/cloudcas.go +++ b/cas/cloudcas/cloudcas.go @@ -90,7 +90,7 @@ type CloudCAS struct { var newCertificateAuthorityClient = func(ctx context.Context, credentialsFile string) (CertificateAuthorityClient, error) { var cloudOpts []option.ClientOption if credentialsFile != "" { - cloudOpts = append(cloudOpts, option.WithCredentialsFile(credentialsFile)) + cloudOpts = append(cloudOpts, option.WithAuthCredentialsFile(option.ServiceAccount, credentialsFile)) } client, err := privateca.NewCertificateAuthorityClient(ctx, cloudOpts...) if err != nil {