]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/iam: match_policy() treats MATCH_POLICY_ARN as case-sensitive
authorCasey Bodley <cbodley@redhat.com>
Thu, 13 Mar 2025 23:48:23 +0000 (19:48 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 27 May 2025 20:08:27 +0000 (16:08 -0400)
commitf4010e6624191869fbce2775d3cf2fa6f50a39fc
treee9ac12e6a2635b389407e3c7ab898aea4188e033
parente3036679b4b37509667e079fc4b10aec28ff24c3
rgw/iam: match_policy() treats MATCH_POLICY_ARN as case-sensitive

now that the ArnLike conditions are the only user of MATCH_POLICY_ARN,
change their case-sensitivity to comply with Amazon Resource Name (ARN)
condition operators[1]

[1] https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_ARN

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit a7a63aa3ffef1db3788e90e25192a53ee323c69c)
src/rgw/rgw_common.cc
src/test/rgw/test_rgw_iam_policy.cc