mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 19:28:16 +00:00
Update identity-aws-auth-service.ts
This commit is contained in:
@@ -162,7 +162,9 @@ export const identityAwsAuthServiceFactory = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!isArnAllowed) {
|
if (!isArnAllowed) {
|
||||||
logger.info({ formattedArn, rawArn: Arn }, "Access denied: AWS principal ARN not allowed");
|
logger.error(
|
||||||
|
`AWS Auth Login: AWS principal ARN not allowed [principal-arn=${formattedArn}] [raw-arn=${Arn}] [identity-id=${identity.id}]`
|
||||||
|
);
|
||||||
|
|
||||||
throw new UnauthorizedError({
|
throw new UnauthorizedError({
|
||||||
message: `Access denied: AWS principal ARN not allowed. [principal-arn=${formattedArn}]`
|
message: `Access denied: AWS principal ARN not allowed. [principal-arn=${formattedArn}]`
|
||||||
|
|||||||
Reference in New Issue
Block a user