diff options
author | Zhipeng Li <qiuxinyidian@gmail.com> | 2024-01-23 07:50:52 +0100 |
---|---|---|
committer | Yuval Lifshitz <ylifshit@redhat.com> | 2024-02-06 08:41:55 +0100 |
commit | 4581d0dafa8806531cc6ce18971b2aba7017bc02 (patch) | |
tree | 24e17366a1b16b1035a20f16a7492f8ff2cada3c /src/rgw/rgw_iam_policy.h | |
parent | Merge pull request #55414 from yuvalif/wip_yuval_url_decode_sns (diff) | |
download | ceph-4581d0dafa8806531cc6ce18971b2aba7017bc02.tar.xz ceph-4581d0dafa8806531cc6ce18971b2aba7017bc02.zip |
rgw: modify topic owner check when creating
add tests to cover topic policies
as well as behavior when no policies are defined
Fixes: https://tracker.ceph.com/issues/64124
Signed-off-by: Zhipeng Li <qiuxinyidian@gmail.com>
Diffstat (limited to 'src/rgw/rgw_iam_policy.h')
-rw-r--r-- | src/rgw/rgw_iam_policy.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rgw/rgw_iam_policy.h b/src/rgw/rgw_iam_policy.h index e528d1515c7..5d6f334c176 100644 --- a/src/rgw/rgw_iam_policy.h +++ b/src/rgw/rgw_iam_policy.h @@ -145,7 +145,8 @@ static constexpr std::uint64_t snsGetTopicAttributes = stsAll + 1; static constexpr std::uint64_t snsDeleteTopic = stsAll + 2; static constexpr std::uint64_t snsPublish = stsAll + 3; static constexpr std::uint64_t snsSetTopicAttributes = stsAll + 4; -static constexpr std::uint64_t snsAll = stsAll + 5; +static constexpr std::uint64_t snsCreateTopic = stsAll + 5; +static constexpr std::uint64_t snsAll = stsAll + 6; static constexpr std::uint64_t s3Count = s3All; static constexpr std::uint64_t allCount = snsAll + 1; |