fix(sts): enforce web identity role duration limit (#7119)

This commit is contained in:
Andre Kurait authored and GitHub committed 2026-10-31 14:59:02 -04:00
1 parent 224c35830c
commit f74744dc5f
5 files changed
+154

No files matched your search

@@ -373,6 +373,12 @@ public class StsQueryHandler {
}
}
if (durationSeconds > role.getMaxSessionDuration()) {
return AwsQueryResponse.error("ValidationError",
"The requested DurationSeconds exceeds the MaxSessionDuration set for this role.",
AwsNamespaces.STS, 400);
}
String accessKeyId = "ASIA" + randomId(16);
String secretKey = randomSecret(40);
String sessionToken = randomSecret(200);