]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Don't treat colons specially in resource part of ARN 25145/head
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 16 Nov 2018 19:42:33 +0000 (14:42 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 16 Nov 2018 20:53:02 +0000 (15:53 -0500)
commit07c478b750c56d7dbbda42507a19c00d0fdedc15
treeff6b7b8535f423cd9ed30e9bee75eb5eff1f7c88
parentac5b4f6d78123758b8e37231d8a5610052547f33
rgw: Don't treat colons specially in resource part of ARN

It is very important to prevent wildcards from matching across colons
in some parts of the ARN.

But it is equally important to allow them to do so in the last field.

Fixes: http://tracker.ceph.com/issues/23817
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_common.cc
src/rgw/rgw_iam_policy.cc
src/test/rgw/test_rgw_iam_policy.cc