Skip to content

Add migrator to the outbound HTTP proxy example - #975

Merged
marcleblanc2 merged 1 commit into
mainfrom
marc/migrator-proxy-env
Oct 21, 2026
Merged

marcleblanc2 merged 1 commit into
mainfrom
marc/migrator-proxy-env

Conversation

@marcleblanc2

Copy link
Copy Markdown
Contributor

Why

migrator was left out of the outbound-http-proxy example on the assumption that it only talks to Postgres. It does not. On current main of sourcegraph/sourcegraph, the drift, upgrade, and downgrade commands each run, before touching the databases:

  1. isAirgapped: HEAD https://storage.googleapis.com/sourcegraph-assets/migrations/drift/... (3 s timeout)
  2. If that succeeds, checkForMigratorUpdate: GET https://releaseregistry.sourcegraph.com/v1/releases/sourcegraph/latest (3 s timeout). If a newer migrator exists and -ignore-migrator-update is not set, migrator exits 1.

drift also fetches the expected schema from storage.googleapis.com when it is not baked into the image.

All of these go through Go's http.DefaultClient, so HTTP_PROXY / HTTPS_PROXY / NO_PROXY apply.

The default up command makes none of these calls.

What

Add migrator to the example override with the same *proxy-env-vars anchor as frontend and worker, with a comment saying which commands reach out and where.

Test plan

  • helm template sg charts/sourcegraph -f charts/sourcegraph/examples/outbound-http-proxy/override.yaml: the migrator initContainer renders HTTP_PROXY, HTTPS_PROXY, NO_PROXY and keeps DEPLOY_TYPE=helm and all PG* vars
  • helm lint with the override: clean
  • ./scripts/helm-docs.sh: no README changes

migrator's drift, upgrade, and downgrade commands call
releaseregistry.sourcegraph.com and storage.googleapis.com before touching
the databases. Route them through the proxy alongside frontend and worker.
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

@marcleblanc2
marcleblanc2 merged commit 1fcf351 into main Oct 21, 2026
6 checks passed
@marcleblanc2
marcleblanc2 deleted the marc/migrator-proxy-env branch October 21, 2026 21:50
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