]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc/rgw: warn about "trust forwarded https" security
authorKen Dreyer <kdreyer@redhat.com>
Thu, 9 Apr 2020 22:32:55 +0000 (16:32 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 21 May 2020 23:34:30 +0000 (17:34 -0600)
Warn users about the implications of enabling this option when there is
no trusted proxy in front of radosgw.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
doc/radosgw/config-ref.rst
src/common/options.cc

index c9785c6b7979fc52b5092a3b1aee7dd697e54956..c818e11aa8e95f95ff8228d6ec837f177b25566d 100644 (file)
@@ -673,6 +673,9 @@ Swift Settings
               this option to trust the ``Forwarded`` and ``X-Forwarded-Proto`` headers
               sent by the proxy when determining whether the connection is secure.
               This is required for some features, such as server side encryption.
+              (Never enable this setting if you do not have a trusted proxy in front of
+              radosgw, or else malicious users will be able to set these headers in
+              any request.)
 :Type: Boolean
 :Default: ``false``
 
index 6e2df5f1663544df27f30296ed8d296d8808ac73..c6964572bb4f8d2c66f4633741692d494ce4b97b 100644 (file)
@@ -6734,7 +6734,10 @@ std::vector<Option> get_rgw_options() {
         "does not know whether incoming http connections are secure. Enable "
         "this option to trust the Forwarded and X-Forwarded-Proto headers sent "
         "by the proxy when determining whether the connection is secure. This "
-        "is required for some features, such as server side encryption.")
+        "is required for some features, such as server side encryption. "
+        "(Never enable this setting if you do not have a trusted proxy in "
+        "front of radosgw, or else malicious users will be able to set these "
+        "headers in any request.)")
     .add_see_also("rgw_crypt_require_ssl"),
 
     Option("rgw_crypt_require_ssl", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)