Skip to content

2.1.0

Latest

Choose a tag to compare

@gp247net gp247net released this 18 Nov 12:23

feat(sandbox): deny by default, only the storefront writes (2.1.0)

While demo mode is on, only the storefront may change data: routes in the
"front" group, the customer REST API (api/front, api/v2/front), listed
storefront routes, and Livewire updates whose signed snapshot was mounted on
a storefront page. Everything else - admin, the admin REST API of any
version, MCP, vendor/partner panels - is view-only whatever the caller's
login (session, token or none). Operator sign-in/out and console/queue work
are left alone.

  • Classify requests from the matched route and the HMAC-checked Livewire
    snapshot; never from Referer or other client headers.
  • Replace the group middleware with a global RouteMatched guard that stops
    every non-GET request (except Livewire endpoints) and destructive GET
    routes before route middleware and controllers run, so extension
    import/install, backup and uploads never start.
  • Refuse Livewire upload built-ins and lock the backup module components on
    restricted surfaces; keep Livewire temporary uploads on the local disk.
  • Hook every database connection, refuse queueing jobs from restricted
    requests, treat unknown SQL verbs as writes, and do not log blocked actions.
  • Remove SandBoxMiddleware and the "sandbox-demo" middleware alias.
  • Rewrite the README (vi/en/ja) for the new model.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com