Skip to content

v2.6.0 — security scanning, update tracking and base image refresh

Choose a tag to compare

@fmadore fmadore released this 10 Nov 10:34
· 49 commits to main since this release
ba0c5bb

Upgrading from v2.5.1: rebuild the images. The refreshed base images
only reach your site once it runs the rebuilt images:

bash scripts/backup.sh
git fetch --tags && git checkout v2.6.0
bash scripts/rebuild-code.sh --pull
docker compose build --pull sparql && docker compose up -d sparql   # AMIRA with the sparql profile
docker compose pull db && docker compose up -d db

The site is unavailable for a few seconds while db restarts. Data volumes
are kept.

New: security scanning and update tracking

Dependabot keeps image tags and action versions current, but GitHub's advisory
database covers neither Docker images nor GitHub Actions. Until now, nothing
flagged a known vulnerability in the images this stack runs (#50).

  • security.yml runs on every push, every pull request, weekly and on demand:
    • Trivy scans every image the stacks run (php, web, db, typesense, and for AMIRA amira-php, amira-mcp and sparql) for vulnerabilities that already have a fix. It covers OS packages and the PHP libraries bundled in Omeka and its modules.
    • It also scans the repository for committed secrets and Dockerfile problems, and audits the workflows with zizmor.
    • Results appear under Security → Code scanning and on pull requests.
    • The weekly run fails, and keeps a tracking issue open, while any image has a fixable high or critical vulnerability. Pull requests only warn.
  • untracked-pins.yml keeps a weekly issue for versions Dependabot cannot see that have fallen behind: Omeka S core, omeka-s-cli, APCu, and module/theme release URLs.
  • Notifications: Dependabot PRs and the tracking issues are assigned to the maintainer. In a fork, set the ISSUE_ASSIGNEE repository variable and edit assignees in .github/dependabot.yml.
  • Dependabot cooldown: version updates now wait 7 days after a release before being proposed. Security updates are not delayed.

Updated

These combine Dependabot #45–#49 (#51):

  • PHP 8.5.12 rebuilt upstream with Debian security fixes (new digest, same version). Fixable high/critical findings in the php image dropped from 172 to 1.
  • MySQL 9.7.4 rebuilt upstream (new digest, same version).
  • SPARQL endpoint: rebuilt debian:trixie-slim base with Debian security fixes.
  • Composer 2.11.1 (was 2.11.0) and php-extension-installer 2.13.2 (was 2.12.3). Both are used only while building the image.

AMIRA overlay

Extension pins moved to:

  • DRESearch v1.35.0 (was v1.34.0)
  • DRE-Visualizations v2.50.0 (was v2.45.0)
  • DRE-LinkedData v0.6.0 (was v0.5.0): JSON content negotiation, ETag-only 304 responses, and scripts/generate-dump.php now ships in the release archive
  • DRE-theme v2.48.0 (was v2.47.1)
  • AMIRA MCP v1.35.0 (was v1.31.1)

On a volume-backed stack, run scripts/update-extensions.sh to bring the
running site's modules and theme to these pins. Its --dry-run compares the
pins with upstream, not with what is installed, so run the real update even
if the dry run reports everything current. Update AMIRA MCP with
bash deploy/amira/update-amira-mcp.sh v1.35.0.

Known remaining findings

The first scans still report fixable high or critical vulnerabilities in
images maintained upstream:

Image Findings
mysql 36
amira-mcp 10
nginx (web) 8
typesense 6
sparql 4
php, amira-php 1 each (a library bundled in the Common module)

They clear as the upstream images are rebuilt and Dependabot proposes them.

Not included

  • omeka-s-cli stays on 0.9.3; upstream is at 0.19.0. That jump changes the tool the build and module updates rely on, so it needs its own testing.