bool is_my_peer(const entity_addr_t& addr) const;
AuthAuthorizer* get_authorizer(entity_type_t peer) const;
KeyStore& get_keys();
+ void _wipe_secrets_and_tickets();
seastar::future<> renew_tickets();
seastar::future<> renew_rotating_keyring();
}
}
+void Connection::_wipe_secrets_and_tickets() {
+ logger().info("{}: wiping rotating secrets and invalidating tickets", __func__);
+ rotating_keyring->wipe();
+ auth->invalidate_all_tickets();
+}
+
seastar::future<> Connection::renew_rotating_keyring()
{
auto&& conf = crimson::common::local_conf();
});
}
+seastar::future<> Client::_wipe_secrets_and_tickets()
+{
+ logger().info("{} wiping rotating secrets and invalidating tickets", __func__);
+ if (active_con) {
+ active_con->_wipe_secrets_and_tickets();
+ }
+ return _check_auth_tickets();
+}
+
+
seastar::future<> Client::stop()
{
logger().info("{}", __func__);
seastar::future<> load_keyring();
seastar::future<> authenticate();
+ seastar::future<> _wipe_secrets_and_tickets();
+
bool is_hunting() const;
// @param rank, rank of the monitor to be connected, if it is less than 0,
// try to connect to all monitors in monmap, until one of them