Publish isolated WordPress staging over authenticated HTTPS #241

Merged
parkel merged 3 commits from feature/wordpress-staging-publication into main 2026-12-02 12:46:37 +01:00
Owner

New features

  • Publish a prepared WordPress staging revision on its own HTTPS hostname using the web node CLI. Refresh by preparing and publishing a new revision without changing the address or login.
  • Keep the previous revision available on a failed switch and prevent an active revision from being discarded. Provide explicit unpublish and discard operations.

Security and reliability

  • Require authentication for the entire staging site, including static assets. Keep staging responses out of shared caches and search indexes. Allow only the ACME HTTP-01 path to bypass the HTTP-to-HTTPS redirect.
  • Run each revision in an isolated PHP-FPM service with no network or mail access and no access to the live site files. Check the effective HTTPS route after Apache reloads and roll back if it does not serve the new revision.

Documentation

  • Document the hostname, certificate and credential requirements, publication, refresh, and cleanup.
  • Dashboard controls and applying WordPress updates directly to staging remain follow-ups under #234.

Verification

  • 674 tests ran with one skip. Ruff lint and formatting, migration checks, and git diff --check passed.
  • On Ubuntu 26.04, verified authentication for WordPress and static assets, the ACME challenge route with a local test certificate, PHP-FPM isolation, serving a real WordPress page, retaining the old revision on a deliberately failed reload, successful refresh, and cleanup. No production deployment or public certificate issuance was performed.

Refs #234

## New features - Publish a prepared WordPress staging revision on its own HTTPS hostname using the web node CLI. Refresh by preparing and publishing a new revision without changing the address or login. - Keep the previous revision available on a failed switch and prevent an active revision from being discarded. Provide explicit unpublish and discard operations. ## Security and reliability - Require authentication for the entire staging site, including static assets. Keep staging responses out of shared caches and search indexes. Allow only the ACME HTTP-01 path to bypass the HTTP-to-HTTPS redirect. - Run each revision in an isolated PHP-FPM service with no network or mail access and no access to the live site files. Check the effective HTTPS route after Apache reloads and roll back if it does not serve the new revision. ## Documentation - Document the hostname, certificate and credential requirements, publication, refresh, and cleanup. - Dashboard controls and applying WordPress updates directly to staging remain follow-ups under #234. ## Verification - 674 tests ran with one skip. Ruff lint and formatting, migration checks, and `git diff --check` passed. - On Ubuntu 26.04, verified authentication for WordPress and static assets, the ACME challenge route with a local test certificate, PHP-FPM isolation, serving a real WordPress page, retaining the old revision on a deliberately failed reload, successful refresh, and cleanup. No production deployment or public certificate issuance was performed. Refs #234
parkel added this to the v1.2.0 - WordPress and mail diagnostics milestone 2026-12-02 01:58:16 +01:00
parkel added 3 commits 2026-12-02 01:58:16 +01:00
Verify the active staging HTTPS route before completing publication
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
d0671fdc2b
parkel merged commit ffa906fc12 into main 2026-12-02 12:46:37 +01:00
parkel deleted branch feature/wordpress-staging-publication 2026-12-02 12:46:38 +01:00
Sign in to join this conversation.