feat(machine-identity): Add AWS attributes for ABAC

This commit is contained in:
x032205
2025-07-23 16:30:55 -04:00
parent 14d4cfdbe4
commit e798eb2a4e
7 changed files with 144 additions and 65 deletions
@@ -162,6 +162,12 @@ export const injectIdentity = fp(async (server: FastifyZodProvider) => {
kubernetes: token?.identityAuth?.kubernetes
});
}
if (token?.identityAuth?.aws) {
requestContext.set("identityAuthInfo", {
identityId: identity.identityId,
aws: token?.identityAuth?.aws
});
}
break;
}
case AuthMode.SERVICE_TOKEN: {