Repository navigation
Releases
2.1.0
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
2.0.6
feat(locale): Japanese (ja) translation; 2.0.6
- Lang/ja mirrors Lang/en (same keys and placeholders).
- README in Japanese (readme_ja.md / README_ja.md) and a three-language bar
(Tiếng Việt · English · 日本語) on every README; version bumped to 2.0.6.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
2.0.5
chore: support GP247 Core 3.0 and 3.1 (2.0.5)
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
2.0.4
fix(sandbox): guard the MultiVendor vendor backend again (2.0.4)
adminSurfacePrefixes() read the vendor backend path from
Plugins/MultiVendorPro.route.MULTIVENDOR_ADMIN_PATH. The plugin was renamed to
MultiVendor and its config moved to Plugins/MultiVendor.route..., so the old key
returned null: /vendor_admin/* (and the Livewire updates posted from it) were not
an admin surface, Layer A never engaged, and a demo vendor could save anything.
Read the new key, keep the old one for sites still on the pre-rename plugin.
Also: README (EN/VI) — install from the command line (gp247 3.x).
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
2.0.3
fix(sandbox): narrow admin-API surface to api/core, keep customer api/front open
The api prefix covered both api/core/* (API to admin) and api/front/*
(the customer-facing REST API: front login, member orders). Guarding the
whole api prefix would wrongly block customer API calls.
Narrow admin_surface_prefixes to api/core so only the admin-facing API is
sandboxed; storefront web checkout/registration (Livewire) and the customer
REST API (api/front/*) keep working. version 2.0.3.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
2.0.2
fix(sandbox): scope write-guard to admin + admin-API surfaces only
The Layer A DB::beforeExecuting hook is global, so it also fired on the
storefront: a product page write (view counter) was blocked whenever an
admin was logged in the same browser, rendering a full-page 403 on
/product/*.html.
isActive() now also requires isAdminSurface(request()): the request path
starts with an admin/API prefix (admin_surface_prefixes + GP247_ADMIN_PREFIX
- vendor/pmo when installed), or a Livewire update whose Referer host page is
admin. Storefront, console and queue are never enforced.
- config.php: add admin_surface_prefixes (gp247_admin, api).
- readme: note admin/API-only scope; version 2.0.2.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
2.0.1
docs(sandbox): rewrite bilingual README for v3 guard; set configCode Security
- readme_vi.md / readme.md: 247-doc bilingual docs describing the v3
two-layer guard (DB write choke point + LFM route-name block), the
.env switch, infra allowlist, and conditions/Q&A. Replaces the stale
v1 method-based description. - gp247.json: group under configCode "Security"; bump version 2.0.1.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com