Commit Graph

69665 Commits

Author SHA1 Message Date
Radoslaw Zarzynski
463fb1f9e4 rgw: implement descriptive authentication failure reasons.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:42 +01:00
Radoslaw Zarzynski
e5f4ea2f7d rgw: unify handling S3's ::authorize_v2 and ::get_policy methods.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:42 +01:00
Radoslaw Zarzynski
be9dabaf35 rgw: remove the parts of auth framework that aren't necessary anymore.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:42 +01:00
Radoslaw Zarzynski
95f2180204 rgw: move ACL Strategies to the newer auth framework.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:41 +01:00
Radoslaw Zarzynski
38e1af31f9 rgw: switch from req_state::auth_identity to req_state::auth::identity.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:41 +01:00
Radoslaw Zarzynski
0e79c29b1c rgw: remove rgw/rgw_auth_decoimpl.h as it isn't necessary anymore.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-03-24 16:55:32 +01:00
Radoslaw Zarzynski
8ce76ec6ca rgw: add rgw::auth::s3::AWSv2AuthStrategy and switch the S3 auth to it.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:27 +01:00
Radoslaw Zarzynski
c7288bf24d rgw: replace RGWDummyIdentityApplier with rgw::auth::DummyIdentityApplier.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:26 +01:00
Radoslaw Zarzynski
764ba0a49a rgw: apply the new filters over appliers in the Swift's auth strategy.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:26 +01:00
Radoslaw Zarzynski
89d813a392 rgw: implement the rgw::auth::SysReqApplier over IdentityApplier.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:26 +01:00
Radoslaw Zarzynski
61aac9795f rgw: implement rgw::auth::ThirdPartyAccountApplier.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:25 +01:00
Radoslaw Zarzynski
d912f9e0ae rgw: add Control::FALLBACK mode to rgw::auth::AuthStrategy.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:25 +01:00
Radoslaw Zarzynski
aeb26c22c3 rgw: aggregate S3's external auth engine as the ExternalAuthStrategy.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:24 +01:00
Radoslaw Zarzynski
c777810e32 rgw: make rgw::keystone::TokenEnvelope::expired() to be const-correct.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:23 +01:00
Radoslaw Zarzynski
a16d301626 rgw: switch S3-specific auth engines to the new infra.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:23 +01:00
Radoslaw Zarzynski
c9b90ccf41 rgw: integrate the new EC2Engine with current S3 auth code.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:22 +01:00
Radoslaw Zarzynski
c7de0827d5 rgw: introduce basement for all S3 auth engines.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:22 +01:00
Radoslaw Zarzynski
0dadcbcdfb rgw: fix indentation in RGWPostObj_ObjStore_S3::get_policy().
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:22 +01:00
Radoslaw Zarzynski
fa02054684 rgw: improve const-correctness and refactor S3 canonized string crafting.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:55:21 +01:00
Radoslaw Zarzynski
d9c723cf50 rgw: add rgw::auth::keystone::EC2Engine.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-03-24 16:55:13 +01:00
Radoslaw Zarzynski
e4e7b576b2 rgw: the authorize() method of Swift's handler operates on auth strategy now.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:53 +01:00
Radoslaw Zarzynski
0134241b63 rgw: the Swift's auth strategy is instantiated and injected from rgw_main.cc.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-03-24 16:54:39 +01:00
Radoslaw Zarzynski
da14fd9364 rgw: settle rgw::auth::{IdentityApplier,Completer} in req_state.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:34 +01:00
Radoslaw Zarzynski
58f0df7a17 rgw: port the TempURL auth engine to the new auth infrastructure.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:34 +01:00
Radoslaw Zarzynski
c5f8e8c8c0 rgw: port Swift's Signed and External auth engines.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:34 +01:00
Radoslaw Zarzynski
2fd0a50fa5 rgw: implement rgw::auth::DecoratedApplier.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:33 +01:00
Radoslaw Zarzynski
1f7a802ef1 rgw: implement rgw::auth::swift::DefaultStrategy.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:33 +01:00
Radoslaw Zarzynski
9aa6d17db0 rgw: implement rgw::auth::AnonymousEngine.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:33 +01:00
Radoslaw Zarzynski
d5945e1511 rgw: implement rgw::auth::LocalApplier.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:32 +01:00
Radoslaw Zarzynski
9651b4acbe rgw: inject token cache as a dependency in rgw::auth::keystone::TokenEngine.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:32 +01:00
Radoslaw Zarzynski
2016d460de rgw: implement the rgw::auth::KeystoneEngine.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:32 +01:00
Radoslaw Zarzynski
9ddb0494c5 rgw: Keystone implementation can support multiple instances now.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:54:32 +01:00
Radoslaw Zarzynski
f82af9ca95 rgw: only move Keystone-related things into rgw::keystone namespace.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-03-24 16:54:05 +01:00
Radoslaw Zarzynski
a22a7132ac rgw: add the rgw::auth::TokenExtractor interface.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:31:43 +01:00
Radoslaw Zarzynski
41403c2092 rgw: introduce the rgw::auth::RemoteApplier interface.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 16:31:43 +01:00
Radoslaw Zarzynski
4d03f7b637 rgw: introduce the rgw::auth::Applier interface.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 15:57:25 +01:00
Radoslaw Zarzynski
f799efe02e rgw: implement the rgw::auth::Strategy.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 15:57:24 +01:00
Radoslaw Zarzynski
b560d98431 rgw: introduce and document new interfaces to the auth subsystem.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 15:57:24 +01:00
Mykola Golub
9804468266 Merge pull request #13986 from dillaman/wip-19081
librbd: image create validates that pool supports overwrites

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-03-16 13:38:28 +02:00
Haomai Wang
98a14c369e Merge pull request #13905 from yuyuyu101/wip-fix-assert
msg/async/rdma: fix outstanding queuepair when destruct RDMAStack

