Ppchelko has uploaded a new change for review.

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

Change subject: Enable RESTBase on office wiki
......................................................................

Enable RESTBase on office wiki

Office wiki is a private wiki, so to enable it we need
to add an additional access check filter, that surves two
purposes:
1. It forwards the cookie to the MW API and trusted services.
   This includes MW API and parsoid.
2. Restricting access to content, stored in RESTBase for non
   logged-in users.

Change-Id: I940e201da31d68fc67bacb2004e9471d59e69768
---
M modules/restbase/templates/config.yaml.erb
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/09/292109/1

diff --git a/modules/restbase/templates/config.yaml.erb 
b/modules/restbase/templates/config.yaml.erb
index d9007aa..660a162 100644
--- a/modules/restbase/templates/config.yaml.erb
+++ b/modules/restbase/templates/config.yaml.erb
@@ -862,6 +862,13 @@
     /{domain:wikisource.org}: *default_project
     /{domain:test.wikidata.org}: *default_project
     /{domain:www.wikidata.org}: *default_project
+    /{domain:office.wikimedia.org}:
+      <<: *default_project
+      x-route-filters:
+        - path: ./lib/mediawiki_auth_filter.js
+          options:
+            permissions:
+              - read
 
     # global domain
     /{domain:wikimedia.org}: *wikimedia.org

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I940e201da31d68fc67bacb2004e9471d59e69768
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ppchelko <ppche...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to