The open-source content system posted a security patch preview days in advance, what should the operation and maintenance team do in these days?
Open source content system released a security patch preview days in advance, what should the operations team do in these few days? The information provided in the preview is usually very little: a time window, a risk level, no vulnerability details. Taking Drupal's public service announcement as an example, it specifies that the security patch for the Webform project will be released within a few hours of the specified date, and the risk alert only states that the highest-rated item in this release is critical. The significance of the preview is not to know in advance what to fix, but to turn these few days into a prepared window.
First confirm whether you are within the scope.
The most critical sentence in the preview is the project name and version branch. The first thing to do is to read the actual version of this module from the site, rather than judge by memory. The same is true for similar situations in our own systems: Before v3.6.6, there was a problem where list sorting parameters were spliced into the query statement, and whether it was affected could only be determined by comparing the current version with the fix records of the branch, not by 'there hasn't been a problem recently.'
There are also dependencies that need to be confirmed together: whether the module has been overwritten by themes or custom code. It may not be smooth to upgrade the modified module, and such conflicts are often exposed on the day of release.
Make the backup to a degree that can be directly rolled back.
The second thing in the preview window is the backup. The scope should cover data and uploaded static files, and sites that only back up databases will find that the templates and attachments do not match when rolling back. AnQiCMS's backup capability supports taking data and static files together, recovering according to the same record when rolling back, to avoid the two types of content coming from different time points.
At the same time, it should be confirmed that the recycling bin mechanism cannot replace the backup: deleting formal documents is moved to the recycle bin, and the content recovered is not the state before the upgrade failed. Mixing the two things together is easy to misjudge as ready during the exercise.
Walk through the upgrade path on the copy
The third thing is to conduct a rehearsal. Restore the backup to the test environment, go through a complete upgrade according to the previewed version, and focus on three aspects: whether the submission of form pages is normal, whether the background list and filtering are still effective, and whether the static resource paths have been changed. The cost of the rehearsal is much lower than that of on-site troubleshooting on the release day.
After the rehearsal, leave a checklist that can be verified: the version number before the upgrade, the version number after the upgrade, and the verified page paths. On the release day, just tick off each item on the list.
After the release, check the module version instead of checking the announcement.
After the patch is released, the fourth thing to do is to check the results. The preview window usually releases multiple announcements at the same time: On that one day of the Drupal Webform project, there were twenty, and each has a different fixed version. The checking method should be to read the current version of each module one by one, and compare it with the fixed version given in the corresponding announcement, rather than just looking at whether the overall version number has changed.
The fifth thing is to leave time for rollback. Do not make other changes on the day of release, leave the observation window for paths such as form submission, comments, and messages that involve module code. If an immediate rollback is indeed necessary, use the backup confirmed during the drill, do not cobble together temporarily.
Common questions
Question: If the preview does not write the vulnerability details, can we judge the risk in advance?Answer: We can judge to the level of the project and risk level. Based on this, determine the scope of preparation and time budget, the specific triggering conditions will have to wait for the official announcement.
Question: The window is only a few hours, do we need to arrange someone to stay on duty specifically?Answer: It is more practical to do the preparation work in advance: version verification, backup, and exercise list completed before the window, and only the upgrade and verification are done inside the window.
Question: When multiple modules issue patches simultaneously, which one should be upgraded first?Answer: Sort by risk level and exposure, handle entry modules that can be submitted and read externally first, then handle functions that only take effect in the background, and leave verification intervals between upgrades.