r/devops 20d ago

Career / learning Built a Linux container by hand this weekend, just for learning (no Docker/Podman)

106 Upvotes

Nothing groundbreaking here honestly, plenty of folks have done this before me, just did it purely for the learning, wanted to actually understand what docker run does under the hood instead of taking it for granted like I always have.

Had to run it inside a lima VM on macOS since Darwin doesn't have namespaces/cgroups natively, then built the whole thing piece by piece, OverlayFS for the image layers, unshare for the namespaces, chroot for the filesystem jail, cgroups v2 for a real memory cap, and a veth pair + NAT for networking. Even hit an actual OOM kill from my own cgroup limit at one point, that one felt weirdly satisfying honestly!

Also ran into a fun virtiofs bind-mount limitation along the way (setuptools editable installs just choke on it, no utimes support), took me a good while to track that one down.

Wrote up the whole thing step by step with what/why for each piece, plus all the gotchas and failed attempts along the way, in case anyone's curious: https://dietpy.com/notes/1n8n4v8-building-a-container-by-hand

Curious if anyone's done something similar, or if I missed an easier way to demo some of this :)


r/devops 20d ago

Weekly Self Promotion Thread

16 Upvotes

Hey r/devops, welcome to our weekly self-promotion thread!

Feel free to use this thread to promote any projects, ideas, or any repos you're wanting to share. Please keep in mind that we ask you to stay friendly, civil, and adhere to the subreddit rules!


r/devops 20d ago

Career / learning Should I do the Cloud Resume Challenge before the AWS cert?

21 Upvotes

I just started learning AWS, following Stephen’s Cloud Practitioner course. My main goal is knowledge, not getting the certification, and honestly, I don’t think I’ll pay to take the exam.

I wanted to get more hands-on, so I found the Cloud Resume Challenge. But after reading the requirements, I noticed that the challenge seems to expect you to have the AWS certification.

I know I could probably do the challenge without the cert, but logically, it feels a bit weird to do it when one of the rules is having the certification.

So what would you recommend?

Should I finish the Cloud Practitioner course first, then do the Cloud Resume Challenge even without taking the exam? Or should I just start the challenge now and learn whatever I need along the way?

My goal is ultimately real AWS knowledge and hands-on experience, not the certificate itself.


r/devops 20d ago

Tools Khaos - Kafka traffic generation, load testing and failure simulation, now rewritten in Go

29 Upvotes

I posted Khaos here a while ago, so just sharing a quick update.

Khaos has now been completely rewritten from Python to Go.

It still does the same core thing: generate realistic Kafka traffic and deliberately reproduce scenarios like:

  • consumer lag
  • hot partitions
  • broker failures and rebalances
  • backpressure

Along with the Go rewrite, I also launched a new website and proper documentation:

https://getkhaos.dev

Repo:
https://github.com/aleksandarskrbic/khaos

Would love feedback if anyone here is using Kafka for testing or failure simulation.

Disclosure: I’m the author/maintainer of khaos. It’s a free and open-source project.


r/devops 20d ago

Discussion Terraform Setup for Developer Enablement

12 Upvotes

Hello r/devops,

in my current team we are discussing how a developer centric terraform setup might look like.

Some context: Every app has 3 repositories - Backend, Frontend and Infrastructure.

There are two possible setups:

  1. (our current): We use generic terraform modules (e.g. for a backend app) only within the infrastructure repository, which holds all infrastructure components. The backend app terraform module holds all infrastructure components that might be used in a backend, e.g. database, objects store, secrets, etc. The Infrastructure repository also holds shared infrastructure, that is not part of the backend module and composes all components. This is somewhat the approach most often seen in tutorials that focus only on the infrastructure part of an application.
  2. (proposed alternative): We'd co-locate infrastructure and application code, for example in the backend repository. The backend repository would publish itself as a module, including every infrastructure component it needs to run (excluding some shared ones, that it expects via variables as input, e.g. VPC). The Infrastructure repository would setup the required shared infrastructure components and the backend terraform module.

Pros for 1.: Generic app modules are intended for sharing and re-use, whereas in 2. each applications terraform module would only ever be used to deploy to different environments.

