Skip to content

Commit

Permalink
Merge PR ceph#27012 into master
Browse files Browse the repository at this point in the history
* refs/pull/27012/head:
	common/options: allow (but to not prefer or require) secure mode
	common/options: make clients prefer to connect to mons via secure mode
	common/options: allow connections to mons in secure mode
	common/options: prefer secure mode between monitors
	auth/AuthRegistry: remove experimental flag for 'secure' mode

Reviewed-by: Neha Ojha <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
  • Loading branch information
liewegas committed Mar 28, 2019
2 parents 9de36ff + 1aa28cd commit 3326f0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/auth/AuthRegistry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ void AuthRegistry::_parse_mode_list(const string& s,
if (i == "crc") {
v->push_back(CEPH_CON_MODE_CRC);
} else if (i == "secure") {
if (cct->check_experimental_feature_enabled("ms-mode-secure")) {
v->push_back(CEPH_CON_MODE_SECURE);
}
v->push_back(CEPH_CON_MODE_SECURE);
} else {
lderr(cct) << "WARNING: unknown connection mode " << i << dendl;
}
Expand Down
12 changes: 6 additions & 6 deletions src/common/options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ std::vector<Option> get_global_options() {
.add_see_also("ms_type"),

Option("ms_mon_cluster_mode", Option::TYPE_STR, Option::LEVEL_BASIC)
.set_default("crc")
.set_default("secure crc")
.set_description("Connection modes (crc, secure) for intra-mon connections in order of preference")
.add_see_also("ms_mon_service_mode")
.add_see_also("ms_mon_client_mode")
Expand All @@ -799,7 +799,7 @@ std::vector<Option> get_global_options() {
.add_see_also("ms_client_mode"),

Option("ms_mon_service_mode", Option::TYPE_STR, Option::LEVEL_BASIC)
.set_default("crc")
.set_default("secure crc")
.set_description("Allowed connection modes (crc, secure) for connections to mons")
.add_see_also("ms_service_mode")
.add_see_also("ms_mon_cluster_mode")
Expand All @@ -808,7 +808,7 @@ std::vector<Option> get_global_options() {
.add_see_also("ms_client_mode"),

Option("ms_mon_client_mode", Option::TYPE_STR, Option::LEVEL_BASIC)
.set_default("crc")
.set_default("secure crc")
.set_description("Connection modes (crc, secure) for connections from clients to monitors in order of preference")
.add_see_also("ms_mon_service_mode")
.add_see_also("ms_mon_cluster_mode")
Expand All @@ -817,19 +817,19 @@ std::vector<Option> get_global_options() {
.add_see_also("ms_client_mode"),

Option("ms_cluster_mode", Option::TYPE_STR, Option::LEVEL_BASIC)
.set_default("crc")
.set_default("crc secure")
.set_description("Connection modes (crc, secure) for intra-cluster connections in order of preference")
.add_see_also("ms_service_mode")
.add_see_also("ms_client_mode"),

Option("ms_service_mode", Option::TYPE_STR, Option::LEVEL_BASIC)
.set_default("crc")
.set_default("crc secure")
.set_description("Allowed connection modes (crc, secure) for connections to daemons")
.add_see_also("ms_cluster_mode")
.add_see_also("ms_client_mode"),

Option("ms_client_mode", Option::TYPE_STR, Option::LEVEL_BASIC)
.set_default("crc")
.set_default("crc secure")
.set_description("Connection modes (crc, secure) for connections from clients in order of preference")
.add_see_also("ms_cluster_mode")
.add_see_also("ms_service_mode"),
Expand Down

0 comments on commit 3326f0b

Please sign in to comment.