uint32_t crc_flags = 0;
ceph::auth::AuthClient* auth_client = nullptr;
ceph::auth::AuthServer* auth_server = nullptr;
+ bool require_authorizer = true;
- public:
+public:
Messenger(const entity_name_t& name)
: my_name(name)
{}
virtual void set_policy_throttler(entity_type_t peer_type, Throttle* throttle) = 0;
+ // allow unauthenticated connections. This is needed for compatibility with
+ // pre-nautilus OSDs, which do not authenticate the heartbeat sessions.
+ bool get_require_authorizer() const {
+ return require_authorizer;
+ }
+ void set_require_authorizer(bool r) {
+ require_authorizer = r;
+ }
static seastar::future<Messenger*>
create(const entity_name_t& name,
const std::string& lname,
public:
void handle_authentication(const EntityName& name,
uint64_t global_id,
- const AuthCapsInfo& caps) override {}
+ const AuthCapsInfo& caps) final
+ {}
};
DummyAuthHandler dummy_handler;