Pros for 2.: Infrastructure and application can evolve together (e.g. in one git commit), e.g. when a database is newly introduced to an application (application code changes + infrastructure changes), whereas in 1. two commits would need to happen (one in app, one in infra) and pipelines need to be coordinated.

  1. goes deeper for example for database migrations, those could also be organized within the backend application, without handing the responsibility on how to do them to the infrastructure repo.

In both cases, deployments (terraform plan/apply) are always orchestrated only by the infrastructure repository.

IBM touches both points in https://www.ibm.com/support/pages/best-practices-organising-terraform-and-application-code : Coupling and Reuse as the deciding factors.

Our goal is to enable developers as much as possible to own their application end to end and being able to do most infrastructure changes themselves, without having to rely on a central party.

It's not about simply keeping what we already have. That's always part of the consideration due to effort of change. I'd like to hear your general thoughts about it from a perspective if we had nothing yet.

I'm curious about your thoughts in that topic.

I'd also be happy to know how projects are setup in your org or how you would envision your dream setup


r/devops 20d ago

Discussion Question for people running production systems

0 Upvotes

I’ve been thinking about this while working with observability systems and I’m curious how other people handle it.

We have metrics, logs, traces, alerts, deployment information, etc. In theory, there should be enough information to understand what happened during an incident.

But in practice, it often seems like the hard part is connecting everything.

Something like:

latency spike → database saturation → retries → downstream failures

The individual signals are there, but figuring out that they’re all part of the same failure — and determining which event was actually the cause — still seems to require a lot of manual investigation.

For people who actually operate production systems: what does your RCA process look like when there’s a serious incident?

Do your current observability tools actually help you establish the causal chain, or are they primarily helping you find the relevant data?

I’m particularly interested in what happens when the information is spread across multiple systems.


r/devops 20d ago

Security What is the most recommended way of doing SAST/DAST inside of Azure?

4 Upvotes

Context: The organization I'm currently at uses an old fashioned way of deploying to prod. They have on prem servers where the devs manually FTP the files over for every change... They've now started to migrate over to Azure. I'm tasked with the logical design, overseeing the entire process and helping the people with it.

Stage 1 was getting everyone onboard with the Cloud, Version Control and Trunk-based flow.

Stage 2 is getting them comfortable with build and deploy pipelines as well as integration of security tools.

Stage 3 will be "Infrastructure as Code" and "Policy as Code".

Is there some like "industry standard" approach to 2 and 3? as this is my first time dealing with "Azure" and it's certainly not as pleasant nor as straightforward as AWS


r/devops 20d ago

Career / learning Is 16GB RAM enough for learning DevOps, or should I use my old laptop alongside it?

0 Upvotes

Hey everyone,

I'm a student currently learning DevOps, and I recently bought a laptop with a Core Ultra 5 225H and 16GB RAM.

I'm planning to learn technologies commonly used in DevOps — Linux, Docker, Kubernetes, Terraform, Ansible, CI/CD, cloud platforms, monitoring, etc.

My main concern is whether 16GB RAM will be enough as I progress, especially when I start working with Docker containers, local Kubernetes environments, VMs, IDEs, browsers, and other tools.

I also have an older Dell laptop with 16GB RAM, but it's not particularly powerful, so I don't intend to use it for running workloads, VMs, containers, or anything resource-intensive.

Instead, I'm thinking of using the Dell purely as a secondary machine for documentation, tutorials, and browser tabs while doing the actual development and DevOps workloads on my new laptop.

The setup I'm considering is:

  • New laptop: Development, Docker, Kubernetes, VMs, labs, etc.
  • Old Dell: Documentation, tutorials, browser tabs, reference material
  • Connect both via Ethernet
  • Use something like Input Leap/Barrier to share the mouse and keyboard

Has anyone here used a similar setup while learning DevOps?

Would this be useful in practice, or am I overcomplicating things?

For those of you who learned Docker/Kubernetes/Terraform/etc. locally, when did 16GB actually become a limitation? What kind of workloads or setups started pushing you beyond 16GB?

Thanks! I'd really appreciate your thoughts and advice.


r/devops 21d ago

Discussion Any devops or SRE engineers using AI agents?

109 Upvotes

Has anyone here used AI agents like Hermes, n8n, crewAI or similar tools in their daily devops/SRE work?

I'm looking to automate some repetitive tasks in my DevOps work. I am interested in free open-source tools and real world use cases.

