AWS opensearch-service: Add Null condition guidance for osm IAM condition keys
Summary
Expands the guidance for the multivalued `osm:actorId`, `osm:sessionId`, and `osm:strategyName` condition keys, instructing users to add a `Null` condition set to `false` and explaining that without it requests omitting the value can pass an `Allow` (ForAllValues) or evade a `Deny` (ForAnyValue).
Security assessment
The added text addresses a concrete authorization weakness in IAM policy authoring: policies using these multivalued keys without a `Null` condition can be bypassed by requests that omit the key, either allowing unintended access (ForAllValues + Allow) or failing to deny (ForAnyValue + Deny). This is IAM permission-boundary hardening guidance, hence high severity.
Evidence
These keys are multivalued. Use them with the `ForAllValues` or `ForAnyValue` set operators. When you use `osm:actorId`, `osm:sessionId`, or `osm:strategyName` in a policy, also add a `Null` condition that sets the key to `false`, for example `"Null": {"osm:actorId": "false"}`. Without it, requests that leave out the value get through. A `ForAllValues` condition on a missing key matches, so an `Allow` statement allows the request. A `ForAnyValue` condition on a missing key doesn't match, so a `Deny` statement doesn't deny it. For an example, see Limiting a principal to one actor's memories.
Diff
diff --git a/opensearch-service/latest/developerguide/security-iam-memory.md b/opensearch-service/latest/developerguide/security-iam-memory.md index b787fc7..d54a4e8 100644 --- a//opensearch-service/latest/developerguide/security-iam-memory.md +++ b//opensearch-service/latest/developerguide/security-iam-memory.md @@ -118 +118 @@ The memory strategy names in the request. Operations: [CreateMemory](https://doc -These keys are multivalued. Use them with the `ForAllValues` or `ForAnyValue` set operators. If a request doesn't include a value for the key, a `ForAllValues` condition on that key matches, so a policy that must require the value also needs a `Null` condition. For an example, see Limiting a principal to one actor's memories. +These keys are multivalued. Use them with the `ForAllValues` or `ForAnyValue` set operators. When you use `osm:actorId`, `osm:sessionId`, or `osm:strategyName` in a policy, also add a `Null` condition that sets the key to `false`, for example `"Null": {"osm:actorId": "false"}`. Without it, requests that leave out the value get through. A `ForAllValues` condition on a missing key matches, so an `Allow` statement allows the request. A `ForAnyValue` condition on a missing key doesn't match, so a `Deny` statement doesn't deny it. For an example, see Limiting a principal to one actor's memories.