From ee49f714b9324f20e74084ba1bf071df3af1f44f Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Wed, 29 Jan 2025 03:41:24 +0800 Subject: [PATCH] misc: added valid example to error thrown for sa mismatch --- backend/src/services/app-connection/gcp/gcp-connection-fns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/app-connection/gcp/gcp-connection-fns.ts b/backend/src/services/app-connection/gcp/gcp-connection-fns.ts index 997021076..3c4abb6d9 100644 --- a/backend/src/services/app-connection/gcp/gcp-connection-fns.ts +++ b/backend/src/services/app-connection/gcp/gcp-connection-fns.ts @@ -153,7 +153,7 @@ export const validateGcpConnectionCredentials = async (appConnection: TGcpConnec const serviceAccountId = appConnection.credentials.serviceAccountEmail.split("@")[0]; if (!serviceAccountId.endsWith(expectedAccountIdSuffix)) { throw new BadRequestError({ - message: `GCP service account ID (the part of the email before '@') must have a suffix of "${expectedAccountIdSuffix}"` + message: `GCP service account ID must have a suffix of "${expectedAccountIdSuffix}" e.g. service-account-${expectedAccountIdSuffix}@my-project.iam.gserviceaccount.com"` }); } }