Adopt gateway downstream routing in production

Open
#1,293 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
5/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
flask
Domain
devops

Research direction

This is a superadmin-only production rollout runbook, not a newcomer task: it depends on dev cutover, mesh-bind fixes in four downstream repos, and prod access. The payload names docs/railway-variables.md and docs/railway-architecture.md as the files to update alongside the change, plus the campus-gateway service's ten HOST/PORT variables. Done means prod routes the downstream apps on the suffix-less domains and both docs match the live state.

Written by the indexing model from the issue text.

Description

Operator decision 2026-11-25: adopt the gateway downstream routing in production after dev proves out. Production is superadmin-only (environment-access policy) — all steps below run from a sanctioned superadmin session, and code reaches prod only via the weekly → main release PR.

Conditions before starting

  1. Dev cutover proven per app: namespaced auth surfaces live (flask_campus mount prefix shipped + repins), distinct session cookie names shipped, and each app's gateway-anchored login verified E2E on dev (see the registry/origin prerequisites issue for the per-app additive-then-flip ordering).
  2. Mesh-bind fixes merged in the four downstream repos (campus-classroom#152, campus-admin#94, campus-profile#58, nyxchange-timetable-v2#179) so prod instances can be bound dual-stack from their own definitions instead of instance overrides.
  3. campus-admin remap (/admin/<platform>) and the landing page shipped, if they're to debut with prod adoption.

Steps (superadmin session)

  • Fix the five prod instances' 0.0.0.0 binds (dual-stack [::] start commands) — currently untouched; the prod gateway doesn't route the downstream apps yet, so nothing is broken until this rollout starts.
  • Set the ten TIMETABLE/APPHOST/ADMIN/PROFILE/CLASSROOM_HOST+_PORT variables on the prod campus-gateway service — prod mesh names differ from dev's, and RAILWAY_PRIVATE_DOMAIN per service is the source (never guess). The template is already prod-safe: unset vars fall back to the image's .invalid placeholders (#1275), so wiring is additive and reversible per app.
  • Add prod redirect_uri registry entries + GCP federated origin (mirrors the dev registry issue).
  • Per-app PUBLIC_URL flips ride normal redeploys; batch config edits with skipDeploys and do one deliberate redeploy wave.
  • Verify on the suffix-less prod domains; update docs/railway-variables.md + railway-architecture.md in the same change (the prod gateway rows there note the deliberate absence of the downstream vars today).
Dominant language
Python
Stars
0
Forks
2
Avg merge
39m
Merged PRs (30d)
235

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nyjc-computing/campus

All issues in nyjc-computing/campus

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.