]> git.apps.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>
Fri, 14 Mar 2025 00:23:34 +0000 (20:23 -0400)
commita7a63aa3ffef1db3788e90e25192a53ee323c69c
tree548eb135237397f696a8acaa0ddbc56cd89a67bd
parent4cd40c7f715304519fe91b1d6f296ce06ef6c2ef
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>
src/rgw/rgw_common.cc
src/test/rgw/test_rgw_iam_policy.cc