Table of contents
Deploy at Any Time: Why Release Readiness Is a Security Issue
A security patch only protects you once it’s running in production. Find out why being able to deploy at any time is part of your security architecture—and how Symfony teams can make it happen.
A critical security advisory arrives. The patch is available, and the affected dependency has been identified. Yet instead of a straightforward release process, a discussion begins: What else is on the release branch? Does deployment still work at all? And who knows whether the latest database migration is backwards compatible?
Our thesis: The ability to deploy in a controlled way at any time is one of the most important security properties of a software project. Not because every change should be released immediately, but because a team must be able to decide when to deploy in an emergency instead of depending on the next release window.
AI increases the pressure—but it isn’t the real problem
In its 2026 annual review, the UK’s National Cyber Security Centre describes AI as an amplifier of existing attack methods: it can support reconnaissance, vulnerability discovery, and exploit development, while speed and scale are likely to increase. At the same time, the agency emphasizes that attackers are adopting these capabilities at different rates and that human direction remains important. This does not allow us to derive a universal time window between a patch and an attack. It does, however, make a strong case against avoidable delays.
CISA accordingly recommends risk-based prioritization. Factors include whether a system is exposed, whether exploitation has been observed, and whether automated attacks are possible. Not every new CVE calls for the same response. But an actively exploited vulnerability in a publicly accessible service shouldn’t have to wait for the next feature release.
Our takeaway: Don’t release in a panic. Make the normal delivery path reliable enough that a security patch doesn’t need a special process.
A small patch needs a short delivery path
Suppose a security advisory affects a single Symfony component. Our approach would be to start from the production version, update only the affected package, and check what else changes as a result. Rather than upgrading all dependencies indiscriminately, we keep the patch as small and easy to understand as possible. Composer supports targeted updates like these, as well as automatically checking against known security advisories.
We recommend running these checks regularly—not just when changes are made, but, for example, daily. New advisories should be detected even when nobody is working on the code. And any finding must reach a responsible team rather than disappearing unnoticed into a log.
During review, we ask three questions: Is the patched version actually included? Is every additional change justified and traceable? And does a test cover the affected application behavior? The security advisory—not just the package name—should determine which checks make sense.
The organizational requirement is just as concrete: unfinished features must not be bundled with the patch. Our preferred approach is a releasable main branch, with unfinished functionality kept disabled. If that isn’t possible yet, you need a documented hotfix path from the production tag, followed by merging the fix into the main branch. We’d rehearse this path before the first emergency.
The patch then follows the same path as any other change: as a single, tested build artifact that goes to staging and then production without being altered.
Database changes must not hold a patch hostage
An urgent security patch shouldn’t get stuck behind a half-finished database migration. That’s why we recommend never making major database schema changes in a single step. Instead, break them into several small, compatible steps. The pattern is known as Parallel Change or Expand–Migrate–Contract: expand first, migrate next, and clean up last.
A simple example: A database field needs to be renamed. Instead of renaming it directly—which would break the existing code—a new field is added first. For a while, the application writes to both fields; the existing data is migrated, and then the application switches to the new field. The old field is removed only once it’s clear that nobody needs to return to the previous version.
The benefit: At every stage, both the old and the new application versions are compatible with the database. A patch can therefore be deployed at any time, and rollback remains possible. The team simply needs to know which versions work with the current schema and when rollback is no longer planned.
A deployment doesn’t end with the web process
New code on the web server is only half the delivery process. Long-running processes such as queue workers and other background services also need to be restarted in a controlled way; otherwise, they keep running the old, vulnerable version. A patch is fully deployed only when every part of the application is confirmed to be running the new version.
Rollback capability doesn’t mean reverting the security patch
For every release, we recommend a brief operations record that includes the artifact identifier, schema compatibility, smoke tests, and decision criteria. A useful smoke test checks more than a public landing page: it might cover login, a protected read operation, and a controlled queue run.
For a security patch, add one more decision: Is the previous artifact still an acceptable rollback option? Returning to the vulnerable version undoes the security improvement. So if the patch causes operational problems, we’d define alternatives in advance: disable the affected functionality, restrict access, or deliver a corrected build. The responsible people and approvers must be identified before an incident occurs.
Deployment readiness can be rehearsed
Here’s our suggestion for a practical next step: deploy a low-risk dependency patch through the regular production path and record the timings. Measure not just pipeline runtime, but the entire journey from assessment to verified operation of the new version.
Pay particular attention to delays: missing approvals, manual work, unavailable credentials, and unresolved migrations. Then assign an owner and a due date to the biggest obstacle. A working process you can demonstrate is more valuable than a universal target measured in minutes.
It all comes down to one thing: working Continuous Deployment. When changes are already going into production regularly, automatically, and with checks in place, a security patch is no longer a special case—it’s just another release.
Being able to deploy at any time doesn’t replace secure software development, monitoring, or incident response. Still, our position at SensioLabs is clear: release readiness isn’t a developer convenience. It’s what makes it possible to respond to an identified risk in a controlled way—without having to fix your own delivery process at the critical moment.