No description
  • Python 66.7%
  • Shell 29.7%
  • JavaScript 2.8%
  • Go 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-18 05:31:17 +01:00
.forgejo/workflows Require populated upgrade recovery before automatic publication and document source completeness criteria 2026-10-19 21:34:06 +02:00
automation Update upstream pins: Ghost 6.78.0, ActivityPub 1.2.13 2026-11-18 05:31:17 +01:00
config Import and harden native Ghost RPM prototype for RHEL 10.2 2026-10-18 18:22:48 +07:00
docs Record successful native migration recovery and runtime inventory evidence 2026-10-19 21:35:32 +02:00
locks Update upstream pins: Ghost 6.78.0, ActivityPub 1.2.13 2026-11-18 05:31:17 +01:00
nginx Require Ghost SELinux context, allow interface queries and confine native media serving 2026-10-18 17:11:36 +02:00
packaging Resume preserved fresh installation and scope Nginx factory verification to its configuration 2026-10-19 11:23:51 +01:00
rpm Update upstream pins: Ghost 6.78.0, ActivityPub 1.2.13 2026-11-18 05:31:17 +01:00
scripts Record successful native migration recovery and runtime inventory evidence 2026-10-19 21:35:32 +02:00
selinux Permit systemd private-temp cleanup and audit functional restarts before reboot 2026-10-19 11:28:49 +01:00
tests Require populated upgrade recovery before automatic publication and document source completeness criteria 2026-10-19 21:34:06 +02:00
.gitignore Automate daily stable upstream updates through native tested RPM publication 2026-10-19 17:30:36 +02:00
AGENTS.md Use English for repository documentation and release text 2026-10-19 20:16:36 +02:00
LICENSE Import and harden native Ghost RPM prototype for RHEL 10.2 2026-10-18 18:22:48 +07:00
README.md Correct README signing, SBOM and populated upgrade status 2026-10-20 08:14:02 +00:00
versions.env Update upstream pins: Ghost 6.78.0, ActivityPub 1.2.13 2026-11-18 05:31:17 +01:00

Ghost + ActivityPub: native EL10 RPMs for Rocky Linux 10.2+

Published RPMs: Forgejo Packages. Versioned binary/source ZIPs, SHA-256 checksums and exact-artifact acceptance evidence are available under Releases.

The same tested binaries are also available, with Forgejo signatures, under Packages in the EL10 DNF repository. See registry setup and verification.

Native EL10 x86_64 RPMs for fresh Ghost installations. Release 7 passed a clean native installation on Rocky Linux 10.2, MySQL/systemd/SELinux/Valkey checks, CMS functions and an actual VM reboot. The publication job verified all five public download files without authentication. See the release-7 validation record and tested release procedure. Rocky Linux 10.2 is the tested platform. Other EL10 distributions and later minor versions are not automatically covered by that test result. Public TLS/federation integration is a separate deployment check.

The reviewed lockfiles and exact-source security backports supersede the historical advisory triage. Version scanners still identify four known matches in locally patched upstream versions; the release proof checks installed patched-file hashes and regressions. The dependency inventory remains incomplete and is not a security or license certification.

Fresh deployment and tested same-major RPM upgrades; x86_64. Importing or converting an independently managed Ghost installation or database is not supported. The explicit ActivityPub schema command serves the required initial database setup in the supported fresh-install workflow. Production runs native Node.js/systemd/MySQL, without Docker, Podman, npm, pnpm or a Go toolchain. Remote Podman is used only by the pre-existing Forgejo runner to isolate CI builds.

Packages

RPM Native contents
ghost-cms Ghost at the version pinned in versions.env, locked production JS dependencies, ghost.service
ghost-activitypub ActivityPub at the version and fixed commit pinned in versions.env, JS bundle/dependencies, upstream SQL migrations, native Go migration executable and explicit schema initialization unit
ghost-selinux Experimental policy, service transition wrappers, persistent data/config labels, TCP ports 2368–2369

Source archive SHA-256 values and tool versions are in versions.env. Ghost's npm tarball contains a pnpm manager lock, not a complete runtime dependency lock; locks/ghost-package-lock.json captures exact npm package records, including bundled local component tarballs. npm ci --legacy-peer-deps reproduces it; legacy peer resolution is required by Ghost's Bookshelf/Knex constraints. The installer skips lifecycle scripts, explicitly approves/rebuilds pinned re2 when present, and tests a regular expression plus native sharp PNG encoding. Optional SQLite and DTrace install scripts are not run for the MySQL production target. Review license inventory and vulnerability findings before promoting any candidate. ActivityPub uses the frozen packaging lock derived from its upstream pnpm lock, with the reviewed nested OpenTelemetry correction and matching pnpm 12.11.2.

Forgejo Actions / Remote Podman

