Skip to content

Add proxy for release.opensafely.org (to job-server API) - #92

Merged
rebkwok merged 3 commits into
mainfrom
proxy-job-server
Aug 20, 2026
Merged

Add proxy for release.opensafely.org (to job-server API)#92
rebkwok merged 3 commits into
mainfrom
proxy-job-server

Conversation

@rebkwok

@rebkwok rebkwok commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Proxies release.opensafely.org to jobs.opensafely.org; only forwards /api/v2/releases/ (for Airlock auth and releasing endpoints) and /api/v2/airlock/events (the Airlock notification endpoint).

Backends already use release.opensafely.org as the AIRLOCK_API_ENDPOINT; once the proxy is in place (and we've added release.opensafely.org to the proxy dokku app domains, we can remove it from the job-server app's domains.

I've tested this on the emis-staging environment.
Starting with job-server set with releases.emis-staging.opensafely.org and jobs.emis-staging.opensafely.org domains (as on prod), and I deployed the proxy with this branch, and added releases.emis-staging.opensafely.org to its domains. Then I tried to log into emisv2 airlock with an emis-staging job-server token. It worked, but it went directly to job-server. Then I removed releases.emis-staging.opensafely.org from the job-server domains and tried again, and it still worked, this time going via the proxy. I've also tested creating and submitting a release request and Airlock notifications are correctly sent to job-server (e.g. to create this issue when a release request is submitted)

First step in #90

@rebkwok rebkwok changed the title Add proxy for release.opensafely.org (job-server) Add proxy for release.opensafely.org (to job-server API) Aug 19, 2026
Proxies release.opensafely.org to jobs.opensafely.org;
only forwards /api/v2/releases/ (for Airlock auth and releasing
endpoints) and /api/v2/airlock/events (the Airlock notification
endpoint).
@rebkwok
rebkwok merged commit 32eee29 into main Aug 20, 2026
4 checks passed
@rebkwok
rebkwok deleted the proxy-job-server branch August 20, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants