Files
vpn-dns-gateway/security/jenkins/README.md
vsun1 f3a80a284f
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
Patch Jenkins and verify cloud CI host maintenance
2026-11-26 23:23:44 -05:00

5.7 KiB

Jenkins core maintenance, November 26, 2026

The-Ocean's Jenkins controller now runs 2.580.2, addressing the October 28 Jenkins security advisory. Its previously patched Temurin 21.0.13.1+2 runtime remains in place. The delivery agent was not recreated. This maintenance followed Vincent's merge of reviewed baseline repair PR #32 (d65d1fd).

Applied image and checkpoint

Item Recorded value
Controller selector ssw590-jenkins:2.580.2-java21.0.13.1-2
Actual image ID sha256:92fcd2af433747220f1a8139450cfea69c2f718602f6a26530fedba9e901b479
Official WAR https://get.jenkins.io/war-stable/2.580.2/jenkins.war
WAR SHA-256 d98032d2401c540a35613a82ed358921fcf3166d5e6eaaaf60a7941845be3251
Root-only checkpoint /root/ssw590-jenkins-core-20261126
Stopped-home backup jenkins-home.before.tar.gz, 715,335,866 bytes
Backup SHA-256 26ff94f3f67f09929f8dee9a387151f13bd5ae47efe320024892e4659812d016
Recovery image ssw590-jenkins-core-rollback:2.580.1-20261126

The live patch used the accompanying minimal Dockerfile to replace only the WAR and version/checksum environment metadata on the already verified Java image. The future full recipe in deploy/jenkins/Dockerfile now selects the official 2.580.2 base by digest and retains the fixed Java stage. The live overlay was tested; a fresh full build of that future recipe was not performed here.

patch-controller.py is a narrowly scoped record of this migration, with pinned old/new identities. Do not rerun it against the patched host. Its old-image guard deliberately rejects reapplication. To adapt it for later maintenance, review new vendor identities, compatibility and recovery requirements first.

Execution and verification

  1. Verified idle Jenkins/Actions state, capacity, vendor WAR checksum and an offline bounded core/Java smoke check. Preserved the old image.
  2. Entered Jenkins Prepare for Shutdown through the authenticated UI. Stopped only the controller and created the complete, root-only home backup while stopped. The backup contains credentials and must remain private on the host.
  3. Updated the live Compose image selector and future recipe; recreated only the controller with the same persistent mount and resource limits.
  4. Verified HTTP 200, core 2.580.2, fixed Java, mounts/limits, unchanged other containers and unchanged job/account/credential/security configuration. Gitea and both pricing health endpoints returned 200 in sampled checks.
  5. Confirmed normal scheduling resumed and the agent performed real baseline build 2 successfully.

The initial verifier asserted byte-for-byte equality of the global config.xml and stopped after the controller was healthy. Independent comparison with the private backup showed exactly the expected /hudson/version migration from 2.580.1 to 2.580.2. The helper now accepts only that exact structural difference; every other checked configuration still requires an unchanged hash. No security setting was relaxed to make the verification pass. The initial successful unrelated-container check preceded that assertion; final evidence records this sequence rather than claiming a second independent old-state comparison.

The private checkpoint retains before/after metadata and logs. Public selected evidence is core-maintenance-20261126.json in this directory; detailed local records are ignored under build/evidence/jenkins-core-baseline-20261126. No continuous Jenkins outage measurement was taken.

Plugin reproduction

plugin-bundle-20261126.json records the selected workflow plugin versions, archive SHA-256 values and dependencies. The regenerated deploy/jenkins/plugins.txt retains all original 63 locked version/hash pairs and adds JUnit plus its eight reporting dependencies (72 total). The existing three theme plugins were not changed. Build 2 confirmed the junit step and Jenkins test UI work. The informational Checks API message means no external checks publisher was selected; the eight results are displayed in Jenkins.

Later the same day, host maintenance updated the two newly reported vulnerable plugins, workflow-cps and script-security, through the compatible official update center. The current lock is generated from plugin-bundle-20261126-post-maintenance.json: 72 workflow packages, with only those two changed from the earlier bundle. All 73 other installed archives, including the three themes outside that lock, were unchanged. Post-reboot build 3 passed on the same reviewed main. The earlier bundle and core-maintenance evidence remain historical records.

Recovery and retention

Retain the root-only backup, original Compose/recipe files and recovery image. Do not copy the Jenkins-home archive into Git, the manual, or a shared handoff. Do not downgrade core in place while retaining a potentially migrated home. If recovery becomes necessary, quiet down, preserve current state, verify the backup checksum, and restore the stopped backup into a separate protected volume before selecting the recovery image and reviewed original settings. Validate the volume and service selection before recreating only the controller. The old core remains vulnerable and is an emergency recovery option, not a permanent version.

The existing paid 2 GiB host was used; no new instance or plan was created. At 06:41 UTC after build/download, root had approximately 4.0 GiB free and available RAM was 698 MiB, with 701 MiB swap in use. These are shared-host point observations. Keep required build/grading evidence; remove only identified reproducible scratch. Do not prune shared images, volumes or runner identities.