r/devops • u/kUdtiHaEX • 9h ago
Security How we manage vulnerabilities across ~90 apps: base images, Trivy, Dependency-Track and VEX policies in git
r/devops • u/kUdtiHaEX • 9h ago
r/devops • u/NoDevelopment206 • 20h ago
we all write runbooks for the scary stuff like failovers, restores and cert issues. but systems change and nobody goes back to update them, so half the steps point to things that dont exist anymore.
do you test them on a schedule, tie them to alerts, keep them next to the code, or just fix them after they bite you? curious if anyone has a setup that actually works
r/devops • u/DirectSlice7678 • 4h ago
r/devops • u/ahmedshahid786 • 12h ago
TL;DR: Running a Dockerized Node.js backend on a single EC2 instance with Nginx, blue-green deployments, and SSH-based CI/CD. Serving 20–30K DAUs comfortably. Looking to improve security, filter junk traffic, and adopt better deployment practices without unnecessary complexity.
Current architecture:
- Single EC2 instance with a public IP.
- API domain resolves directly to the instance's public IP (which doesn't feel right).
- Nginx and Node.js backend run in Docker on the same network.
- Port 443 is publicly accessible and mapped to Nginx.
- GitHub Actions connects via SSH, pulls the latest image from Docker Hub, starts the inactive container, waits for the health check, switches Nginx traffic, and stops the previous container.
- Frontend builds are deployed to S3 and served through CloudFront.
- Self hosted Prometheus and Grafana on a separate instance.
Blue-green deployments work well with zero downtime. We rarely exceed 20 requests/sec, so scaling isn't currently a concern.
What I need advice on:
A little background:
I joined this company as a full stack engineer. When my company needed someone to handle DevOps, I volunteered despite having no prior DevOps experience. I learned along the way and built the current deployment and monitoring infrastructure myself.
Everything works well so far, but I want to understand what experienced DevOps engineers would do differently.
I want to do things right, not just make them work. I want to follow the best industry practices and I'm willing to embrace complexity where it's justified, but I don't want to engineer solutions for problems we don't have.
Would appreciate any advice, architectural suggestions, or resources.
r/devops • u/whowasntright • 23h ago
there is a weird split in agent engineering right now that i see. on social media, everyone demos flashy consumer agents booking flights and negotiating bills, even though real q3 numbers showed uber had roughly 320 million halloween-week trips with only 4 booked by agents and big banks are blocking external agent logins completely
meanwhile.... the quiet setups actually paying for themselves look painfully boring: small, narrowly scoped internal ops agents with strict verification gates. saw a small infrastructure team (voygr) share how running six focused internal agents against their own stack helped cut their aws spend by roughly 30% by hunting idle resources and noisy jobs, and the exact same design principle shows up in their real-world place data tools: instead of letting one big agent hallucinate across dirty directories, separate cheap pre-checks (validating whether a business even exists and looks open via a poi validation pass) from live narrow outbound calls (placecall or voygr only dial listed us businesses, states upfront at second zero it is an automated assistant on a recorded line, /importantly/ never sells anything, and bills only when a real staff quote answers the single question)
every production agent win i have seen this year follows the same boring rule which is: cut the blast radius down to one verifiable job, keep deterministic gates in front of expensive actions, and skip "autonomous do-everything" prompts
and i also would like to discuss what is the most boring internal agent, if any, currently saving your team real money or hours in production? what do you think of such an approach?
r/devops • u/DeathVader_21 • 6h ago
Got pulled into a production app on AWS (ECS Fargate, RDS, ElastiCache, CloudFront) after signups jumped about 15x in a day. The API slowed down at peak and the bill climbed fast. A few things I didn't expect:
Redis was the bottleneck, and a bigger node wouldn't have helped. The primary was at 70-87% EngineCPU because Redis runs on one main thread. The replica was at under 1%. The code already supported a reader endpoint, but the env var was never set. There were also cache invalidations doing full-keyspace scans, which we removed.
CloudFront bills for bytes delivered, and cache hits count. Adding cache headers doesn't lower the bill. Sending fewer bytes does.
We moved raw MP4 to HLS and raw video traffic dropped a lot, but total bytes only fell about 35%. Our first estimate was much higher. The next biggest source was audio: full-length tracks at around 200 kbps with no preview, so one popular track was downloaded thousands of times a day.
We also found that CPU-based ECS autoscaling can't start a service from zero tasks. For the encoding workers, we're looking at scaling on queue depth with Spot instead.
Questions for people who've done this: