Skip to content

Commit 9ea5bd6

Browse files
committed
chore(credentials): move the IAM refusal TSDoc back onto iamFailureMessage
1 parent 3caa269 commit 9ea5bd6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/sim/lib/credentials/google-workload-identity.server.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,6 @@ async function exchangeSubjectToken(
380380
return payload.access_token
381381
}
382382

383-
/**
384-
* Copy for an IAM Credentials refusal. Signing needs a role the impersonation
385-
* role lacks, so a refused signature always names the token-creator role.
386-
*/
387383
/**
388384
* Whether Google refused the call under a VPC Service Controls perimeter: the
389385
* error names a `vpcServiceControlsUniqueIdentifier` or a `VPC_SERVICE_CONTROLS`
@@ -394,6 +390,10 @@ function isVpcServiceControlsDenial(payload: Record<string, unknown>): boolean {
394390
return /vpcServiceControlsUniqueIdentifier|VPC_SERVICE_CONTROLS/.test(JSON.stringify(payload))
395391
}
396392

393+
/**
394+
* Copy for an IAM Credentials refusal. Signing needs a role the impersonation
395+
* role lacks, so a refused signature always names the token-creator role.
396+
*/
397397
function iamFailureMessage(
398398
status: number,
399399
payload: Record<string, unknown>,

0 commit comments

Comments
 (0)