How to migrate a system to the cloud without stopping operations
How to move a system to the cloud in stages, without service outages: strategies, data, parallel runs and a cutover with a way back, with a real case.
What is exposed, how to reach servers without opening them and how to learn about an error before your customer.
We put systems into production securely and keep them monitored. Between finished code and a system in use there are three questions worth answering before day one: what is exposed to the Internet, how you get into the servers without leaving them open and how you find out about an error before your customer does. For that we propose Cloudflare in front of the system, tunnels and firewalls to lock the servers down, and Sentry for errors; what goes into each system is decided project by project. The security of the application itself (permissions, sessions, other customers' data) is checked separately, with an OWASP audit and penetration tests.
The rule is simple: only the web and the API are reachable from the Internet, and only through a proxy that filters. Everything else stays closed: the database, Redis (the fast in-memory store the system uses), the admin panel and the server console. This is how a typical system looks:
| Part of the system | Open to the Internet? | How it's reached |
|---|---|---|
| Web and API | Yes, behind the proxy | Cloudflare, with a web application firewall and rate limiting |
| Admin panel | Only its entry address, which requires identity; the server takes no direct connections | With the company account and a second factor; from there to the panel, through the tunnel |
| Server console | No | Through a tunnel or AWS Session Manager, with port 22 closed |
| Database | No | Only from the API, inside the private network |
| Redis | No | From the API and authorized processes, inside the private network |
What gets forgotten most: a DNS record pointing straight at the server, bypassing the proxy. That record exposes the server's IP to anyone who looks it up and, if the server accepts direct requests, the IP lets it be attacked around the protections.
Cloudflare sits between users and your servers: it receives every request, filters it and only then passes it on. We set it up like this:

A Cloudflare tunnel turns the connection around: a small program on your server (cloudflared) connects out to Cloudflare and brings the requests in that way. The server needs no public IP and no open port, so the firewall can reject everything coming in. Each instance opens four connections to at least two data centers. With a second instance, if one goes down the other keeps serving, as long as it reaches a service that's working: that's tested route by route.
The admin panel stays on a private server. It's reached through a protected entry address: first the access rule is created, requiring the company account with a second factor, and the tunnel rejects any request that doesn't carry the token that rule issues. Every sign-in is logged. When someone leaves the company, their account is deactivated and their open sessions are revoked: deactivation alone leaves an existing session valid until it expires. The server console goes the same way or, on AWS, through Session Manager, which needs no open ports, bastion host or SSH keys. With its logging turned on, it records what was done in each of its own console sessions (not those that go through SSH or port forwarding).
Each server's firewall starts by closing everything and opens only what's needed: the database accepts connections only from the API, and Redis from the API and authorized processes. On AWS we do this with security groups, which allow nothing that isn't in a rule; accounts and networking are covered in AWS development and architecture.
An error in production that nobody reports keeps happening every day. Sentry collects the errors it captures in the web, the API or the app, and each one arrives with the context available: the file and line, the user's previous steps, the released version and how many people that issue affected. It doesn't see everything: what the code doesn't capture, what gets filtered or what goes over the plan's limit stays out. We set it up like this:

These are the rules we work by. What gets published, who gets in and whom each alert notifies are agreed with you and tested before go-live.
The cases don't detail which tools were used for this: this is what operations had to guarantee in each one.
| Starting point | What operations had to guarantee | Case |
|---|---|---|
| A regional Visual Basic and ASP Classic payroll engine that required Internet Explorer | Following a payroll run from the screen to the API, the queue and the engine, with alerts on errors, retries and timings; encryption, managed secrets, backups and audit logs | See the case |
| More than 300 companies clocking in with face recognition | Each clock-in image travels and is stored encrypted, and only users with permission at that company can see it | See the case |
It depends on how many systems and environments there are, whether they already run in the cloud or on your own servers, what has to be closed and who gets the alerts. The tools aren't usually the expensive part. Cloudflare has a free plan with denial-of-service protection and basic firewall rules. Sentry's free plan covers one person, one scheduled-job monitor and one uptime monitor, with email alerts; more than one scheduled-job or uptime monitor, or Slack alerts, already need a paid plan, even if one person runs it. The work is reviewing what's exposed today, closing it without interrupting the service and getting the alerts running. How we put the number together is in how to estimate a software project, and for your system, get in touch.
What sits in front, what stays closed and what alerts you when something fails.
Every request is filtered before it arrives.
Ver más →
The server connects out; nobody connects in.
Ver más →
Company account and a second factor.
Ver más →
Sentry, with no sensitive data.
Ver más →
If something doesn't respond or run, someone knows.
Ver más →
What goes wrong when a system goes online without closing what's extra or watching what fails.
The database, Redis or port 22 answer anyone on the Internet.
The server's IP is in plain sight and attacks arrive directly, unfiltered.
You learn about a failure when someone calls to complain, days later.
The backup or the invoice delivery didn't run and nobody noticed.
What's exposed today, how the servers are reached and what's being watched.
What gets published, what gets closed, who gets in and whom each alert notifies.
Proxy, tunnels, firewalls and Sentry, environment by environment, staging first.
Monitors, alerts with an owner and a review after every release.
It sits in front of the system: it encrypts traffic, stops known attacks with its web application firewall, rate-limits sign-in and the API, and absorbs denial-of-service attacks. Set up well, your server only serves requests that came through Cloudflare.
If the server receives traffic directly, Full (strict), with an origin certificate on your server. Flexible mode only encrypts between the user and Cloudflare: between Cloudflare and your server the data travels unencrypted. With a tunnel, it's encrypted up to the tunnel program on your server; from there to the service, on the same machine or over HTTPS with a validated certificate.
A small program (cloudflared) that runs on your server and connects out to Cloudflare to bring requests in. Because the connection starts from the inside, the server needs no public IP or open ports, and the firewall can reject everything coming in.
It can store whatever it's sent. So we configure what data it collects, filter cookies, authorization headers and sign-in forms before sending, and check it with a test using fake data; Sentry also masks fields such as passwords, tokens and card numbers on its side. Errors go to the chosen region (the United States or the European Union), though some monitor data may stay in the United States; if nothing can leave, it's installed on your own servers.
Yes. The server console is reached through a tunnel with the company account or, on AWS, through Session Manager, which needs no open ports or SSH keys and, with its logging on, records what was done in its own console sessions, not in those that go through SSH or port forwarding.
It depends on how many systems and environments there are and what's exposed today. Cloudflare has a free plan; Sentry's covers one person, one scheduled-job monitor and one uptime monitor; the work is reviewing, closing without interrupting the service and getting the alerts running. We quote it after a first conversation.
Tell us how it's published today and we'll tell you what to close first and what to watch.
Contact us