Page MenuHomePhabricator

Add Host: www.wikidata.org to requests in production
Closed, ResolvedPublic

Description

Allow for ops to direct traffic to an internal appservers pool and not edge servers

  • introduce another env variable WIKIBASE_REPO_HOST_ALIAS
    • has a default value of appservers.discovery.wmnet
    • application refuses to start if value is not set
  • during axios setup
    • parse the value coming in from WIKIBASE_REPO
    • extract its host part (from now on referred to as HOST)
    • substitute it for the value coming in from WIKIBASE_REPO_HOST_ALIAS
    • use the HOST value as the Host header

Note:

  • code created to to achieve this should be exercised in all stages (no "breaks in prod")

Is reaction to T220402

Details

Related Gerrit Patches:

Event Timeline

Tarrow created this task.May 21 2019, 9:27 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 21 2019, 9:27 AM
Pablo-WMDE updated the task description. (Show Details)May 21 2019, 10:46 AM
Tarrow claimed this task.May 21 2019, 2:00 PM
Tarrow moved this task from To Do to Peer Review on the Wikidata-Termbox-Iteration-16 board.
Tarrow moved this task from Peer Review to Doing on the Wikidata-Termbox-Iteration-16 board.

Change 512143 had a related patch set uploaded (by Tarrow; owner: Tarrow):
[wikibase/termbox@master] Create server axiosFactory

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

Change 512144 had a related patch set uploaded (by Tarrow; owner: Tarrow):
[wikibase/termbox@master] Add WIKIBASE_REPO_HOSTNAME ENV and use for Repo requests

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

Change 512143 merged by jenkins-bot:
[wikibase/termbox@master] Create server axiosFactory

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

Change 512144 merged by jenkins-bot:
[wikibase/termbox@master] Add WIKIBASE_REPO_HOSTNAME ENV and use for Repo requests

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

Jakob_WMDE closed this task as Resolved.Jun 5 2019, 11:02 AM