From 33bb1bad74234b913a82bb3773022113b02ffa75 Mon Sep 17 00:00:00 2001 From: Pritha Srivastava Date: Mon, 25 Mar 2019 12:37:23 +0530 Subject: [PATCH] rgw: Adding 'iam' namespace for Role and User Policy related REST APIs. Signed-off-by: Pritha Srivastava (cherry picked from commit 121a2695544bd56973459fad9b4f545b4ee412f8) Conflicts: src/common/options.cc src/rgw/CMakeLists.txt src/rgw/rgw_main.cc src/rgw/rgw_rest_s3.cc src/rgw/rgw_rest_s3.h --- src/common/options.cc | 2 +- src/rgw/CMakeLists.txt | 3 +- src/rgw/rgw_common.cc | 12 ++- src/rgw/rgw_common.h | 1 + src/rgw/rgw_http_errors.h | 2 + src/rgw/rgw_main.cc | 3 +- src/rgw/rgw_rest.cc | 2 + src/rgw/rgw_rest_iam.cc | 147 ++++++++++++++++++++++++++++++++ src/rgw/rgw_rest_iam.h | 49 +++++++++++ src/rgw/rgw_rest_role.cc | 72 ++++++++++++++-- src/rgw/rgw_rest_s3.cc | 71 +++++++-------- src/rgw/rgw_rest_s3.h | 9 +- src/rgw/rgw_rest_sts.cc | 4 +- src/rgw/rgw_rest_user_policy.cc | 41 +++++++-- src/rgw/rgw_role.cc | 16 ++-- 15 files changed, 361 insertions(+), 73 deletions(-) create mode 100644 src/rgw/rgw_rest_iam.cc create mode 100644 src/rgw/rgw_rest_iam.h diff --git a/src/common/options.cc b/src/common/options.cc index 2bee6e90fd60c..b7403d95ec366 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5712,7 +5712,7 @@ std::vector