Migrate Primer from Railway to dry-dock (GKE) after INC-248
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 8/100
- Issue type
- Refactor
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- docker, gcp, helm, kubernetes, postgresql
- Domain
- cloud, database, devops, infrastructure
Research direction
This is a tracking issue for platform work across several repos, not a code change in primer. The checklist spans polygon-infrastructure (Cloud SQL, GCS, Workload Identity, Secret Manager) and dry-dock (applications/web-apps/primer.yaml and related stage and Kargo files), with Okta and Mailgun steps. Start by reading the linked primer sub-issues and the platform team's access requirements. Done means the service runs on the new URL, the cutover smoke tests pass, and the Railway project is decommissioned.
Written by the indexing model from the issue text.
Description
Tracking issue. Railway was compromised (INC-248, 2026-10-21); all Railway env vars are presumed exposed. Primer's data has been extracted and verified off Railway, and the service is stopped there. Primer moves to the platform team's GKE clusters via 0xPolygon/dry-dock, served at https://primer.polygon.tools.
Target architecture
- Deploy: dry-dock
web-apps/commonchart, Argo CDApplicationSet(production), Kargo promotion from Artifact Registry. - Ingress:
polygon-toolsEnvoy gateway (*.polygon.tools, Cloudflare-proxied, Cloud Armorrestrict-to-cloudflare). Primer keeps its own Okta OIDC; external share links,/mcpand bearer API stay reachable. - DB: Cloud SQL Postgres 18 (backup is pg 18.6).
- Storage: GCS bucket via Workload Identity.
- Secrets: GCP Secret Manager via ESO (
secretsFrom). FreshOKTA_CLIENT_SECRET,MAILGUN_API_KEY, DB password — never reused from Railway.
Work
Primer repo (sub-issues)
- Container image + Artifact Registry release workflow
- GCS storage backend
- Readiness endpoint that checks the DB
- Cutover runbook + post-restore credential purge
Platform / other repos (platform team)
-
polygon-infrastructure: add0xPolygon/primerto the shared-prod WIF push allowlist -
polygon-infrastructure: Cloud SQL PG18 instance + db/user, GCS bucket, GSA withcloudsql.client+ bucket object admin, Workload Identity binding for KSAprimer/primer, Secret Manager entries -
dry-dock:applications/web-apps/primer.yaml,source/web-apps/common/stages/production/primer.yaml,kargo/projects/web-apps/primer.yaml; HTTPRoute request timeout disabled/raised for SSE (/api/events) - Okta: new OIDC client, redirect
https://primer.polygon.tools/auth/callback - Mailgun: revoke old key, issue new one into Secret Manager
Cutover
- Restore DB + storage, run post-restore purge, verify
- Smoke test (login, view doc, comment, SSE, MCP OAuth, external share link)
- Announce new URL; old
primer-polygon.up.railway.applinks will not redirect - Decommission Railway project with platform team (keep domain reserved until then), remove registered SSH key, revoke CLI token
🤖 Generated with Claude Code
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 1
- Avg merge
- 13h 38m
- Merged PRs (30d)
- 24
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 0xPolygon/primer
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Feature: @-mention people and agents in documents and comments; a mention notifies and subscribesOpen
Difficulty 5/5 Over a week Newbie friendliness 18/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
0xPolygon/primer#185 · 1 comment ·
Maintainers usually reply within 1 day
All issues in 0xPolygon/primer
Similar issues
-
P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug L3 level 1 needs-review wocs
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
SatyamPandey-07/WorkSphere#10739 · 1 comment ·
Maintainers usually reply within 1 day
-
maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
assistant-ui/assistant-ui#10946 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:auth-provider issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openclaw/openclaw#206303 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day