]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async,simple: include MGR as service when applying cephx settings
authorSage Weil <sage@redhat.com>
Fri, 4 May 2018 15:07:21 +0000 (10:07 -0500)
committerSage Weil <sage@redhat.com>
Thu, 24 May 2018 19:17:42 +0000 (14:17 -0500)
mgr is in same category as mds and osd.

Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/AsyncConnection.cc
src/msg/simple/Pipe.cc

index b4569d0215e33021d3b7a6e578ab0545d0fe8fc8..66cc4003d8fbd96cb143bb0a9eba05da35fe2867 100644 (file)
@@ -1472,7 +1472,8 @@ ssize_t AsyncConnection::handle_connect_msg(ceph_msg_connect &connect, bufferlis
   // require signatures for cephx?
   if (connect.authorizer_protocol == CEPH_AUTH_CEPHX) {
     if (peer_type == CEPH_ENTITY_TYPE_OSD ||
-        peer_type == CEPH_ENTITY_TYPE_MDS) {
+        peer_type == CEPH_ENTITY_TYPE_MDS ||
+       peer_type == CEPH_ENTITY_TYPE_MGR) {
       if (async_msgr->cct->_conf->cephx_require_signatures ||
           async_msgr->cct->_conf->cephx_cluster_require_signatures) {
         ldout(async_msgr->cct, 10) << __func__ << " using cephx, requiring MSG_AUTH feature bit for cluster" << dendl;
index f452258369cb8080c91cb3c4921c988d04b205af..32077c0e743b76b6da98d5e8fc7ef4ecffd64e07 100644 (file)
@@ -478,7 +478,8 @@ int Pipe::accept()
     // require signatures for cephx?
     if (connect.authorizer_protocol == CEPH_AUTH_CEPHX) {
       if (peer_type == CEPH_ENTITY_TYPE_OSD ||
-         peer_type == CEPH_ENTITY_TYPE_MDS) {
+         peer_type == CEPH_ENTITY_TYPE_MDS ||
+         peer_type == CEPH_ENTITY_TYPE_MGR) {
        if (msgr->cct->_conf->cephx_require_signatures ||
            msgr->cct->_conf->cephx_cluster_require_signatures) {
          ldout(msgr->cct,10) << "using cephx, requiring MSG_AUTH feature bit for cluster" << dendl;