DevOps for Juniors · Set-It-and-Forget-It · Silent Saboteurs
Silent Saboteurs: 5 Set-It-and-Forget-It Habits That Break Your Projects
You set it up once, you trusted it, and then it quietly broke something. That is the set-it-and-forget-it trap, and it causes a surprising share of strange outages: a CORS header that lets the wrong website read private data, a TLS certificate that expired on a forgotten subdomain, a single-page app that 404s on refresh, an AI coding agent that renames a field and breaks your API. This guide walks through five of these silent saboteurs, shows you how to spot each one, and gives you the exact fix — with copy-paste commands and a runnable script.
At a glance
- “Set-it-and-forget-it” means configuring something once and never checking it again — until it breaks.
- The five habits: open CORS, unmonitored TLS renewal, missing SPA fallbacks, unsupervised AI agents, and a generic professional summary.
- Each one is cheap to fix and expensive to learn about from a customer.
- You do not need senior permission to fix them: a curl command, a cron job and a redirect rule are enough.
- The habit that prevents all five is the same: verify from the outside, automatically, on a schedule.
The quiet Tuesday that explains everything
I still remember the cold sweat. It was a quiet Tuesday afternoon, and the only signal was a single support ticket: “the app says ‘forbidden’ sometimes.” Nothing else was down — no red dashboards, no alerts. The team spent six hours tracing microservice calls, checking database connections and staring at logs.
The culprit was a forgotten subdomain whose TLS certificate had quietly expired. Auto-renew was “enabled everywhere” — except on a manual certificate issued for a legacy internal tool that had quietly started receiving production traffic.
No zero-day. No sophisticated attack. A simple oversight, amplified by the assumption that because we set it up once, it must still be fine.
That is the whole lesson of this guide in one story: the most dangerous problems are not the loudest ones. They are the ones we stop checking.
What “set-it-and-forget-it” really means
We all love automation. It removes toil and lets us focus on real engineering. But automation has a side effect: it hides the thing it automates. Once a certificate renews itself, nobody looks at certificates. Once a pipeline deploys itself, nobody looks at the deploy. That is how blind spots form.
This is not a criticism of the tools. It is a description of their limits. Every automated system has edges where it can fail, and those edges are exactly where a quiet failure will sit unnoticed.
The bottom line: automation reduces manual toil, but it raises the stakes on the human checks you keep.
Habit 1 — CORS: the bouncer that lets anyone in
What CORS is. CORS stands for Cross-Origin Resource Sharing. An “origin” is the combination of scheme, domain and port — for example https://app.example.com. Browsers use CORS to decide whether a page loaded from one origin may read responses from another origin’s API.
What goes wrong. Think of CORS as the bouncer at a private club. The dangerous configuration is when the server reflects whatever Origin header it receives and also sends Access-Control-Allow-Credentials: true. That is the bouncer writing whatever name you give them onto a VIP pass. A malicious page can then trick a logged-in user’s browser into calling your API, read the private response and steal the data.
Developers usually create this bug by accident: a wildcard (*) is not allowed for authenticated requests, so they echo the caller’s origin instead, and they need several frontends to reach the API.
How to check whether you are vulnerable
You do not need a browser for discovery. Send a request with a fake Origin header and look at the response headers. If your fake origin comes back and credentials are allowed, that is the smoking gun:
curl -s -o /dev/null -D - https://api.example.com/api/me \
-H "Origin: https://evil-attacker.test" | grep -i '^access-control\|^vary'
Try it: run that command against your own API with Origin: https://example.com. If the response contains access-control-allow-origin: https://example.com and access-control-allow-credentials: true, you have a reflected-origin bug.
Common patterns to look for:
- Reflected origin: the server echoes
Origintogether withAccess-Control-Allow-Credentials: true. - Trusted null: allowing
Origin: nullfor local development, which sandboxed iframes can exploit. - Broken origin matching: a regex that matches
example.com.evil.testbecause it only checks forexample.com. - Trusting weaker origins: allowing
http://or a subdomain that could host an XSS payload.
The bottom line: never trust the Origin header. Validate it against an exact allowlist, and add Vary: Origin so caches do not serve the wrong header to the wrong caller.
Habit 2 — TLS certificates: auto-renew is not a promise
“We use Let’s Encrypt with auto-renew, so certificates are not a problem anymore.” Auto-renewal is genuinely good — it just trades loud, frequent problems for quiet, rare ones.
The outage in that story was not the main domain. It was a ghost subdomain connected to a legacy tool only a couple of people remembered. Its certificate renewed on disk, but the service was never reloaded, so it kept serving an expired certificate for weeks.
How auto-renewal fails quietly:
- The renewal job fails and nothing alerts on the failure.
- The certificate is renewed, but the server or load balancer is never reloaded.
- A forgotten subdomain still has a manually issued certificate.
- Different backends behind one load balancer serve different certificates.
So the rule is simple: do not check the certificate files; check what the hostname actually serves to the public.
A script that checks the certificate the public actually sees
Save this as certcheck.py and run it daily. It connects like a browser would, so it catches exactly the failures auto-renewal misses:
#!/usr/bin/env python3
"""certcheck.py - report the TLS certificate a hostname actually serves."""
import socket, ssl, sys
from datetime import datetime, timezone
WARN_DAYS = 21
TIMEOUT = 10
HOSTS = [("example.com", 443), ("www.example.com", 443)]
def check(host, port=443):
ctx = ssl.create_default_context() # verification ON
with socket.create_connection((host, port), timeout=TIMEOUT) as sock:
with ctx.wrap_socket(sock, server_hostname=host) as tls:
cert = tls.getpeercert() # raises if the cert is bad
protocol = tls.version()
expires = datetime.fromtimestamp(
ssl.cert_time_to_seconds(cert["notAfter"]), tz=timezone.utc)
issuer = dict(x[0] for x in cert["issuer"]).get("organizationName", "?")
days = (expires - datetime.now(timezone.utc)).days
return days, expires, issuer, protocol
def main(hosts):
problems = 0
for host, port in hosts:
try:
days, expires, issuer, protocol = check(host, port)
except (socket.timeout, socket.gaierror, ssl.SSLError, OSError) as exc:
print(f"FAIL {host}:{port} {type(exc).__name__}: {exc}")
problems += 1
continue
flag = "FAIL" if days < 0 else ("WARN" if days <= WARN_DAYS else "OK ")
print(f"{flag} {host}:{port} {days}d {expires:%Y-%m-%d} {issuer} {protocol}")
if flag != "OK ":
problems += 1
print(f"\n{len(hosts)} host(s) checked, {problems} problem(s).")
return 1 if problems else 0
if __name__ == "__main__":
targets = []
for arg in sys.argv[1:]:
host, _, port = arg.partition(":")
targets.append((host, int(port) if port else 443))
sys.exit(main(targets or HOSTS))
Try it: python certcheck.py example.com prints the days remaining and exits 0. Point it at a host with an expired certificate and it exits 1 — which is what you want from a cron job. Then wire it into cron or CI so the alert reaches you before users do.
The bottom line: check the certificate the hostname serves, not the one on disk. Automate that check.
Habit 3 — SPA deep links that 404 on refresh
What a SPA is. A single-page application (React, Vue, Angular, Svelte) loads one HTML file and then changes the page in the browser using a client-side router. The server only ever really serves index.html plus static assets.
What goes wrong. Clicking around inside the app changes the URL without asking the server. But when someone refreshes /settings/profile, or opens a shared deep link, the browser sends that full path to the server — and the server has no file called settings/profile. Result: 404.
The fix is one rule: any path that is not a real file should serve index.html. The router then reads the URL and renders the right view.
The fix, per host
| Host | What to add |
|---|---|
| Nginx | try_files $uri $uri/ /index.html; |
| Apache | FallbackResource /index.html |
| Netlify | A _redirects file containing /* /index.html 200 |
| Vercel | vercel.json with a rewrite from /(.*) to /index.html |
| Amazon S3 | Set the static-site error document to index.html |
| GitHub Pages | Commit a custom 404.html |
Try it: deploy, then open a deep link in a fresh tab. If you see your app instead of a 404, the fallback is working. Add a link checker to CI so it stays working.
The bottom line: a server-side fallback to index.html is the whole fix. It is one line on most hosts.
Habit 4 — AI coding agents that drift from the contract
AI coding agents are a developer’s dream: “just tell me what to do and I will handle the rest.” The risk is drift — small, plausible-looking changes that accumulate into a broken contract: a renamed field, an optional value that became required, a status code that changed. Each one looks harmless. Together they produce an API that no longer matches what consumers expect.
The frustrating part is that the agent’s summary tells you the task is complete, not that it broke the contract. So do not rely on the summary. Build a fence.
The fence is your API contract — usually an OpenAPI specification — enforced by CI. The agent works inside the fence, and the fence does not move.
- Isolated branches. The agent never commits directly to
main. - OpenAPI is the source of truth. The task is tied to the contract, not to a vague description.
- CI scenario assertions. Start the service, then send the ordered requests the spec defines and check status codes, required fields and response shapes.
- Block on failure. If an assertion fails, the merge is blocked and the failure is fed back to the agent.
- Human review for what the gate cannot see. Intent, performance, security and edge cases.
Try it: take one endpoint, write its OpenAPI operation, and add a CI step that calls it and asserts the response shape. That single gate catches most drift.
The bottom line: an agent’s summary reports task completion, not contract adherence. The contract enforced in CI is the rulebook.
Habit 5 — the generic professional summary
This one is not technical, but it is the same failure mode: you set it once and never check it. A generic summary focuses on what you like to do rather than what the job description needs. Recruiters and applicant tracking systems skim, and a mismatch in the first sentence is enough to be skipped.
The formula: [Job Title] with [X years] of experience in [specialization]. [Key achievement with a metric]. [Secondary strength or focus].
Example. Job posting: “Backend Engineer, Microservices & Distributed Systems.”
- Before: “Full-stack software engineer with 8 years of experience building scalable web applications.”
- After: “Backend engineer with 8 years of experience designing scalable microservices in distributed systems.”
Same person, same experience — but the second version echoes the posting and signals fit immediately.
The bottom line: your summary is not about you; it is about the job. Tailor it, and keep the achievement measurable.
Old habits vs. smart automation
The five habits share one root cause: a check that was done once instead of continuously. Here is the side-by-side.
| Area | Set-it-and-forget-it | Smart automation |
|---|---|---|
| CORS | Wildcard or reflected origin; manual scans | Exact allowlist; automated origin probes in CI; Vary: Origin |
| TLS certificates | Rely on auto-renew; check files internally | External active checks (script or service); cron or CI alert |
| SPA deep links | Unhandled; server returns 404 | Server-side index.html fallback; link checker in CI |
| AI agents | Unsupervised; trust the summary | Contract-driven CI gate; isolated branches; human review |
| Professional summary | One generic version everywhere | Tailored per role; echoes the posting; quantified achievement |
The bottom line: the goal is not more automation. It is automation that is guardrailed and verified from the outside.
What to do on Monday morning
You do not need a big programme for any of this. Four small actions:
- Probe your CORS. Run the
curlcommand from the CORS section against every API you own. Fix any reflected origin today. - Run
certcheck.pyonce. Add your hosts, run it, then schedule it daily. The first run usually finds something. - Add the SPA fallback. One line on your host. Test a deep link in a fresh tab.
- Pick one API contract. Write the OpenAPI operation and add one CI assertion. That is the fence.
That is the whole programme. Each item is under an hour, and each one removes a silent saboteur.
Frequently asked questions
What does set-it-and-forget-it mean in software?
It means configuring something once and assuming it keeps working: a CORS rule, a certificate auto-renewal, a redirect, a pipeline. The setup is fine, but nothing checks it afterwards, so a quiet change breaks it.
What is a CORS misconfiguration?
CORS controls which websites may read your API from a browser. A misconfiguration usually means the server reflects any origin back and allows credentials, so a malicious page can read private data using a logged-in user’s cookies.
Why does my single-page app show 404 on refresh?
Client-side routing changes the URL without asking the server. A refresh sends that path to the server, which has no file for it. The fix is a fallback that serves index.html for any path that is not a real file.
Does auto-renewal stop TLS certificates expiring?
No. Renewal can fail silently, the renewed certificate may not be reloaded by the server, and forgotten subdomains may still hold manually issued certificates. Check what the hostname actually serves, not the files on disk.
How do I stop an AI coding agent from breaking my API?
Treat the OpenAPI specification as the source of truth and enforce it in CI: run the service, send the ordered requests the spec defines, and block the merge if status codes, required fields or response shapes change.
How do I check my CORS headers are safe?
Send a request with a fake Origin header and look at the response. If your origin is echoed back together with Access-Control-Allow-Credentials: true, and the endpoint returns private data, the configuration is unsafe.
Why does my professional summary count as a silent saboteur?
A generic summary is reused everywhere and matches no job description, so both recruiters and applicant tracking systems skip it. Tailoring the summary to the role is a small edit with a measurable effect on callbacks.
The short version
Set-it-and-forget-it is a reasonable instinct and a quiet liability. Five habits cause most of the damage: an open CORS policy, an unmonitored certificate renewal, a missing SPA fallback, an unsupervised AI agent, and a generic professional summary. Each has a one-line fix and a cheap automated check. Do the four Monday-morning actions, and the next emergency fix becomes a lot less likely.