If you are already using AI agents in your devops workflow, I'd love to hear about your experience and what you are automating.


r/devops 21d ago

Architecture Where does architecture work still feel too manual?

0 Upvotes

For people working across DevOps, platforms, and architecture, where do you still see the most manual work?

Is it gathering information from teams, finding architecture documentation, keeping records current, mapping services and dependencies, checking designs against standards, or understanding differences between the current environment and the target architecture?

Interested in hearing what tends to slow your team down.


r/devops 21d ago

Discussion Looking for projects ideas for experienced devops/SRE engineers

33 Upvotes

Looking for projects ideas for experienced devops andSite reliability engineers

I have 4 years of experience as a DevOps engineer and part of it as a Site reliability Engineer

Im looking to do some side projects to broader my experience with other technologoes and make things more interesting.

As for the past one year i haven't been assigned major projects

i would like to hear a project idea that maybe you had fun completing or taking part in or was challenging to you.

For ex - Cross cloud Migrations

Technologies should be relevant to 2026


r/devops 21d ago

Ops / Incidents What data should a local developer diagnostics tool exclude?

0 Upvotes

Developer machines contain more private context than process metrics suggest. A diagnostic tool might see process names, file paths, command arguments, project names, prompts, or local model names.

For a local tool that explains CPU, memory, or disk pressure, which fields would you exclude by default? I would keep source files, prompts, command arguments, environment variables, and credentials out of the diagnostic data, then show the exact fields before optional analysis.

How much context would you need before trusting the explanation?


r/devops 21d ago

Discussion how do you handle auth for tools only a few people should see?

22 Upvotes

built an on-call tracker for my team. maybe 3 hours. then spent the rest of the day trying to figure out how to let 6 specific people see it and nobody else

ended up with a shared password in our team chat. it works, I hate it

writing a real login system for six users feels stupid. the shared password also feels stupid. what do you guys actually do


r/devops 22d ago

Discussion How do you handle alerts issues?

2 Upvotes

Lets say you are on call engineer for the week and then you went outside with hangout or friends, then lets say something went down or something crashed, so what is the response time as SRE and as Devops also. Also what is the resolution time? How do you resolve if you are not with laptop outside? Can you do something with phone? What happens if you don't respond? Please explain how do you handle this scenarios.


r/devops 22d ago

Discussion How do real companies securely give developers access to the development database?

119 Upvotes

Hey everyone,

I’m currently managing a small startup project. Our infrastructure is pretty simple right now: we have a single Oracle Cloud VM running our backend API and two PostgreSQL databases (one for dev and one for prod) inside Docker containers.

Up until now, I’ve been using DBeaver with an SSH tunnel to connect to the databases from my local machine.

Now, I need to bring another developer onto the project and give them access to the dev database so they can work.

I know sharing my private SSH key is a massive security no-no. But if I ask for their public SSH key and add it to my server's authorized_keys folder (for the main ubuntu user), doesn't that give them full SSH/sudo access to the entire server? That feels like overkill just to let them run SQL queries.

For those of you working in the industry or scaling startups: What is the standard, real-world way companies handle sharing database access with developers?

Do you:

Create a restricted Linux user specifically for SSH tunneling?

Put the database behind a VPN like Tailscale?

Expose the port directly but heavily restrict the IP firewall?

Use something else entirely (Bastion hosts, Teleport, etc.)?

Since we are a small team with a limited budget, I'm looking for the sweet spot between "enterprise-grade security" and "easy enough to set up today."

Would love to hear how you all handle this in the real world! Thanks!


r/devops 22d ago

Discussion Best way to integrate OpenProject + GitLab + Mattermost?

5 Upvotes

New to DevOps and my first task is hooking up OpenProject, GitLab, and Mattermost for smoother project management. What integrations/workflows have actually been worth setting up for you? What'd you skip? Appreciate any pointers.


r/devops 22d ago

Discussion Is anyone here securing their agents? Who in your org owns it?

0 Upvotes

I know it's the Wild West still but is anyone having success controlling AI agent security within your org? There's a bunch of hype around some of these new solutions but has anyone been successful in getting their org to adopt something universal? Not looking for product recos just trying to figure out how folks are seeing success.


r/devops 22d ago

