Prepare isolated WordPress staging revisions #240

Merged
parkel merged 2 commits from feature/wordpress-staging into main 2026-12-02 01:42:06 +01:00
Owner

Refs #234. Authenticated HTTPS publication, the panel's Refresh from live workflow, and staging updates remain open.

New features

  • Prepare and verify an unpublished WordPress revision from the web-node CLI. Each revision has its own files, Unix identity, MariaDB database, and WordPress salts.
  • Verify the staging URL and disabled indexing in the copied database before marking it ready. A refresh attempt prepares a separate revision and preserves the earlier copy.
  • Discard an unpublished revision and its dedicated resources using its original manifest.

Security

  • Verify the captured configuration against the named local database before cloning. Import the native database dump with the candidate database's credentials.
  • Run verification in a private systemd network and mount namespace. Bind the local MariaDB socket directory into a private /run and disable PHP mail.
  • Remove copied database configuration even when validation fails.

Documentation

  • Document staging prerequisites and the node-level prepare and discard commands. The commands keep revisions unpublished.

Verification

  • Django suite ran 670 tests with one skip. Ruff, migration checks, and diff checks passed.
  • An Ubuntu 26.04 VM with WordPress, WP-CLI, and MariaDB verified the private copy and separate database. The test confirmed the staging URL, disabled indexing, blocked TCP, inaccessible live web files, replay, and scoped cleanup.
  • A failed second preparation retained the first candidate and the live configuration. The failed candidate did not retain the copied WordPress configuration.
Refs #234. Authenticated HTTPS publication, the panel's Refresh from live workflow, and staging updates remain open. ## New features - Prepare and verify an unpublished WordPress revision from the web-node CLI. Each revision has its own files, Unix identity, MariaDB database, and WordPress salts. - Verify the staging URL and disabled indexing in the copied database before marking it ready. A refresh attempt prepares a separate revision and preserves the earlier copy. - Discard an unpublished revision and its dedicated resources using its original manifest. ## Security - Verify the captured configuration against the named local database before cloning. Import the native database dump with the candidate database's credentials. - Run verification in a private systemd network and mount namespace. Bind the local MariaDB socket directory into a private `/run` and disable PHP mail. - Remove copied database configuration even when validation fails. ## Documentation - Document staging prerequisites and the node-level prepare and discard commands. The commands keep revisions unpublished. ## Verification - Django suite ran 670 tests with one skip. Ruff, migration checks, and diff checks passed. - An Ubuntu 26.04 VM with WordPress, WP-CLI, and MariaDB verified the private copy and separate database. The test confirmed the staging URL, disabled indexing, blocked TCP, inaccessible live web files, replay, and scoped cleanup. - A failed second preparation retained the first candidate and the live configuration. The failed candidate did not retain the copied WordPress configuration.
parkel added this to the v1.2.0 - WordPress and mail diagnostics milestone 2026-12-02 01:41:01 +01:00
parkel added 2 commits 2026-12-02 01:41:01 +01:00
Prepare and verify private WordPress staging revisions
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
cc339cb361
parkel merged commit ae95e75f3a into main 2026-12-02 01:42:06 +01:00
parkel deleted branch feature/wordpress-staging 2026-12-02 01:42:07 +01:00
Sign in to join this conversation.