Skip to content

deploy: make the insforge-signup broker durable across redeploys#80

Merged
Alexgodoroja merged 1 commit into
mainfrom
deploy/insforge-broker-durable
Jul 8, 2026
Merged

deploy: make the insforge-signup broker durable across redeploys#80
Alexgodoroja merged 1 commit into
mainfrom
deploy/insforge-broker-durable

Conversation

@Alexgodoroja

Copy link
Copy Markdown
Collaborator

setup-broker-tls.sh regenerated broker.conf with only location /, so any sidecar route (the signup broker's /insforge/signup) was silently dropped on every redeploy.

  • setup-broker-tls.sh now injects verbatim nginx location blocks from the broker-extra-locations instance-metadata key, before location / (literal — nginx vars are not bash-expanded).
  • startup.sh builds cmd/insforge-signup-broker and, guarded on the insforge-signup-env metadata key, installs its env + systemd unit and (re)starts it. No-op on VMs without that metadata.

A fresh deploy now reproduces the sidecar broker + its route from metadata instead of losing them. Verified on pilot-publish: regenerating broker.conf re-injects /insforge/signup and the signed endpoint keeps working.

setup-broker-tls.sh regenerated broker.conf with only `location /`, silently
dropping any sidecar routes (e.g. the signup broker's /insforge/signup) on every
redeploy. Now:

- setup-broker-tls.sh injects verbatim location blocks from the
  broker-extra-locations instance-metadata key before `location /`.
- startup.sh builds cmd/insforge-signup-broker and, when the insforge-signup-env
  metadata key is set, installs its env + systemd unit and (re)starts it — a
  no-op on VMs without that metadata.

So a fresh deploy reproduces the sidecar broker + its nginx route from metadata
instead of losing them.
@Alexgodoroja Alexgodoroja merged commit bfd44c7 into main Jul 8, 2026
6 checks passed
@Alexgodoroja Alexgodoroja deleted the deploy/insforge-broker-durable branch July 8, 2026 04:10
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.

1 participant