From ae66363710d836e5210d14fdd88488a2608bf3e2 Mon Sep 17 00:00:00 2001 From: Allison Karlitskaya Date: Thu, 11 Jun 2026 09:34:41 +0200 Subject: [PATCH] sts: increase ticket duration to 12 hours This required increasing the maximum session duration in "summary" section of the role in the AWS console. --- lib/gssapi_saml_sts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gssapi_saml_sts.py b/lib/gssapi_saml_sts.py index 9de8effc7e..4183077415 100644 --- a/lib/gssapi_saml_sts.py +++ b/lib/gssapi_saml_sts.py @@ -100,6 +100,7 @@ def aws_sts_assume_role(role_arn: str, provider_arn: str, saml_assertion: str) - 'RoleArn': role_arn, 'PrincipalArn': provider_arn, 'SAMLAssertion': saml_assertion, + 'DurationSeconds': 43200, # 12 hours }).encode() request = urllib.request.Request(_STS_URL, data=params, method='POST')