From: Sage Weil Date: Fri, 4 May 2018 15:22:46 +0000 (-0500) Subject: mon,msg: implement cephx_*_require_version options X-Git-Tag: v14.0.1~913^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9bcbc2a3621f9ee4558c9748ab7c73c6e1b22510;p=ceph.git mon,msg: implement cephx_*_require_version options Add a new set of options that are parallel to cephx_require_signatures cephx_cluster_require_signatures cephx_service_require_signatures that indicate which version of cephx is required to be supported. Signed-off-by: Sage Weil --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 5597b625484..e758586fe5c 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -322,9 +322,12 @@ OPTION(auth_service_required, OPT_STR) // required by daemons of clients OPTION(auth_client_required, OPT_STR) // what clients require of daemons OPTION(auth_supported, OPT_STR) // deprecated; default value for above if they are not defined. OPTION(max_rotating_auth_attempts, OPT_INT) -OPTION(cephx_require_signatures, OPT_BOOL) // If true, don't talk to Cephx partners if they don't support message signing; off by default +OPTION(cephx_require_signatures, OPT_BOOL) OPTION(cephx_cluster_require_signatures, OPT_BOOL) OPTION(cephx_service_require_signatures, OPT_BOOL) +OPTION(cephx_require_version, OPT_INT) +OPTION(cephx_cluster_require_version, OPT_INT) +OPTION(cephx_service_require_version, OPT_INT) OPTION(cephx_sign_messages, OPT_BOOL) // Default to signing session messages if supported OPTION(auth_mon_ticket_ttl, OPT_DOUBLE) OPTION(auth_service_ticket_ttl, OPT_DOUBLE) diff --git a/src/common/options.cc b/src/common/options.cc index 5768f275590..26157f2e093 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1795,14 +1795,26 @@ std::vector