mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(sts): enforce web identity role duration limit (#7119)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user