Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: remove redundant S3AnonymousEngine #19474

Merged
merged 1 commit into from Dec 19, 2017

Conversation

qrGitHub
Copy link

@qrGitHub qrGitHub commented Dec 13, 2017

When receives unauthorized requests, RGW(rados auth only) runs four engines as follows:

  1. anonymous engine in s3_main_strategy_plain
  2. local engine in s3_main_strategy_plain
  3. anonymous engine in s3_main_strategy_boto2
  4. local engine in s3_main_strategy_boto2

The third engine which is exactly the same with the first one is redundant.

* When receives unauthorized requests, RGW(rados auth only) runs four
* engines as follows:
*     1. anonymous engine in s3_main_strategy_plain
*     2. local engine in s3_main_strategy_plain
*     3. anonymous engine in s3_main_strategy_boto2
*     4. local engine in s3_main_strategy_boto2
* The third engine which is exactly the same with the first one is
* redundant.

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
@qrGitHub
Copy link
Author

hi, @cbodley, @rzarzynski, would you help to review this? thanks!

Copy link
Contributor

@rzarzynski rzarzynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, @qrGitHub!

@@ -30,7 +30,7 @@ class StrategyRegistry {
using s3_main_strategy_plain_t = \
s3_strategy_t<rgw::auth::s3::AWSGeneralAbstractor, true>;
using s3_main_strategy_boto2_t = \
s3_strategy_t<rgw::auth::s3::AWSGeneralBoto2Abstractor, true>;
s3_strategy_t<rgw::auth::s3::AWSGeneralBoto2Abstractor>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@yuriw
Copy link
Contributor

yuriw commented Dec 18, 2017

@yuriw yuriw merged commit 4c33f4f into ceph:master Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants