Federation deployment refactor - #347
Merged
Merged
Conversation
mjcurran
approved these changes
Sep 21, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8fe6892. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Added scripts for streamlining federation initialization and testing flow, added templates for site/peer configuration, network config refactor
Note
Medium Risk
Changes production edge routing (Traefik split) and how federation sync URLs/secrets are injected; misconfiguration could break
/syncor peer TLS, but runtime sync logic is largely unchanged.Overview
Adds automated federation site onboarding so operators can stand up sync in production or local lab without hand-editing many files. New
justrecipes (federation-onboard,federation-render-config,federation-doctor,federation-add-peer) drive scripts that render gitignoredsite.env,federation.toml, gateway federation keys indjango.env, and optional per-site Traefik/syncdrop-ins from templates; the onboard flow runs doctor checks, ensures gateway secrets andinit_federation_sync_token, builds/starts sync, probeshttp://127.0.0.1:8001/sync/health, and prints peer handoff TOML.Production compose now loads
./site.envinstead of hardcodingGATEWAY_INTERNAL_BASE_URL,FEDERATION_SYNC_SERVICE_URL, andREDIS_URLincompose.production.yaml. Peer adds append[[peers]]and restart sync; re-render merges extra peers and preservesca_cert_pathby FQDN.Traefik dynamic config moves out of the monolithic
traefik.tomlintonetwork/traefik/conf.d/(TLS, gateway HTTP, federation sync routers); compose mounts that directory. Wizard-generated*-sync.tomlfiles are gitignored except tracked ND routes in00-federation-sync.toml.Docs/README are rewritten around the wizard path; pytest covers doctor, template render,
site.envquoting, and TOML peer merge. Test fixtures insample_data.pynow populate fuller RFC-shaped federated docs.Reviewed by Cursor Bugbot for commit 8fe6892. Bugbot is set up for automated code reviews on this repo. Configure here.