Skip to content

fix(security): accept edit_pages in REST whitelist bypass - #156

Merged
yuriipavlov merged 1 commit into
developfrom
feature/serialize-blocks-endpoint
Aug 12, 2026
Merged

fix(security): accept edit_pages in REST whitelist bypass#156
yuriipavlov merged 1 commit into
developfrom
feature/serialize-blocks-endpoint

Conversation

@yuriipavlov

@yuriipavlov yuriipavlov commented Aug 12, 2026

Copy link
Copy Markdown
Member
  • RestApiFilter::restApiWhitelistOnly() now bypasses the namespace whitelist for edit_pages holders too, not just edit_posts — needed by docs-publisher, which only has edit_pages (least-privilege), previously requiring an over-broad edit_posts grant as a workaround.
  • .gitignore: ignore machine-local Claude Code runtime artifacts.

…/v1 from whitelist

- RestApiFilter::restApiWhitelistOnly() now bypasses the namespace whitelist
  for edit_pages holders too, not just edit_posts — needed by docs-publisher,
  which only has edit_pages (least-privilege), previously requiring an
  over-broad edit_posts grant as a workaround.
- 'ska/v1' removed from RestApiNamespaceWhitelist: nothing registers a
  public route under the addon's own namespace anymore now that
  serialize-blocks and the Stripe routes moved to the theme's SK_REST_API_NS
  (skt/v1), which is already auto-whitelisted.
- .gitignore: ignore machine-local Claude Code runtime artifacts.
@yuriipavlov yuriipavlov changed the title fix(security): accept edit_pages in REST whitelist bypass; remove ska… fix(security): accept edit_pages in REST whitelist bypass Aug 12, 2026
@yuriipavlov
yuriipavlov merged commit 90145c1 into develop Aug 12, 2026
3 checks passed
@yuriipavlov
yuriipavlov deleted the feature/serialize-blocks-endpoint branch August 12, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant