TECHNOLOGY

How can STS session policies miss a direct session grant?

In this article
THE QUICK TAKE

Review both session restrictions and resource policies naming the session principal before claiming a restricted worker.

The operational scenario

A model worker assumes a role with a restrictive session policy intended to allow one artifact read. A bucket policy separately grants access to the assumed-role session principal. Reading only the session policy can then overstate the effective boundary. The question is which policy paths authorize the actual request, including whether a resource policy names the role identity or the resulting session.

The trust-boundary mechanism

AWS documents session policies as restricting permissions from an identity-based policy rather than granting new role permissions. Its IAM guide separately explains that resource-based permissions granted directly to a session are not limited by the session policy’s implicit boundary. An explicit deny still takes precedence. These distinctions prevent the convenient statement that every session permission is always a simple intersection of two policy documents.

Define the control contract

Define the actual assumed principal, role trust policy, role permission policy, session restrictions and relevant resource policies. Preserve resource identifiers and requested operations, not just a human-readable role name. Check organization and boundary controls where applicable. A short credential lifetime changes validity duration; it does not automatically restrict the actions an otherwise authorized session can perform while those credentials remain usable.

A step-by-step verification

First map a permitted artifact read to its actual policy evaluation path. Then review resource-policy principals for direct session grants versus role grants. Use a disposable authorization fixture to compare allowed and intentionally disallowed resources without performing destructive operations. Confirm that the denied control cannot gain access through another applicable policy. Retain explicit-deny outcomes separately from missing-allow outcomes, because their combination behavior differs.

Evidence required for acceptance

Evidence includes the session principal identity, policy revisions, resource-policy context and observed or evaluated decisions for each control request. Keep credentials out of the record. A deliberately direct session grant should be detected by the review, even if the inline restriction appears narrow. Acceptance means the effective authorization paths match the intended scope, rather than merely that AssumeRole returned temporary credentials successfully.

Failure cases and limits

This protocol is a technical authorization review, not a universal compliance determination. Cross-account policies and additional AWS policy types require their actual evaluation context; a simplified fixture cannot certify every resource. Revocation and credential adoption remain separate lifecycle questions. No cloud role is assumed here. The useful conclusion identifies which principal and policy combination bounds the worker’s artifact access under the reviewed configuration.

Review both session restrictions and resource policies naming the session principal before claiming a restricted worker. AWS IAM session-policy evaluation; AWS STS AssumeRole policies.

The proposed investigation of sts session policy direct session grants is a proposed control review; no live security test was executed. Related reading: The 2024 Hugging Face Spaces disclosure: secrets, token scope and evidence; The digest matches, but whom do you trust: verifying container image signatures.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles