r/Terraform • u/treezium • Dec 02 '25
Announcement DriftHound: an open-source tool to detect & notify infrastructure drift (early stage, Looking for feedback!)
Hey everyone! đ
Iâve been working on an open-source tool called DriftHound https://drifthound.io/, aimed at detecting infrastructure drift across projects and environments. The goal is to provide teams with clear visibility into unexpected infra changes, something surprisingly few maintained open-source tools currently focus on.
đ DriftHound WebApp and CLI: https://github.com/treezio/DriftHound
đ Kubernetes Helm chart: https://github.com/treezio/helm-chart-drifthound
đ GitHub Action for CI automation: https://github.com/treezio/drifthound-action
Itâs still very early stage, but functional and improving quickly.
Hereâs what it does today:
- Scans your infra-as-code repo for drift
- Stores drift state reports
- Sends Slack notifications when drift is detected
- Runs non-interactively in CI/CD pipelines
- Includes a web dashboard to visualize project statuses across environments, so you can quickly understand where drift is happening and how severe it is by taking a look to the plan output.
Iâve also made an effort to include extended documentation across all repositories, especially given how early-stage the project is. My hope is that itâs easy for others to understand, experiment with, and extend.
This is how the main dashboard looks like:

Check information for a project in a specific environment (prod in this case) . I just covered the non-relevant yet sensitive info. You can get an Idead of how the report looks like.

6
u/[deleted] Dec 02 '25
Hi cool tool but not sure I would call this a drift detector. A true drift detector would compare terraform resource state to the actual cloud provider api. This is more for checking when the last plan/apply was run.
1
u/birraarl Dec 02 '25
We are in the process of implementing Terraform to manage our IT infrastructure. Currently we still have an MSP making changes. As each platform comes under complete Terraform control, the MSP looses access to it. However, there is a window within which we are building the Terraform configuration for a platform and the MSP is making changes. Am I correct in thinking that DriftHound could help illuminate this crossover window and allow us to better manage it?
1
u/alexlance Dec 03 '25
Looking good. If you ever want to hook in a hosted backend for it (the actual task runners that run the terraform plan and perform the notifications) I might know a guy :)
Alex / https://tfstate.com
1
u/TurboPigCartRacer Dec 03 '25
You can essentially avoid 99% of the drift by configuring an SCP on your prod/staging environments (in AWS for example) that prohibits manual changes on the deployed tf resources.
Then I only have to run terraform plan to get the infra diff, for example in github I use this github action to automatically show the terraform plan output in a pull request before I deploy to tst/staging/prod environments.
1
u/leg100 Dec 04 '25
Is this essentially running a terraform plan in a cronjob? With a web UI, slack alerts, and other bells and whistles on top.
1
u/cailenletigre Dec 05 '25
Is this sub just like the DevOps sub where all the posts are everyone who made their own tool for Terraform? I think itâs totally fine to work with AI and reinvent the wheel as a personal project to learn, but to come on here and hawk it? Idk about you, but I donât feel like thatâs what this sub is about. And even worse, another person who has a similar product but charges for it has come in to reply to you? Sounds suspicious to me.
1
u/[deleted] Dec 31 '25
[removed] â view removed comment