{"id":34447711,"url":"https://github.com/drifthoundhq/drifthound","last_synced_at":"2026-01-26T16:11:27.650Z","repository":{"id":327714450,"uuid":"1105172804","full_name":"drifthoundhq/drifthound","owner":"drifthoundhq","description":"Continuous infrastructure drift detection with historical tracking and notifications.","archived":false,"fork":false,"pushed_at":"2026-01-16T09:36:32.000Z","size":1698,"stargazers_count":22,"open_issues_count":6,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-18T16:42:50.367Z","etag":null,"topics":["drift-detection","iac","opentofu","terraform","terragrunt"],"latest_commit_sha":null,"homepage":"https://drifthound.io","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drifthoundhq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-27T08:35:20.000Z","updated_at":"2026-01-05T17:08:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/drifthoundhq/drifthound","commit_stats":null,"previous_names":["treezio/drifthound","drifthoundhq/drifthound"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/drifthoundhq/drifthound","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Fdrifthound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Fdrifthound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Fdrifthound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Fdrifthound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drifthoundhq","download_url":"https://codeload.github.com/drifthoundhq/drifthound/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Fdrifthound/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28782164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drift-detection","iac","opentofu","terraform","terragrunt"],"created_at":"2025-12-22T18:00:33.272Z","updated_at":"2026-01-26T16:11:27.645Z","avatar_url":"https://github.com/drifthoundhq.png","language":"Ruby","funding_links":[],"categories":["Tools"],"sub_categories":["Community providers","CI"],"readme":"\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eDriftHound\u003c/h1\u003e\n  \u003cem\u003eA Watchdog for Your Infrastructure State.\u003c/em\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"./docs/media/drifthound.png\" alt=\"logo\" width=\"500\" /\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\n  ![Ruby](https://img.shields.io/badge/dynamic/regex?url=https://raw.githubusercontent.com/drifthoundhq/drifthound/main/.ruby-version\u0026search=ruby-(.*)\u0026label=Ruby\u0026logo=ruby\u0026logoColor=red\u0026color=CC342D\u0026style=for-the-badge)\n  ![Build](https://img.shields.io/github/actions/workflow/status/drifthoundhq/drifthound/ci.yml?branch=main\u0026style=for-the-badge\u0026logo=github\u0026label=Build)\n  ![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/drifthoundhq/drifthound?style=for-the-badge\u0026color=blue)\n  [![Demo](https://img.shields.io/badge/Demo-Try%20It-10b981?style=for-the-badge\u0026logo=rocket\u0026logoColor=white)](https://demo.drifthound.io)\n  [![License](https://img.shields.io/badge/License-AGPL--3.0-orange?style=for-the-badge)](https://opensource.org/licenses/AGPL-3.0)\n  \u003c/div\u003e\n\u003c/p\u003e\n\n## What is DriftHound?\nDriftHound is a Rails WebApp that receives Terraform drift reports via API and provides visibility into infrastructure drift across your projects.\n\nLive demo site: https://demo.drifthound.io\n\n## Features\n\n- **API for Drift Reports**: Receive Terraform drift check results via authenticated API\n- **Historical Data**: Store and track drift check history per project\n- **Project Status**: Display project status (OK / Drift / Error / Unknown)\n- **Web Dashboard**: View all projects and their drift status at a glance\n- **Charts Dashboard**: Visual analytics with interactive charts for drift monitoring\n- **Slack Notifications**: Real-time alerts when drift is detected or resolved\n\n## Requirements\n\n- Ruby 3.x\n- PostgreSQL\n- Rails 8.0+\n\n## Local Delevelopment\n\n### Non-Docker Setup\n\n1. **Install Dependencies**\n  ```bash\n  bundle install\n  ```\n2. **Start database**\n  ```bash\n  docker compose up postgres -d\n  ```\n\n3. **Database Setup**\n  ```bash\n  bin/rails db:create db:migrate db:seed\n  ```\n1. **Start the Server**\n  ```bash\n  bin/rails server\n  ```\n\n#### Running Tests\n\n\u003e [!IMPORTANT]\n\u003e Running System tests requires google-chrome to be installed.\n\n1. Create Test DB\n  ```bash\n  make prepare-test-db\n  ```\n\n2. Unit Tests\n  ```bash\n  make run-tests\n  ```\n\n### Docker Setup\n\n**Provision Database and Start Application**\n  ```bash\n  make docker-db-setup\n  ```\n  This will start the services then create, migrate, and seed the database.\n  Also automatically creates the API token in the seeding step.\n\n\n## CLI Usage\n\nDriftHound provides a CLI to automate drift checks in CI/CD pipelines.\n\n### Quick Install\n\n```sh\nsudo curl -L https://raw.githubusercontent.com/drifthoundhq/drifthound/main/bin/drifthound-cli -o /usr/local/bin/drifthound \u0026\u0026 sudo chmod +x /usr/local/bin/drifthound\n```\n\n### Usage Example\n\n```sh\ndrifthound --tool=terraform \\\n  --project=my-project \\\n  --environment=production \\\n  --token=YOUR_API_TOKEN \\\n  --api-url=http://localhost:3000 \\\n  --dir=./terraform\n```\n\n📖 See [docs/cli-usage.md](docs/cli-usage.md) for detailed CLI documentation, Docker usage, and CI/CD integration examples.\n\n---\n\n## API Usage\n\nYou can submit drift check results directly to the API:\n\n```bash\ncurl -X POST \\\n  http://localhost:3000/api/v1/projects/my-project/environments/my-env/checks \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"status\": \"drift\",\n    \"add_count\": 2,\n    \"change_count\": 1,\n    \"destroy_count\": 0,\n    \"duration\": 8.2,\n    \"raw_output\": \"Plan: 2 to add, 1 to change, 0 to destroy.\"\n  }'\n```\n\n**Generate an API Token:**\n\n1. Log in as admin at `/login`\n2. Click **API Tokens** in the navigation bar\n3. Create a new token and copy it (it's only shown once!)\n\n📖 See [docs/api-usage.md](docs/api-usage.md) for complete API documentation, including advanced features and examples.\n\n---\n\n## GitHub Actions Integration\n\nAutomate drift detection in your GitHub workflows with the official DriftHound GitHub Action.\n\n🔄 **GitHub Action**: [https://github.com/drifthoundhq/drifthound-action](https://github.com/drifthoundhq/drifthound-action)\n\n---\n\n## Deployment\n\nDriftHound can be deployed to production environments using Docker and Kubernetes.\n\n### Docker Images\n\nPre-built Docker images are available in the GitHub Container Registry:\n\n```bash\ndocker pull ghcr.io/drifthoundhq/drifthound:latest\n```\n\n### Kubernetes Deployment\n\nA Helm chart is available for deploying DriftHound to Kubernetes clusters:\n\n📦 **Helm Chart Repository**: [https://github.com/drifthoundhq/helm-chart/](https://github.com/drifthoundhq/helm-chart/)\n\nFor deployment instructions and configuration options, refer to the Helm chart documentation.\n\n---\n\n## Documentation\n\n- **[Configuration Guide](docs/configuration.md)** - Environment variables, database setup, Slack configuration, and deployment examples\n- **[CLI Guide](docs/cli-usage.md)** - Detailed CLI documentation, Docker usage, and CI/CD integration examples\n- **[API Reference](docs/api-usage.md)** - Complete API documentation, advanced features, and integration examples\n- **[Slack Notifications](docs/slack-notifications.md)** - Configure Slack alerts for drift detection\n\n## Architecture\n\n```mermaid\nflowchart LR\n    A[\"CI/CD (Terraform)\"] --\u003e B[\"DriftHound API\"]\n    B --\u003e C[\"PostgreSQL (Storage)\"]\n```\n\n## License\n\nAGPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrifthoundhq%2Fdrifthound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrifthoundhq%2Fdrifthound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrifthoundhq%2Fdrifthound/lists"}