Migration Day Isn't Migration Done
Cutover is an event. Making behaviour explicit and verified is a process. What nginx accumulated in config over years does not move itself when you replatform.
On the day we cut Forge over to the new edge architecture, everything went cleanly. TLS handshakes, site lookups, deploys, cache headers, SPA fallback. The things we had tested were working.
The following morning, scanner traffic that the previous nginx configuration had been silently dropping for years started reaching the origin.
This post is about what that incident means, not about the incident itself. It was not a security breach. It was not a customer-facing problem. But it was an excellent illustration of something that matters every time a mature system gets modernised: cutover is an event, and making behaviour explicit and verified is a process. Those are different things, and confusing them is how migrations produce surprises that the people who ran them did not expect.
What the edge looked like before
The Forge edge before modernisation was nginx running on Cloud66, with a Node 10 forge-server behind it handling Forge-specific routing.
nginx was doing several things at once. TLS termination. CDN caching. SPA fallback for single-page application routing. Redirect rules. MIME type handling. Header manipulation. And, it turned out, a collection of bot-filtering and scanner-blocking rules that had accumulated over years of operational responses to various kinds of unwanted traffic.
None of that is unusual. nginx configurations on production systems that have been running for a long time tend to accumulate behaviour reactively. A scanner starts hammering a path. Someone adds a rule to drop it. A crawler causes noise in the logs. Another rule. A particular class of request creates a load pattern that causes problems. The configuration grows to address it. Over time, the nginx config becomes a record of production incidents rather than a specification of intended behaviour.
The Node 10 forge-server behind nginx handled the Forge-specific layer: looking up which deploy was live for a requested site, finding the correct file in storage, applying Forge-configured cache-control headers, returning the right response.
Two layers, each handling different responsibilities, with years of accumulated behaviour in both.
The decision: replatform
The decision framework we described in post 2 produced a replatform verdict for the edge. Not because nginx was broken, but because the generic responsibilities it was carrying — TLS, CDN, certificate management, WAF — were things managed infrastructure now handles well, and running nginx ourselves created operational overhead that no longer needed to be ours.
The verdict separated what is generic from what is particular.
Generic: TLS termination, certificate provisioning, CDN distribution, WAF baseline filtering. These belong to managed infrastructure. A CDN with managed TLS and a WAF ruleset is not a gap; it is the correct place for that responsibility to live.
Particular: Forge-specific routing. Looking up which deploy is live. Resolving site configurations. Cache-control headers calibrated to how Forge deploys work. SPA fallback for sites whose routing is determined by client-side code. Password protection applied per-site. These belong to forge-server — the Forge-specific middleware layer.
The Node 10 forge-server became a Node 22 rewrite. Faster, with better tooling, and with the generic responsibilities lifted off it. What remained was cleaner: a middleware layer that does exactly what Forge needs and delegates everything else to infrastructure that is better suited to providing it.
What managed infrastructure does and does not do
A managed CDN with WAF is not a replacement for an nginx configuration that has been tuned over years. This is the part that is easy to underestimate.
Managed WAF rulesets cover well-known attack patterns. The OWASP top ten. Known bad actors. Common injection attempts. These are addressed in the defaults.
What they do not cover automatically is the long tail of operational responses that accumulated in your specific nginx config over years of running a specific product. The rules that were added because this particular kind of scanner caused this particular kind of load on this particular infrastructure. The bot that got banned because it was hammering a specific endpoint. The request pattern that someone decided to drop in 2021 for reasons that may or may not have been documented at the time.
That behaviour was real. It was doing something useful. And it was not written down anywhere as a product requirement, because it was added as an operational response to a production event, not designed as a feature.
This is what we mean by implicit behaviour.
August 21: the incident that was not an incident
The day after the Render cutover, scanner traffic started reaching the Forge origin.
The managed edge applied its default WAF ruleset. The default ruleset handled the well-known patterns. The long-tail of scanner traffic that the nginx configuration had learned to drop over years was not covered by the defaults.
So it arrived at origin.
Observability made this visible quickly. We could see the traffic pattern, understand what was happening, and start addressing it. The response was to explicitly configure the managed edge to handle the traffic patterns that nginx had handled implicitly. The work required someone to actually read the old nginx configuration and understand what each rule was doing. That turned implicit, undocumented, operational behaviour into explicit, documented, configured behaviour on the new infrastructure.
That is, in some ways, a better outcome than what we had before. The nginx rules had been real but unreviewed. The new configuration is explicit and understood. But it required post-cutover work that we did not anticipate fully, because we had not audited the implicit behaviour of the old system comprehensively enough before the migration.
Behaviour archaeology
The broader lesson is about what a migration audit needs to cover.
An architecture diagram shows you what a system was intended to do. A production system that has been running for years often does more than that — and the difference lives in nginx configs, database triggers, firewall rules, cron jobs, SSL renewal scripts, and load balancer configurations. Real behaviour that the system depends on, accumulated as operational responses to production events, and not documented anywhere except the running system itself.
We called this "behaviour archaeology" when working through the edge migration. Reading the nginx config not to understand the intended architecture but to understand what behaviour had accumulated there over time. Diffing access logs before and after migration to catch changes in request patterns. Comparing response headers between old and new stacks. Running synthetic monitoring against all known paths.
The tools exist to do this work. What they require is time and the explicit intention to look for implicit behaviour, not just to verify that the intended architecture is working.
The Rails post in this series describes a year of preparation that made a two-day execution window possible. Much of that preparation was the same kind of archaeology: dependency audit, JSON contract validation, test coverage, background job behaviour tracing. The pattern is consistent. You cannot compress the audit into the execution window. If you have not surfaced the implicit behaviour before cutover, you surface it after.
What moved where
It is worth being precise about what the new architecture looks like, because the narrative of "nginx replaced by Node" is not right. nginx was not replaced by Node; Node already existed behind nginx. What changed is the distribution of responsibilities.
Managed infrastructure now handles: TLS termination and certificate provisioning, CDN distribution, WAF baseline filtering, global points of presence.
forge-server (Node 22) now handles: Forge site lookup, deploy resolution, storage retrieval, cache-control header logic, SPA fallback routing, password protection.
The password protection capability is worth noting separately. In the nginx era, per-site password protection required nginx configuration changes — an operational overhead that made it awkward to offer as a product feature. In the forge-server middleware layer, password protection is part of the request-handling pipeline. The middleware checks the deploy configuration for a password requirement and either serves the content or returns the password prompt. This is product-layer control rather than infrastructure-layer control. The new architecture enables it cleanly in a way the old architecture did not.
The principle
Migration day is when the new infrastructure takes traffic. Done means when you have verified that all the behaviour the old system was providing is accounted for in the new one — documented, tested, and deliberately placed where it now lives.
For a system that has been running for a long time, those two moments are rarely the same day.
The gap between them is not a failure mode. It is what happens when implicit behaviour exists, which it always does in mature systems. The question is whether you surface it before cutover through deliberate archaeology, or after cutover through production observation. Both work. The former is less stressful.
What you cannot do is assume that reproducing the intended architecture automatically reproduces every useful behaviour the old system had accumulated. The intended architecture is what was designed. The running system is what was designed plus everything that happened to it since.
Where this sits in the series
This is the last of the execution posts. The Rails upgrade covered how to make a large framework migration safe to execute. Hammer Cloud covered why the execution model itself needed to change, not just the version running it. The CLI rewrite covered what a platform interface looks like when humans, CI, and agents are all first-class callers.
Each of those posts is a worked example of the decision framework from post 2: understand where the value lives, then decide what to do with it. For the edge, the value lived in two places. The generic operational work belonged to managed infrastructure. The Forge-specific behaviour belonged to forge-server. Making that distinction explicit was the replatform decision. Verifying it under production load was what continued through August.
The next post closes the circle. The methodology that structured this programme — the way we turned the technical DD lens on ourselves, mapped the value distribution, designed migration boundaries, and executed track by track — is what we are capturing as a Gleo Playbook.
Forge is Beach's web deployment platform. This post is part of a series on how we modernised the platform to serve as the foundation for Gleo and the next chapter of Beach.