Protect Studio catalog images and expose canonical workspace bootstrap

This commit is contained in:
khondokartowsif171
2026-10-18 22:53:29 +06:00
parent cbe6e0ae94
commit 07f711ff2d
6 changed files with 178 additions and 5 deletions
+10
View File
@@ -29,3 +29,13 @@ Import request pacing defaults to 350 ms between source requests, consistent wit
A separate offline Nginx image build reproduces all 11 current web asset files after line-ending normalization and omits backend/test/configuration sentinel files. The candidate Nginx configuration validates. No candidate HTTP backend is running in production.
Price format reference: https://developer.woocommerce.com/docs/apis/store-api/resources-endpoints/products/ documents Store API currency/minor-unit fields. https://schema.org/PriceSpecification defines structured price specifications. A parent/range amount remains distinct from a selected variation's selling price.
# Workspace and raster image integration — 18 October 2026
The protected API now exposes `GET /api/workspace` for the canonical Client UUID, tenant, display name and catalog permission. It returns no saved catalog or internal namespace. Missing login and owner workspace selection remain explicit failures.
Catalog list/import/delete responses replace merchant image URLs with a same-origin `/api/catalog-image` reference. That route resolves the product from the authenticated workspace's saved catalog; arbitrary URL parameters are rejected. Its outbound reads use the bounded public fetcher, including DNS/redirect checks, a 5 MiB decoded-body ceiling and ten-second timeout. Four image reads may run concurrently. Only signature-recognized PNG, JPEG, GIF and WebP responses are returned. HTML and SVG are rejected. This is format recognition, not complete image decoding or a claim that every source image is supported.
The backend candidate is not deployed. Frontend authentication/workspace selection, private browser-state namespacing, imported-text rendering, connected Client catalog access and persistent production configuration remain required release work. The prototype global GT catalog is not a valid default for another client. No Meta connector inspection or modification is part of this work.
The local branch reference was found zero-filled. Its bytes were retained outside the Git refs directory, the remote branch was read, and the existing local commit object was checked before restoring the reference to `cbe6e0ae94e22e6c34ecc55bad036ff8c165b488`. No working files were reset. The cause of that local reference damage is not established.