mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 22:37:55 -05:00
Every response that mints a session declares the size of the token it hands back and the share of the limit that size consumes, and this package published neither. SessionTokenSize is "the size, in bytes, of the session token returned in the Credentials for this response" and SessionTokenUtilization "the percentage (0-100) of the maximum allowed session token size that the returned session token consumes", which is word for word the definition of the PackedPolicySize they were deprecated in favour of on 2026-06-17, and the guide tells a caller to read the new one: "the SessionTokenUtilization response element shows what percentage of the size limit the token uses. The PackedPolicySize response element is deprecated." All six operations that mint a session carry the pair: AssumeRole, AssumeRoleWithSAML, AssumeRoleWithWebIdentity, AssumeRoot, GetFederationToken and GetSessionToken. The four that carry state into their token declare the deprecated member as well and publish all three, that one ahead of the pair and holding the same percentage, so one number is published twice over. AWS's own example responses are that shape: 1428 bytes with 34 in both percentage members, 1105 with 26, and 856 with 20 on GetSessionToken, whose response declares no deprecated member at all. The percentage truncates, as all three of those pairs and the one pair recorded here report it. The size published is the measure a session is refused by rather than the length of the string in Credentials. AWS packs the session's state into the token it hands back, so the two are one number there, while this package mints an opaque token and keeps the state beside it, and a size read off that string would tell a caller the session cost nothing while the same request was refused for being over the limit. AssumeRoot answered that string's length, which on an operation carrying no state is the same number, and reads the one measure now. What that measure counts is the state the operation declares, read from the generated request shapes rather than from whatever parameters a request carries, which is what publishing a size on the two operations that declare none asked for. A session tag reaches AssumeRoleWithSAML and AssumeRoleWithWebIdentity inside the assertion or the token rather than as a member of the request, so a tag sent to either no longer costs its token anything, and a document or a tag sent to GetSessionToken or AssumeRoot costs nothing either. The IAM page carries the three members, which response declares which, the published pairs behind the truncation, and why the size is the measure rather than the string in Credentials. The STS page's privileged-session section no longer counts its size member among that operation's deviations, nor says the percentage goes unanswered: it publishes the pair the reference defines, as the other five do. Covered over the API by the three members on an assumed, a federated and a web identity session, by the pair alone on the long-term session and on the privileged session, by all three on a SAML session where the signing fixture lives, and by a request whose undeclared parameters cost it nothing; at the handler by the pair on each operation that harness can reach, by the deprecated member appearing only where its response declares it, and by the declarations the measure turns on, so a regenerated file that stopped carrying an operation is caught there rather than by a session quietly reporting its token alone; and on the exchange that declares none of the three, which publishes none.