Security Concepts

What Is Configuration Drift?

The gradual, unintended divergence of a system's configuration from its intended state over time. Configuration drift happens through manual changes, deployment errors, package updates, or infrastructure modifications that are not tracked or reverted.

In Laravel Applications

Configuration drift in Laravel occurs when production settings change unexpectedly: debug mode gets enabled during troubleshooting and is not turned off, security headers disappear after a server update, Telescope becomes accessible after a package update, or .env permissions change after a deployment.

Example

A developer enables APP_DEBUG=true on production to troubleshoot an issue, fixes the bug, but forgets to disable debug mode. Two weeks later, an attacker finds the exposed stack traces. This is configuration drift.

Related Terms

Related Articles

Monitor Your Laravel Application's Security

StackShield continuously checks your Laravel application from the outside, catching security issues before attackers find them.

Start Free Trial