1. Security Practices
- Minimal permissions: the App requests only
read_productsandwrite_discounts— no customer, order, or company data scopes. This is the smallest scope set that can operate a discount function. - No protected customer data: customer tag eligibility is evaluated by Shopify, which returns only a boolean result. The App never reads customer records, so no Protected Customer Data approval is required and no customer PII enters the App.
- Encryption in transit: all traffic to and from the App and the Shopify Admin API uses TLS (enforced by Shopify's platform requirements).
- Webhook verification: all Shopify webhooks (GDPR compliance and app lifecycle) are authenticated with Shopify's HMAC signatures; the GDPR endpoints are verified end-to-end with real signed requests (including replay de-duplication).
- Server-side ownership checks: discount rule edits are validated server-side against the app's own function, so rules created by other apps cannot be modified or overwritten.
- Discount safety floor: a minimum discount percentage is enforced on both the UI and the discount function, preventing accidental 0%-off rules from going live.
- Compliance audit trail: every GDPR webhook handling event (data request, customer redaction, shop redaction) is persisted in the App's database as durable evidence that the request was received and handled (metadata only — no names, emails, phone numbers, or tag values).
- Discount decision logs: discount eligibility decisions (percentage applied, whether a tag/company matched, numeric customer ID where available) are logged by the Shopify-hosted discount function and retained in Shopify's function-log channel; they are not written to the App's database.
2. Monitoring
The App is exercised by an automated test suite on every change (unit, integration, and end-to-end acceptance suites, none skipped, including function integration tests through the real WebAssembly build and GDPR webhook acceptance checks), and application logs capture runtime errors and webhook handling events. The production service runs on Render (https://b2b-wholesale-pricing.onrender.com) with a platform health check on a public page and no external uptime monitor.
3. Incident Response Process
- Detect & assess (day 0): an incident is identified via logs or merchant report, and its scope (data, stores, functions) is assessed.
- Contain: affected functionality is disabled or reverted (e.g. deactivating a discount function version) to stop impact.
- Notify: if personal data is involved, affected merchants are notified, and supervisory authorities are notified within 72 hours as required by GDPR Article 33 where applicable.
- Remediate & document: the root cause is fixed, tests are added to prevent recurrence, and the incident is documented with evidence.
4. Reporting a Vulnerability
If you believe you have found a security issue in this App, please report it to zhang.rainlam@gmail.com with details and reproduction steps. We will respond and coordinate a fix before any public disclosure.