Skip to content

v0.21.0

Choose a tag to compare

@github-actions github-actions released this 30 Jun 22:42
· 152 commits to master since this release

Added

  • ocms init / ocms serve CLIocms init <dir> scaffolds a
    ready-to-run site (a 0600 .env with a freshly generated
    OCMS_SESSION_SECRET, plus data/, uploads/, custom/ under a 0700
    root); ocms serve starts the server. Bare ocms still serves, so
    systemd/Docker are unaffected.
  • Prebuilt release binaries — pushing a v* tag publishes static (no-cgo)
    ocms-linux-amd64.tar.gz and ocms-darwin-arm64.tar.gz with
    checksums.txt. Prebuilt binaries need no libvips; go install is
    unsupported (the asset/embed pipeline must run first), so download-and-run is
    the supported path.

Changed

Deployment & Operations

  • scripts/deploy/ocmsctl detects each site's active log backend from its
    systemd unit drop-in (journal vs. configured file log); restored per-site
    file logging for ocms@<site>.service.
  • make build-linux-amd64 / build-darwin-arm64 / build-all-platforms now
    produce static no-cgo binaries.

Demo

  • Demo startup rotates the default admin password, skipping rotation when it is
    already non-default.

Security

  • Invalidate all active sessions on password change.
  • Harden redirects: validate targets against the current origin and block
    //host protocol-relative bypass in referer redirects.
  • Bump golang.org/x/net to v0.56.0 and golang.org/x/image to v0.43.0
    (GO-2026-5025, GO-2026-4961), both reachable from the Markdown and
    image-processing paths.
  • Fix brace-expansion ReDoS (CVE-2026-45149); bump js-yaml to 4.3.0 in the
    build toolchain.

Dependencies

  • Update Go modules, npm dependencies, and swagger-ui-dist to 5.32.5.