Finish WordPress staging and import workflows #244

Merged
parkel merged 6 commits from feature/wordpress-workflows into main 2026-12-02 13:50:37 +01:00
Owner

New features

  • Refresh private WordPress staging from the site's WordPress workspace and test selected WordPress.org core, plugin, and theme updates on staging without updating production.
  • Preview a ZIP or TAR containing files/ and database.sql, prepare the import in an isolated runtime, and publish it after reviewing the verified destination.
  • Import into an empty website or replace an existing WordPress site after a recovery backup of its files and selected database.

Security and operations

  • Bound and validate the uploaded archive, exclude source database credentials, and use a separate managed database for the import.
  • Require HTTPS and explicit hostname confirmation in the panel. Keep the original root and database after an atomic publication so an operator can roll the file switch back.
  • Staging remains access-controlled, with indexing, scheduled tasks, and outbound mail blocked. The PR does not deploy to any production node.

Documentation

  • Document the export layout, preparation and review flow, prerequisites, and rollback command. An import uses one additional database under the hosting package quota.

Verification

  • Django suite: 689 tests run, one skipped. All 29 installer tests passed. Ruff, migration checks, and Git whitespace checks passed.
  • On Ubuntu 26.04, verified staging refresh and a staging-only update. Exercised the import through the systemd web-node socket with real MariaDB and Apache TLS configuration, including an empty destination, the backup requirement for live replacement, and rollback to the original WordPress files and database.

Closes #234
Closes #235

## New features - Refresh private WordPress staging from the site's WordPress workspace and test selected WordPress.org core, plugin, and theme updates on staging without updating production. - Preview a ZIP or TAR containing `files/` and `database.sql`, prepare the import in an isolated runtime, and publish it after reviewing the verified destination. - Import into an empty website or replace an existing WordPress site after a recovery backup of its files and selected database. ## Security and operations - Bound and validate the uploaded archive, exclude source database credentials, and use a separate managed database for the import. - Require HTTPS and explicit hostname confirmation in the panel. Keep the original root and database after an atomic publication so an operator can roll the file switch back. - Staging remains access-controlled, with indexing, scheduled tasks, and outbound mail blocked. The PR does not deploy to any production node. ## Documentation - Document the export layout, preparation and review flow, prerequisites, and rollback command. An import uses one additional database under the hosting package quota. ## Verification - Django suite: 689 tests run, one skipped. All 29 installer tests passed. Ruff, migration checks, and Git whitespace checks passed. - On Ubuntu 26.04, verified staging refresh and a staging-only update. Exercised the import through the systemd web-node socket with real MariaDB and Apache TLS configuration, including an empty destination, the backup requirement for live replacement, and rollback to the original WordPress files and database. Closes #234 Closes #235
parkel added this to the v1.2.0 - WordPress and mail diagnostics milestone 2026-12-02 13:21:07 +01:00
parkel added 2 commits 2026-12-02 13:21:07 +01:00
Add the WordPress workspace and safe archive previews
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Successful in 1m44s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Failing after 1m51s
040b70fd60
parkel added 1 commit 2026-12-02 13:22:22 +01:00
Extract import files without reusing source credentials
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
4bc0012fa1
parkel added 1 commit 2026-12-02 13:23:08 +01:00
Merge remote-tracking branch 'origin/main' into feature/wordpress-workflows
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
23da72340b
parkel added 2 commits 2026-12-02 13:41:47 +01:00
Connect WordPress import previews, backups and publication to the panel
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
83aebe155f
parkel marked the pull request as ready for review 2026-12-02 13:43:44 +01:00
parkel merged commit f3e93e6e0a into main 2026-12-02 13:50:37 +01:00
parkel deleted branch feature/wordpress-workflows 2026-12-02 13:50:37 +01:00
Sign in to join this conversation.