mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 13:27:46 +00:00
misc: added valid example to error thrown for sa mismatch
This commit is contained in:
@@ -153,7 +153,7 @@ export const validateGcpConnectionCredentials = async (appConnection: TGcpConnec
|
|||||||
const serviceAccountId = appConnection.credentials.serviceAccountEmail.split("@")[0];
|
const serviceAccountId = appConnection.credentials.serviceAccountEmail.split("@")[0];
|
||||||
if (!serviceAccountId.endsWith(expectedAccountIdSuffix)) {
|
if (!serviceAccountId.endsWith(expectedAccountIdSuffix)) {
|
||||||
throw new BadRequestError({
|
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"`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user