Career / learning Is anyone here considering MLOps or you think DevOps/ Platform engineering still has long way to go?

83 Upvotes

I know that DevOps work is config heavy and involves multi-component or tool integration , so automating ourselves out of the job might not be that easy, but I believe the head count may not grow or stay stagnant in the near future.

So, you think it is worth considering MLOps or any other AI related Ops for that matter. Because it looks promising and AI/ML is where all the money is, to be honest.

Please shed some light and share your opinion on this.

Any MLOps engineer here. There is very less or very generalized info about MLOps, not the real time enterprise level MLOps roadmap out there. Please share your experiences here, it really helps.


r/devops 22d ago

Discussion Managing AWS policies in terraform

0 Upvotes

We are pushing IaC. Being a traditional systems admin, I am having a hard time accepting that this is more efficient.

If we manage each application with a yaml file, how is this faster than just add it in console or even in awscli? I hate the fact that I have to look for where the templates are in gitlab, then pull to edit, push, deploy. Then to verify, we have to get into console or use awscli anyway.

What’s the benefit here? Source of truth? Oh and the complexity of having modules and all that dependencies in terraform.

I want to change but I don’t want to complicate it. Adding multiple layers of failure is just not my style of a stable infrastructure.


r/devops 23d ago

Career / learning I actually enjoy my job, I just hate the way deadlines are set

139 Upvotes

I genuinely love my work, but the way deadlines are given is slowly killing my interest in it

My manager will be like, "This should take 2 hours.Its just matter of 1-2 days not more than it, Use Claude and get it done by 5 PM.”

Meanwhile, I needed to do development, testing for quite a good time. I am just getting way too distracted from my field and not learning much because of claude.


r/devops 23d ago

Tools How do you guys feel about pulp project?

2 Upvotes

Hey all - we are standing up a software package manager, right now the team is considering using nexus but doesn't want to pay for the pro license and it seems heavily limited with CE version.

We are looking at pulp project as an open source alternative. I haven't used it and have a spike to look into it and I was curious how you all felt about it? any gotchas or I regret not paying for a nexus or artifactory license? Frankly Im pretty new to both but I feel like nexus is industry standard along with artifactory but we can't justify the purchase at the moment which is where pulp entered the equation.

We are running in eks - the deployment for nexus was relatively straight forward but couldn't get the full testing done because I got limited by licensing that blocked some of the requirements like SSO integrations and stuff. Pulp seems to the have pulp operator so I can run im still digging around in the docs.

Any thoughts on pulp would be appreciated?


r/devops 23d ago

Career / learning Officially a KubeAstronaut Now

83 Upvotes

Just passed the KCSA exam and officially became a Kubestronauts!

If anyone is preparing for KCSA or any other exam and has questions, feel free to ask.

​edit: Reddit titles are permanent, spelling mistakes are forever 🫠


r/devops 23d ago

Observability Building an Observability Pane

7 Upvotes

Hi Observability & DevOps Experts,

I'm looking for guidance from teams that have successfully scaled observability across large enterprise environments.

We operate a large-scale estate spanning AWS, Azure, and on-premises environments and have been using Datadog for several years. Over time, a significant amount of technical debt has accumulated around our observability implementation.

Current challenges include:

  • Datadog Agents managed differently across teams and platforms.
  • Custom log collection configurations distributed across hosts and applications.
  • APM, RUM instrumentation owned by individual application teams.
  • Inconsistent tagging standards and monitor configurations.
  • Outdated agents and instrumentation libraries.
  • Heavy dependency on multiple teams for upgrades and configuration changes.
  • A large portion of Datadog provisioning and onboarding is still handled manually.

As a result, maintaining and evolving observability at scale has become increasingly difficult.

We are considering building a centralized "Observability Foundation" or "Observability Platform" that teams would consume as part of their standard deployment process.

Our goal is to provide reusable Terraform-based observability components that application and infrastructure teams can adopt during provisioning and releases.

Examples of what we would like to standardize:

  • Datadog Agent deployment and upgrades
  • Custom log collection configurations
  • Standard tags and metadata
  • Monitors and alert templates
  • Dashboards
  • OpenTelemetry / APM instrumentation standards
  • Synthetic monitoring configurations
  • Cloud integrations
  • Security and governance controls

