]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set default ssl options for beast frontend 42363/head
authorMykola Golub <mgolub@suse.com>
Wed, 16 Jun 2021 15:41:44 +0000 (16:41 +0100)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 22 Jul 2021 17:15:50 +0000 (00:15 +0700)
to 'no_sslv2:no_sslv3:no_tlsv1:no_tlsv1_1'

Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit fb31c87c2d6c02563d2d2a1e63d5b62bea2c6f91)

PendingReleaseNotes
doc/radosgw/frontends.rst
src/rgw/rgw_asio_frontend.cc

index 4d443bc47d2e30df1f39fb7a88006a6000a18172..b1e6d2ede865aca5663719864366bbf15ea66a7d 100644 (file)
@@ -9,6 +9,11 @@
   that were storing state in RADOS omap, especially without striping which
   limits scalability.
 
+* RGW: It is possible to specify ssl options and ciphers for beast frontend now.
+  The default ssl options setting is "no_sslv2:no_sslv3:no_tlsv1:no_tlsv1_1".
+  If you want to return back the old behavior add 'ssl_options=' (empty) to
+  ``rgw frontends`` configuration.
+
 >=16.0.0
 --------
 
index 389572255e893fd1e610174b9fe727f1be4a88cb..be96e77e863245c4fb9eceb18539028935ac21d7 100644 (file)
@@ -85,7 +85,7 @@ Options
               ``single_dh_use`` Always create a new key when using tmp_dh parameters.
 
 :Type: String
-:Default: None
+:Default: ``no_sslv2:no_sslv3:no_tlsv1:no_tlsv1_1``
 
 ``ssl_ciphers``
 
index d0673a39ab4c4741dc4a7cf67df25fec9d51223d..a265f184856eb4e8955ba893a18863a901e0ad8f 100644 (file)
@@ -807,7 +807,11 @@ int AsioFrontend::init_ssl()
       lderr(ctx()) << "no ssl_certificate configured for ssl_options" << dendl;
       return -EINVAL;
     }
+  } else if (cert) {
+    options = "no_sslv2:no_sslv3:no_tlsv1:no_tlsv1_1";
+  }
 
+  if (options) {
     for (auto &option : ceph::split(*options, ":")) {
       if (option == "default_workarounds") {
         ssl_context->set_options(ssl::context::default_workarounds);