Reviewed-by: Adir lev <adirl@mellanox.com>
2017-03-16 16:35:58 +08:00
Nathan Cutler
6e18866b92 Merge pull request #13983 from gaurav36/bug-19273-fix-typo
rbd: fix typo in Kernel.cc

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2017-03-16 05:07:35 +01:00
Jason Dillaman
a16beba784 librbd: image create validates that pool supports overwrites
Fixes: http://tracker.ceph.com/issues/19081
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-15 17:30:11 -04:00
Jason Dillaman
d4e27c48aa librbd: clean up debug messages within image create state machine
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-15 17:30:10 -04:00
John Spray
4b0654f26a Merge pull request #13628 from jcsp/wip-19075
mds: extend 'p' auth cap to cover all vxattr stuff

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-03-15 21:29:48 +00:00
John Spray
5f6fa0e2f7 Merge pull request #13807 from jcsp/wip-19118
mds: try to avoid false positive heartbeat timeouts
2017-03-15 21:15:43 +00:00
Jason Dillaman
8d79bf2bcb librbd: removed legacy state machine callbacks from CreateRequest
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-15 14:12:35 -04:00
Sage Weil
84de8178c2 Merge pull request #13913 from wangzhengyong/release
os/bluestore/Allocator: drop unused return value in release function

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-15 13:09:33 -05:00
Gaurav Kumar Garg
197e4704bb rbd: fix typo in Kernel.cc
Fixes: http://tracker.ceph.com/issues/19273

Reported-by: Shinobu Kinjo <shinobu@redhat.com>
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
2017-03-15 17:18:17 +01:00
Casey Bodley
5d231db13b Merge pull request #13928 from oritwas/wip-rgw-19195
rgw: use rgw_zone_root_pool for region_map like is done in hammer

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-03-15 09:14:42 -04:00
Jason Dillaman
76e08c26b7 Merge pull request #13977 from runsisi/wip-fix-rbd-py
pybind: fix docstring for librbd Python binding

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-03-15 09:07:38 -04:00