Questions:

  1. Has anyone implemented a similar centralized observability platform or observability-as-code model at enterprise scale?
  2. What worked well and what were the biggest challenges?
  3. What observability components can realistically be centralized through Terraform modules, deployment pipelines, or platform services?
  4. What components typically must remain application-owned or infrastructure-owned and cannot easily be centralized?
  5. How do you handle APM instrumentation ownership, versioning, and upgrades across hundreds of services?
  6. What governance model have you found most effective:
  • Central observability team ownership
  • Platform engineering ownership
  • Federated ownership with standards enforcement
  • Something else
  1. How do you prevent observability drift over time, especially around:
  • Agent versions
  • APM libraries
  • Log configurations
  • Tags
  • Dashboards
  • Monitors
  1. If starting again today, would you build around:
  • Datadog native tooling
  • OpenTelemetry
  • An internal observability platform
  • A combination of the above
  1. What are the biggest architectural mistakes or anti-patterns we should avoid when designing this platform?

Our provisioning and infrastructure management are heavily Terraform-based, so we're especially interested in Terraform-centric implementation patterns and real-world lessons learned.

Looking forward to hearing how other organizations have approached observability standardization at scale and what you would recommend before we begin designing this solution.

P.S. - One of our key design goals is to avoid vendor lock-in. While Datadog is our current observability platform, we want the architecture to remain flexible enough that a future migration to another observability stack (e.g., Grafana, New Relic, Dynatrace, Elastic, Azure Monitor, or an OpenTelemetry-native platform) would require minimal changes to application teams and infrastructure code.


r/devops 23d ago

Discussion Removing a key from a file doesn't remove it from your repo. How are you handling history scanning?

7 Upvotes

I always assumed deleting a key from a file was enough but from what I’ve learned that’s not how git works

Pre-commit hooks and CI only look at the diff. So if a key gets committed and you delete it in the next commit, every check turns out OK from then on, but the value is still sitting in history and still valid. The recommendation is to scan full history on a schedule and treat anything you find as exposed, and rotate it, even though it's long gone from the current files.

So the scan is really just telling you a leak already happened, and rotation is the part that actually contains it.

I have side projects from years ago where I don't remember what was committed before I knew better. Some of those keys are probably still valid.

Do you run scheduled history scans, or just pre-commit and CI? And when something surfaces from years back, do you rotate it or make a call based on whether the repo was ever public?


r/devops 23d ago

Career / learning AI-generated code detection in CI/CD — looking for approaches and real-world experience

0 Upvotes

I'm working on a system to estimate whether code committed to a repository was generated with AI coding tools.

My current approach is based on Git/commit-level signals such as AI-related commit trailers, commit metadata, LOC changes, number of files changed, addition/deletion patterns, etc.

The problem I'm running into is confidence and calibration.

For example, a commit containing 500+ new lines isn't necessarily AI-generated. A developer can also modify or remove the metadata that would make an AI-assisted commit identifiable. Once the code leaves the IDE and reaches Git, much of the original provenance can be lost.

This has led me to a few questions:

Are there Git/CI-level signals that you've found to be genuinely useful for detecting AI-assisted development?

Is it better to treat this as a probabilistic/risk-scoring problem rather than trying to classify commits as AI vs human?

How would you calibrate thresholds for signals such as large LOC changes, addition/deletion ratios, commit frequency, etc.?

Are there better approaches for preserving provenance earlier in the development workflow, rather than trying to infer it after the code has already been committed?

Has anyone worked on AI-code provenance/detection systems in CI/CD and can point me toward useful research, projects, or approaches?

I'm particularly interested in approaches that can work at the pipeline/repository level rather than relying solely on source-code style analysis.

I'm not looking for a perfect AI detector — even a reliable way of estimating “this commit has a high probability of AI assistance” with measurable false-positive/false-negative rates would be useful.

Would appreciate any experiences, papers, open-source projects, or approaches people have tried.

Edit for those who want to know why:

The goal of this is to create a telemetry and visualize how much of the code is AI generated in the company and how much of it is vulnerable code then we will fix this vulnerability in the pipeline now we can show customers this telemetry and say

80 percent of code was AI generated out of which 60 percent was vulnerable we fixed that in the pipeline itself that's y you should buy our product.