I’ve been a developer for years, and releases are a regular part of my job. Before Heyo, though, I’d never handled a deployment from start to finish on my own. At work, the DevOps team took care of it. On personal projects, a friend of mine always looked after the server. This time I deployed the site myself. If something odd shows up on the server, I’m the one who has to figure it out.
After launch, what I most wanted to know was whether one CPU core and two gigabytes of RAM would be enough. One of the first surprises came from the email logs.
Where did the suspicious signups on a brand-new site come from?
I noticed confirmation emails going out to addresses I didn’t recognise. I checked the database and found three suspicious accounts. When I looked, none of the three had a verified email address. Until then, I’d been looking at the “Delivered” status and wondering who these people were and how they’d found my site so soon. It dawned on me how little I knew about who was behind those signups. “Delivered” just meant the receiving mail server had accepted the message. Anyone could type someone else’s address into the form.
I added Cloudflare Turnstile to signup, login and password reset. The server checks the result, so skipping the form and sending a request directly is no longer enough. When I opened the dashboard the next morning, I counted 38 checks across the three forms. There were 12 for signup, 12 for login and 14 for password reset. Nobody had passed any of them. No new accounts had appeared in the database between the time I turned Turnstile on and the time I checked that morning.
Eventually I got around to the server logs. Someone was asking for /.env, /.git/config and /.aws/credentials. Developers sometimes leave settings and access keys in those files. Even wp-config.php was on the list. Heyo doesn’t run WordPress.
That genuinely surprised me. I knew bots scanned websites. Somehow I’d imagined my project would have to find an audience and get its name out there before it attracted that kind of attention. I hadn’t even worked out how many regular visitors my little server could handle, and someone was already looking for AWS keys on it.
I started following those requests to see what happened to them. I configured Caddy to return an empty 404 straight away for known paths like those. Why make the app render a page when someone asks for a config file that isn’t there? Then I put Cloudflare in front of the VPS so it could stop some of those requests before they reached the server. I also blocked direct web access to the VPS by IP address. Otherwise, anyone could just go around Cloudflare.
A few days later, at 06:37, a single scanner tried hundreds of paths in five seconds. Cloudflare blocked ten of its requests. Another two hundred reached the app. I checked all two hundred paths against the site’s public directory. None matched a file there, and I found no sign in the logs that any data had leaked. CPU usage averaged about 11% over the ten-minute window that included the scan.
So the answer to my original question was pretty simple. One core and two gigs of RAM are enough for the traffic Heyo gets today. What I didn’t expect from handling the deployment myself was to spend those first few days figuring out who was requesting password resets, how little a “Delivered” email tells me about a user, and why someone was looking for WordPress on a site that doesn’t use it. I have a much better idea now of what my DevOps colleagues and my friend had been taking care of all these years.
Comments · —
Newest firstLoading comments…