Skip to content

v2.5.0 — read-only SPARQL endpoint and DRE-LinkedData v0.5.0

Choose a tag to compare

@fmadore fmadore released this 22 Oct 08:38
· 76 commits to main since this release
e6591bc

Upgrading from a release before v2.4.0? Rebuild, and check PHP first.

This release removes the interim CVE-2026-109619 settings that v2.4.0 kept in
uploads.ini as a safety net. PHP 8.5.12 is the actual fix, and it only
protects you once your site runs the rebuilt image:

bash scripts/backup.sh
git fetch --tags && git checkout v2.5.0
bash scripts/rebuild-code.sh --pull
docker compose exec php php -v    # expect 8.5.12

Already on v2.4.0 with php -v reporting 8.5.12? Then nothing needs
rebuilding: git fetch --tags && git checkout v2.5.0 is enough.

Security

  • The uploads.ini interim mitigation for CVE-2026-109619
    (session.upload_progress.enabled = 0, fatal_error_backtraces = 0) is
    removed now that PHP 8.5.12 is the pinned runtime (#33). The file is
    bind-mounted, so the change takes effect on the next php restart. Neither
    setting affected Omeka S, so removing them changes nothing else.

Added

  • An opt-in, read-only SPARQL endpoint at /sparql for the AMIRA overlay
    (#28). It serves the DRE-LinkedData dump through
    Oxigraph and is switched on with
    COMPOSE_PROFILES=search,sparql. Off by default; the base stack is
    unchanged. See
    deploy/amira/README.md.
    • Reloads itself. It loads each new dump into a fresh store, checks it
      against the dump's SHA-256, and swaps it in only once the load is complete,
      so a query never sees half a graph. A restart reuses the last good store.
    • Cannot slow the site down. It is capped at half a CPU and 256 MB, with
      a quarter of the default CPU weight, so Omeka wins whenever they compete.
      Queries time out after 30 s. A watchdog restarts the server if a query
      escapes that timeout, which Oxigraph only enforces while reading the store.
      Each connection is also closed after 60 s whatever it is doing, so a result
      that keeps streaming cannot hold a slot (#36). nginx allows each visitor 60
      queries a minute and 2 at a time, and the endpoint 4 at a time. Results are
      sent uncompressed: gzipping them in the web container, whose quarter CPU
      every page shares, held other requests back by over 2 s in testing.
    • No network at all. SPARQL's SERVICE keyword makes the server fetch
      other URLs, and Oxigraph cannot turn it off. Even an internal Docker
      network can reach the host's own ports, so the service runs with
      network_mode: none and nginx reaches it over a Unix socket. CI asserts
      this isolation.
    • Behaves for browsers and catalogues (#36). Opening /sparql in a
      browser leads to the Linked open data page. The service description
      states the endpoint's public https:// address. Each new store is
      compacted before it is served.

Updated

  • RDF, CSV and TSV responses are now gzip-compressed by the base
    nginx.conf: Turtle, N-Triples, N-Quads, TriG, RDF/XML, the SPARQL result
    types, text/csv and text/tab-separated-values (#36). It applies to every
    install, on the next docker compose restart web. AMIRA's /sparql
    location opts out, as above.
  • AMIRA deployment: DRE-LinkedData v0.5.0 (the SPARQL endpoint setting,
    advertised as void:sparqlEndpoint, and a query form on the Linked open
    data
    page that runs only when a visitor submits it), DRE-theme v2.43.0,
    DRE-Visualizations v2.42.0; Oxigraph 0.5.12 for the SPARQL endpoint (#34)
  • AMIRA README: a nightly generate-dump.php --if-stale cron line, since the
    endpoint is only as current as the dump
  • README: links to AMIRA, and
    states the hardening accurately. nginx's master process and the optional
    Typesense image run as root inside their containers; PHP runs unprivileged.

Verification

CI is green on e6591bc — validate plus smoke tests across the base, AMIRA
and immutable overlays. The AMIRA smoke test checks that /sparql answers
503 with CORS when the profile is off, sends browsers to the Linked open
data
page, and keeps its internal service-description location private.

The endpoint has served https://data.africamultiple.uni-bayreuth.de/sparql
since 2026-10-22, now with DRE-LinkedData v0.5.0. Tested on that host:

  • a runaway query held in memory was stopped by the watchdog at 60 s;
  • an endless cross join was cut off at 32 s, after streaming 480 MB;
  • Omeka's pages kept answering in under 0.2 s through both, and the next query
    was answered at once.