Skip to content

feat: doctor, REST plugin filter, HTTP E2E and security fixes (0.8) - #17

Merged
ogorzalka merged 8 commits into
mainfrom
feat/0.8-doctor
Nov 25, 2026
Merged

ogorzalka merged 8 commits into
mainfrom
feat/0.8-doctor

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

What

  • wp headless doctor: checks on the running site, with the fix for each finding (--format=json, non-zero exit on failure).
  • rest_plugins: load only the listed plugins on REST requests (advanced, off by default).
  • tests/E2E/run.sh: the HTTP contract checked against a throwaway WordPress in Docker (27 checks).
  • Fixes found by the E2E: a wrong hl. token was served anonymously instead of 401; wp headless theme install was refused by WP-CLI.
  • Fixes from a security review: open redirect through $1 substitution, ReDoS guard on redirect patterns, dot-segment bypass of the gate, rotation never extends expiry, preview token bound to its site, minimum preview secret length, search page cap.

Tests

525 unit, 91 integration (real WordPress, Yoast, Polylang, WPGraphQL, Contact Form 7), E2E green, composer qa green.

Public surface: new config key rest_plugins; preview.secret now needs 32 characters.

@ogorzalka ogorzalka added the api-change The public surface (hooks, config keys, commands) changes label Nov 25, 2026
@ogorzalka
ogorzalka merged commit 115e5b4 into main Nov 25, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-change The public surface (hooks, config keys, commands) changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant