Skip to content

SECURITY UPDATES

Drupal security patching: from advisory to production

A practical Drupal patching workflow for agencies to assess affected sites, agree on release authority, test changes and verify the fix in production.

6 min readPublished

Four connected icons show a security advisory, a tested code change, release approval and a verified production site.
On this page

A Drupal security release becomes available. Your team identifies affected sites, prepares an update and gets a successful build. Production can still wait for permission to start, someone to review the change, customer testing or the next deployment window.

Across a fleet, each of those waits needs an owner. Making patch preparation faster helps, but reducing the full time from advisory to production also means agreeing who can act and what evidence allows the work to proceed.

The aim is a repeatable path through assessment, authorisation, testing, deployment and verification, with a clear route for exceptions.

Make the waiting visible

For each affected site, record when the advisory was published, when the team identified the site, when work started, when the change was ready, when deployment was authorised and when production was verified.

Keep active work and waiting time separate. If a tested update spends most of its time awaiting approval, another build optimisation will have little effect on the overall response.

A small release record helps the team manage hand-offs.

CheckpointEvidence to retain
Site assessedProduction version, advisory conditions, assessment time and owner
Change preparedPull request, intended fixed version and relevant dependency changes
Checks completedResults for the commit proposed for release
Deployment authorisedNamed approver or applicable standing authorisation
Production verifiedDeployed release, observed versions, functional checks and time

Set a response target from the site's exposure, business impact and agreed obligations. Escalate a blocked checkpoint while there is still time to act.

Assess the site that is actually running

Read the advisory and compare its affected versions and conditions with the deployed site. Include relevant modules, submodules, themes, base themes and dependencies. Check permissions, configuration and exposed functionality where the advisory makes them relevant.

The Drupal Security Team considers factors such as authentication requirements and affected configurations when rating an advisory. Use the rating alongside the site's actual exposure. Drupal Security Team risk levels

Record uncertainty explicitly. An old inventory report or an updated development branch cannot establish what production is running. Give an unresolved assessment an owner and a next action.

For fleet work, group similar updates where that helps preparation, while keeping assessment and completion records for each production site. A shared repository can serve sites with different configurations and deployment histories.

Agree release authority in advance

Define which security changes the team may prepare and deploy under standing authorisation. Agree the eligible scope, spending limits, minimum checks, notification requirements and recovery arrangements with the customer.

For example, an organisation might authorise a compatible security update once specified checks pass, while requiring a fresh decision for a major upgrade, unexpected functional change or greater disruption. Document the exception route and the deputy who can make that decision.

Where customer acceptance testing is needed, agree the critical journeys, response deadline and escalation contact beforehand. Keep business testing focused on the behaviour the customer is best placed to assess.

Agree how to handle urgent updates during release freezes and restricted deployment windows. The Australian Cyber Security Centre recommends using emergency change processes when necessary. Australian Cyber Security Centre patching guidance

Automation can then carry out work within the authority already granted. A failed required check or a change outside that authority needs an explicit decision.

Prepare a controlled, reproducible change

Keep the security update's scope clear. Review any additional dependency changes that are necessary, and separate unrelated enhancements where practical.

For Composer-managed projects, prepare and review the dependency update in the development or build workflow. Commit the resulting lockfile and any associated changes to composer.json. Composer installs the recorded dependency versions when a lockfile is present. Composer lockfile documentation

Promote the tested build, or build from the approved commit and lockfile through the established pipeline. If the proposed commit changes after testing or approval, repeat the affected checks.

Review release notes, local patches and custom integration points. A small version change can still affect behaviour your site depends on.

Make the checks worth relying on

Use automated tests for repeatable checks and targeted human review where the change needs judgement. Cover the affected feature and the site's essential journeys, such as authentication, a critical form or an integration.

Test updates in a development environment that reflects the relevant production configuration and runtime. Check the module's update instructions for additional steps. Drupal module update guidance

Confirm that release-blocking checks actually ran against the proposed commit. Investigate failures, missing results and unexplained skips. A passing result provides evidence only for what the check covered.

Use time saved on repeated update preparation to improve these tests. Better coverage gives the team a stronger basis for acting quickly on the next advisory.

Deploy with recovery and verification in place

Follow the site's deployment procedure, including database updates, configuration handling and cache operations where required. Importing stale configuration can undo configuration changes made by an update. Drupal deployment guidance

Where the project uses it, Drush coordinates Drupal deployment tasks after the codebase has been updated. Managed hosting may provide its own process. Drush deploy command

Establish recovery before release. Make sure you can restore the database, uploaded files and code, and test the restoration procedure. Decide how recovery would handle submissions or content created after a backup. Drupal backup guidance

After deployment, reconcile the production release and observed package versions with the intended fix. Check relevant functionality and logs, and retain the result. Record production evidence separately from the pull request and its merge status.

Keep a temporary mitigation visible as a mitigation, with an owner and a plan for the permanent fix. If there are signs of compromise, start the incident response process. A compromised site can still contain unauthorised changes after the update. Drupal guidance on recovering a compromised site

Where Sentinel Connector fits

Sentinel Connector brings Drupal version information and advisory findings together across connected sites. Sentinel Connector monitoring

For pull-request-based patching, agree who reviews the change and authorises deployment. When using standing authorisation, confirm which checks block release and how the policy handles optional failures and missing results. Review the terms that apply before setting a policy for a site. Patching terms

Patching is in Beta. Confirm that your Git host and deployment route are supported, and that you have automated tests and a recovery procedure. For pipeline deployments, your team arranges backup and recovery in your pipeline or hosting platform. Patching

These workflows can reduce repeated preparation and manual hand-offs. Your team still needs meaningful checks, appropriate authority and a clear owner for exceptions.

Improve the longest wait first

Take one recent security update and reconstruct its journey to production. Find the longest avoidable wait, name the decision or dependency behind it, and agree how the next update will move through it.

Then put those rules and checks into the workflow. A shorter, dependable route to production starts with knowing exactly what the next step requires.

More guides

All guides

Put this guide to work

Example: five Drupal sites are checked for updates. Most are up to date, one has two updates and one has a security update, which is then patched.

Monitoring

Track security updates across your Drupal fleet

Connect your sites to see installed versions, available updates and known advisories for each organisation, then set patching targets and share monthly reports.*

Example: by hand, a security update means reading, updating, testing, reviewing, deploying and reporting, done hours later. With Sentinel, the update is read, updated and tested for you, then waits for your review before it is deployed.

Free savings calculator

What do Drupal updates really cost you?

Seven short questions, then a report with your own numbers to share with your team.