Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Config Enforce

Security covered Under active development 23 sites

Config Enforce prevents specific configuration from being changed in production environments. It can make configuration forms read-only, block new configuration from being saved, or regularly re-import configuration from the codebase.

Config Enforce ensures that specified configuration cannot be changed in production environments. See the article Introducing Config Enforce.

How it works

The related Config Enforce Devel module provides a convenient UI to specify for each config object on the site whether and how strictly to enforce its configuration, as well as streamlining the writing of config YAML files to the codebase.

Once enforced configuration is deployed to a production codebase, Config Enforce will, depending on the level of enforcement:

  • Make specified config forms read-only.
  • Interrupt the writing of new config to the database.
  • Regularly re-import config from disk.

Installation

Please note:You will need to enable-patching in your root composer.json in order for Config Enforce to work correctly. See the docs site for more details.

composer config extra.enable-patching "true"
composer require drupal/config_enforce
composer require --dev drupal/config_enforce_devel

Background

As Drupal has evolved into an web application development framework, we've seen an ecosystem of configuration management tools and techniques evolve along with it. With dev-stage-prod development practices becoming common-place, the challenges of reliably deploying and applying new or changed configuration has become increasingly complex.

Configuration stored in a production site's database is traditionally considered canonical. We believe that much of this complexity is (at least partially) due to trying to accommodate config drift in production environments.

In order to make Drupal better-suited to SaaS application development, this project intends to flip that paradigm, and instead treat config files as canonical, and treat database storage as essentially a cache.

This project is in active development. Contributions of all sort are welcome, be they documentation, reporting bugs, code and security reviews, automated tests, and so on. If you'd like to help out or see what we're planning, head to #3305516: Config Enforce roadmap

Drupal 8–10 · not 11 PHP ^7.4 || ^8

Ask your assistant about Config Enforce

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

1 tracked project depends on this one

Activity

Tracked releases
14
Tracked since
Feb 2023
Latest release
7 months ago
Releases (12 mo)
6 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-beta0 Pre-release 10–11 Feb 24, 2026
2.0.0-alpha5 Pre-release 10–11 Nov 28, 2025
2.0.0-alpha4 Pre-release 10–11 Nov 20, 2025
2.0.0-alpha3 Pre-release 10–11 Nov 11, 2025
2.0.0-alpha2 Pre-release 10–11 Nov 5, 2025
2.0.0-alpha1 Pre-release 10–11 Oct 31, 2025
1.0.7 Stable 8–10 PHP ^7.4 || ^8 Aug 8, 2024
1.0.4 Stable 8–10 PHP ^7.4 || ^8 Dec 19, 2023
1.0.3 Stable 8–10 PHP ^7.4 || ^8 May 12, 2023
1.0.2 Stable 8–10 PHP ^7.4 || ^8 May 3, 2023