As a technical contributor
I want to load javascript and css content hosted on gitlab.wikimedia.org in userscripts and/or gadgets on Wikimedia wikis
So I can implement collaborative workflows using git and CI.
GitLab serves raw content with Content-Type: text/plain and X-Content-Type-Options: nosniff headers which prevents us from trivially linking to content hosted on the service. These are reasonable protections from various forms of MIME confusion and XSS attacks. The upstream has rejected requests for integrated raw content delivery on multiple occasions.
Use of a reverse proxy separates sessions that visitors may have on the gitlab.wm.o site from the delivery of content by the Toolforge tool diffusing XSS attacks against the gitlab site. This can be seen as operating similarly to gitlab pages by delivering the content from a separate domain.
Related: T321458: Allow Javascript files from Wikimedia GitLab to be loaded as scripts in Wikimedia wikis