The repository runner ghost-rpm (Forgejo Runner v13.2.0) is registered and advertises el10-podman. Its dedicated service is forgejo-runner-ghost2rpm, reading /home/forgejo-runner/ghost-rpm/runner-config.yml. Remote Podman execution was confirmed by the first Rocky 10.2 job on 2026-10-18.

  1. Make the existing runner available to ulrich/ghost-rpm using its current registration/scope. Do not register another runner or expose Podman publicly.
  2. Set repository variable RPM_RUNNER_LABEL to an actual advertised label. Verify that its executor uses the existing Remote Podman connection.
  3. Set RPM_BUILD_IMAGE to a Rocky Linux 10.2 x86_64 image or a subscribed RHEL 10.2+ build image, preferably pinned by digest. The workflow enables Rocky CRB and updates packages before installing tools. RHEL images require access to BaseOS, AppStream and CodeReady Builder. Do not put credentials in the image variable or repository. Remote Podman binds resolve on the remote engine host; do not assume paths on the runner exist there.
  4. The image must provide root for dnf; the workflow installs build tools in that disposable image. Go must satisfy upstream's go 1.25.11 requirement; Node.js 24 must be at least 24.20.0. Preflight fails on older EL10, UBI, wrong architecture or unavailable packages rather than silently changing target.
  5. Manually dispatch Native Ghost RPM candidates. Without both variables the build job is skipped. There is no automatic push/tag release workflow.

The runner itself needs no new Docker/Podman installation. Existing runner configuration, certificates, sockets and remote access are not changed here. No secrets are needed to build this public repository. The checkout action does not persist credentials. The build workflow uploads only build evidence as a CI artifact for seven days. It never uploads RPMs or SRPMs. Separate manual and daily automatic release workflows publish only the exact artifacts covered by successful native acceptance. The daily chain additionally requires the populated upgrade/recovery gate. A separate manually dispatched private native installation workflow uses the existing runner host SSH identity and Remote Podman API. It transfers candidates directly to the owner's disposable VM; it never uploads RPM artifacts. Its host label and key setup are described in runner SSH setup.

Rocky-built candidates still require fresh RHEL 10.2 installation acceptance; build OS provenance is recorded and is not a RHEL compatibility certificate.

The build emits work/rpmbuild/{RPMS,SRPMS} and work/evidence with source pins, installed build RPMs, npm dependency inventory, upstream Go/pnpm locks and RPM SHA-256 values. SRPMs contain preassembled dependency payloads; they are not yet complete offline-rebuildable distribution sources. Full original-source rebuilding and a complete SBOM/license review remain open. CycloneDX inventories now include physical npm dependency edges, native file hashes and migration-helper Go components; completeness gaps and license review items remain explicit. See distribution quality and native test evidence.

Binary RPMs downloaded from Forgejo Packages are signed by Forgejo and verified with native DNF/GPG checks. Original binary/source ZIPs under Releases retain their original unsigned RPM bytes and SHA-256 acceptance evidence. Detached release signatures and signed repository metadata are not established by those RPM signature checks; do not treat them as already implemented. Keep repository RPM signature checking enabled as described in registry setup.

Installation and validation

Follow docs/install.md only on a disposable RHEL test VM first. The RPM-only build workflow does not execute systemd/SELinux acceptance inside a container. The separate private native test workflow runs services on a real VM. A Rocky 10.2 test is preliminary; use a fresh RHEL 10.2 VM for RHEL acceptance and separately repeat acceptance on each later 10.x minor version. Future versions are a target, not an already-tested compatibility guarantee.

Run bash scripts/check.sh locally for configuration checks. On the build image, bash scripts/build.sh builds all three RPMs; bash scripts/smoke-test.sh inspects package metadata. On the configured test VM bash scripts/test-installed.sh checks active native services, loopback sockets and the SELinux domain. The populated upgrade/recovery regression passed Ghost 6.69.0-7 to 6.71.0-8, including seven database migrations, existing content checks and cold backup recovery after an injected startup failure. This is one tested same-major path, not a general upgrade matrix. See the report and recovery limits. Complete docs/acceptance.md, including real federation and RHEL tests, before deploying in those additional scenarios.

publish.sh without arguments deliberately exits with failure. The manual publish-tested.yml workflow requires exact successful native CI proof, verifies all artifact hashes and checks the complete public Forgejo downloads, returning the release to draft if a download check fails. It uses the existing short-lived workflow token. A build alone never lifts the guard.

Known limits

  • Ghost officially targets a different supported hosting stack; RHEL is this project's integration target. MySQL 8.4 behavior must be validated; MariaDB is not substituted. A remote MySQL server is allowed, so server RPMs are suggested, not hard dependencies of application RPMs.
  • Valkey is optional: MySQL is ActivityPub's default KV store. To test Valkey, uncomment FEDIFY_KV_STORE_TYPE=redis, host, port and REDIS_MODE=standalone. No queue is enabled; upstream's MQ mode uses Google Pub/Sub, not Valkey.
  • SELinux policy compilation and runtime AVC review still require real RHEL. It intentionally grants Nginx access only to Ghost ports. Service accounts separate application files by DAC; both services currently share ghost_t.
  • Database provisioning, TLS, Ghost first-run setup, ActivityPub handshake and backups are explicit administrator steps. RPM scriptlets never migrate a DB, start services, change firewalls or configure remote infrastructure.
  • Import/conversion of independently managed installations and cross-major upgrades remain outside scope. Same-major populated RPM upgrades and backup-based recovery have a native regression gate. Recovery requires matching RPMs plus a consistent database/content/configuration backup; an RPM downgrade alone does not reverse database migrations. The ActivityPub SQL engine also serves explicit initial schema setup.

Upstream references: Ghost, ActivityPub, golang-migrate, Forgejo Actions.

Daily automatic checks for new Ghost and ActivityPub releases at 05:30 Europe/Vienna, followed by builds, native acceptance tests and publication: workflow and failure handling.