Merge pull request #3058 from Infisical/misc/improved-helper-text-for-gcp-sa-field

misc: improved helper text for GCP sa field
This commit is contained in:
Maidul Islam
2025-01-29 09:54:20 -05:00
committed by GitHub
5 changed files with 53 additions and 32 deletions
@@ -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"`
});
}
}