AWS IAM medium security documentation change
Summary
Removed deprecated 'Assumed-role session principals' section. Added recommendation to prefer IAM role principals over role session principals in policies, with Condition statements for access scoping.
Security assessment
The change addresses least privilege enforcement by discouraging role session principals (which can have unpredictable ARNs) in favor of role principals with explicit Conditions. This reduces risk of overprivileged sessions and unintended access.
Diff
diff --git a/IAM/latest/UserGuide/reference_policies_elements_principal.md b/IAM/latest/UserGuide/reference_policies_elements_principal.md index 06c81ccd5..7f0ee7044 100644 --- a//IAM/latest/UserGuide/reference_policies_elements_principal.md +++ b//IAM/latest/UserGuide/reference_policies_elements_principal.md @@ -5 +5 @@ -How to specify a principalAWS account principalsIAM role principalsRole session principalsAssumed-role session principalsOIDC federated principalsSAML federated principalsIAM user principalsIdentity Center principalsFederated user principalsAWS service principalsAWS service principals in opt-in RegionsAll principalsMore information +How to specify a principalAWS account principalsIAM role principalsRole session principalsOIDC federated principalsSAML federated principalsIAM user principalsIdentity Center principalsFederated user principalsAWS service principalsAWS service principals in opt-in RegionsAll principalsMore information @@ -31,2 +30,0 @@ You cannot use the `Principal` element in an identity-based policy. Identity-bas - * Assumed-role session principals - @@ -150,3 +148 @@ The format that you use for a role session principal depends on the AWS STS oper -Additionally, administrators can design a process to control how role sessions are issued. For example, they can provide a one-click solution for their users that creates a predictable session name. If your administrator does this, you can use role session principals in your policies or condition keys. Otherwise, you can specify the role ARN as a principal in the `aws:PrincipalArn` condition key. How you specify the role as a principal can change the effective permissions for the resulting session. For more information, see IAM role principals. - -## Assumed-role session principals +###### Important @@ -154 +150 @@ Additionally, administrators can design a process to control how role sessions a -An _assumed-role session principal_ is a session principal that results from using the AWS STS `AssumeRole` operation. For more information about which principals can assume a role using this operation, see [Compare AWS STS credentials](./id_credentials_sts-comparison.html). +AWS recommends using IAM role principals in your policies instead of role session principals wherever possible. Use `Condition` statements and condition keys to further scope down access when required. @@ -156 +152 @@ An _assumed-role session principal_ is a session principal that results from usi -To specify the assumed-role session ARN in the `Principal` element, use the following format: +To specify the role session principal ARN in the `Principal` element, use the following format: @@ -161 +157 @@ To specify the assumed-role session ARN in the `Principal` element, use the foll -When you specify an assumed-role session in a `Principal` element, you cannot use a wildcard "*" to mean all sessions. Principals must always name a specific session. +Additionally, administrators can design a process to control how role sessions are issued. For example, they can provide a one-click solution for their users that creates a predictable session name. If your administrator does this, you can use role session principals in your policies or condition keys. Otherwise, you can specify the role ARN as a principal in the `aws:PrincipalArn` condition key. How you specify the role as a principal can change the effective permissions for the resulting session. For more information, see IAM role principals.