]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Don't treat colons specially in resource part of ARN 25387/head
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 16 Nov 2018 19:42:33 +0000 (14:42 -0500)
committerPrashant D <pdhange@redhat.com>
Mon, 3 Dec 2018 22:45:49 +0000 (17:45 -0500)
commit62c0a87affaac3e26c8bda1c993234bf13cd711e
tree944ffbd0b860d03425455468c1bfb796a7374411
parentb79a5246a73f0cad183f0e6c176e6d7208a50872
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>
(cherry picked from commit 07c478b750c56d7dbbda42507a19c00d0fdedc15)
src/rgw/rgw_common.cc
src/rgw/rgw_iam_policy.cc
src/test/rgw/test_rgw_iam_policy.cc