Drupal is a registered trademark of Dries Buytaert

Config Guardian elevates Drupal configuration management to an enterprise standard. It provides a comprehensive safety net for development teams by introducing point-in-time snapshots, advanced impact analysis, and a reliable rollback engine.

While Drupal's core CMI is powerful, it lacks historical context and granular risk assessment. Config Guardian fills this gap, allowing Site Reliability Engineers (SREs) and developers to deploy changes with absolute confidence.

🛡️ Config Guardian Core Features

  • Instant Snapshots: Capture Active Config + Sync Directory in seconds.
  • Safe Rollback Engine: Simulation mode and conflict detection before restoring.
  • Visual Impact Analysis: D3.js interactive graph for dependency mapping.
  • Risk Assessment: Automatic risk scoring (0-100) for pending changes.
  • Integrity Verification: SHA-256 hashing ensures data is never corrupted.
  • Audit Trails: Detailed activity logging for compliance (Who, What, When).
  • Automated Backups: Hourly, Daily, or Weekly schedules with retention policies.

🚀 Why use Config Guardian?

Deploying configuration changes to production can be stressful. A missing dependency or an unexpected override can break critical site functionality. Config Guardian allows you to "Look before you leap" and "Undo" if you slip.

1. Visual Dependency Analysis

Don't read YAML files to understand relationships. Use the built-in Dependency Graph to visualize exactly how modifying a Field Storage will impact your Views, Search Indexes, and Form Displays. The module calculates a Risk Score to warn you about high-impact changes.

2. Disaster Recovery Strategy

Core configuration import is destructive. Config Guardian makes it reversible. Before any import, the system takes an automatic snapshot. If something goes wrong, the Rollback Engine restores the site to its exact previous state—including the sync directory—ensuring zero downtime.

📦 Installation

composer require drupal/config_guardian
drush en config_guardian -y

đź”§ Advanced Integration

  • Drush Support: Full CLI integration for CI/CD pipelines (drush cg-snap, drush cg-rollback).
  • Performance: Zero impact on frontend performance. Admin dashboard uses smart caching tags.
  • Security: Snapshots are stored with optional GZIP compression and strict database-level access controls.

Developed and maintained by Andrés Moreno. Architecture follows strict Drupal Coding Standards and Enterprise Security Best Practices.

Activity

Total releases
1
First release
Dec 2025
Latest release
2 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Dec 10, 2025