continuous-integration/drone/push Build is passingDetails
Checkout takes an optional paymentMethod. COD orders are confirmed and
deduct stock at once; UPI_MANUAL orders hold stock for 48 hours while the
customer reports a UTR and staff confirm the payment. Paid checkouts
require a pricing policy so the payable total is known.
Staff confirm, ship (with courier/tracking note) and deliver orders.
Cancelling a confirmed order restocks it; shipped orders cannot be
cancelled. Status changes are kept in an append-only history and a
database trigger enforces the allowed transitions. Coupon limits now
count confirmed, shipped and delivered orders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
continuous-integration/drone/push Build is passingDetails
continuous-integration/drone/pr Build is passingDetails
Staff with catalog.manage upload JPEG, PNG or WebP photos (2 MiB, 8 per
product, signature checked) and remove them. Published products serve
photos publicly from the storefront with one-day caching; storefront and
admin product views list photo IDs in upload order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
continuous-integration/drone/push Build is passingDetails
continuous-integration/drone/pr Build is passingDetails
POST /auth/register creates an ACTIVE, role-less account in the given
organization and returns a session. Customers can use their own cart,
checkout, addresses, orders and wishlist, and nothing permissioned.
Throttled by the auth guard plus 10 registrations per IP per hour;
duplicates return 409. Email verification is not implemented yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
continuous-integration/drone/push Build is passingDetails
continuous-integration/drone/pr Build is passingDetails
- Add TRUST_PROXY (IPs, CIDRs or loopback/linklocal/uniquelocal; never
"true") so request.ip uses X-Forwarded-For only from known hops.
Without it every visitor shares the proxy's rate-limit bucket.
- Occasionally sweep long-expired rate_limits rows.
- Patch zod, nodemailer, multer, fast-uri and effect advisories; the
production audit reports no known vulnerabilities.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>