Giuseppe Lavagetto has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/175952

Change subject: mediawiki: fix passing of the Authorization header in HAT
......................................................................

mediawiki: fix passing of the Authorization header in HAT

Change-Id: I56a59db10249e25ffd7fcc8904fefe6b2e91f69c
Signed-off-by: Giuseppe Lavagetto <[email protected]>
---
A modules/mediawiki/files/apache/configs/fcgi_headers.conf
M modules/mediawiki/manifests/web/modules.pp
2 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/52/175952/1

diff --git a/modules/mediawiki/files/apache/configs/fcgi_headers.conf 
b/modules/mediawiki/files/apache/configs/fcgi_headers.conf
new file mode 100644
index 0000000..dc87937
--- /dev/null
+++ b/modules/mediawiki/files/apache/configs/fcgi_headers.conf
@@ -0,0 +1,3 @@
+# Apache with mod_proxy_fcgi does _not_ pass the Authorization header to the 
+# fastcgi server, which broke OAUTH
+SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
diff --git a/modules/mediawiki/manifests/web/modules.pp 
b/modules/mediawiki/manifests/web/modules.pp
index efcc69b..b1fd8c8 100644
--- a/modules/mediawiki/manifests/web/modules.pp
+++ b/modules/mediawiki/manifests/web/modules.pp
@@ -28,6 +28,14 @@
             source   => 
'puppet:///modules/mediawiki/apache/configs/hhvm_mark_engine.conf',
             priority => 49,
         }
+
+        # Add headers lost by mod_proxy_fastcgi
+        apache::conf { 'fcgi_headers':
+            source   => 
'puppet:///modules/mediawiki/apache/configs/fcgi_headers.conf',
+            priority => 0,
+        }
+
+
     } else {
         include ::apache::mod::php5
     }

-- 
To view, visit https://gerrit.wikimedia.org/r/175952
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56a59db10249e25ffd7fcc8904fefe6b2e91f69c
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to