Security & data handling
This page doubles as the answer sheet for Meta's data processing questionnaire.
What data the connector accesses and why
| Data | Purpose | Retention |
|---|---|---|
| Email (verified), optional name, phone | Account identity, receipts, OTP sign-in | Until the user deletes their account or 24 months of inactivity |
| Recipient name, email, phone, shipping address | Passed to Snappy to fulfil the order; carriers need the phone | Life of the order + 7 years (tax/accounting), then anonymised |
| Quotes, checkouts, orders, event timeline | Purchase history, support, refunds | Same as above |
| Stripe payment intent / refund ids | Reconciliation and refunds. No card data ever reaches the platform | Same as above |
| Agent client id and scopes | Authorization and audit | Life of the grant |
| Sent messages (email/SMS bodies) | Proof of delivery for receipts | 90 days |
| SMS consent records (number, time, agent, consent text, STOP) | Legal basis for texting; opt-out enforcement | 5 years (TCPA record keeping) |
| Support requests | Returns, damaged / missing items, refunds | Life of the order + 7 years |
| Protocol checkout sessions (ACP, UCP): buyer name, email, phone, address, cart, the platform's request and the payment summary (handler, brand, last four) | Pricing and completing a purchase started on ChatGPT, Google or Shopify; the completed ones become ordinary orders | Open sessions expire after the session TTL (default 60 min); completed sessions follow the order; the payment token itself is never stored |
We do not sell data, build advertising profiles, or use it for anything other than fulfilling and supporting purchases. Deleting a user removes their profile and tokens immediately and anonymises orders after the legal retention period.
Protection
- All traffic TLS 1.2+ behind a Google global load balancer; HSTS on.
- Cloud SQL with private IP only, inside the project VPC; encrypted at rest (Google-managed keys).
- Secrets in Secret Manager, injected into Cloud Run at runtime; nothing in the repo or CI logs.
- Tokens, OTP codes and client secrets are stored as salted SHA-256 hashes.
- Stripe and Snappy webhooks are signature-verified and replay-protected (unique event ids). Inbound UCP requests signed with RFC 9421 are verified against the platform's published keys; AP2 checkout mandates are verified (platform signature, key binding, Snappy's own merchant authorization, matching id, total and lines).
- Every URL the service fetches on someone else's behalf (a competitor page cited by a shopper, an agent's
callbackUrl, a platform's webhook and profile URLs) is restricted to https on a public hostname, resolved before the request and refused when any address is loopback, private, link-local or cloud-metadata; redirects are re-checked hop by hop (competitor pages, at most three) or not followed at all (callbacks, webhooks). - Outbound order webhooks are signed: ACP with an HMAC
Merchant-Signature, UCP with RFC 9421 HTTP Message Signatures over the business key (published at/.well-known/jwks.json, rotated with a 14-day overlap), Google's order endpoint with the API key Google issued. - Platform API keys are stored as salted hashes (last four kept for display), platform webhook secrets AES-GCM encrypted under the platform secret, and the business signing keys live in Secret Manager. Delegated payment tokens (Stripe Shared Payment Tokens, Google Pay tokens) are redeemed once with an idempotent PaymentIntent and never persisted; card data never reaches the service under any protocol.
- Every admin action is audited with actor, target and before/after.
- The public product and order pages render supplier HTML through an allow-list (bare formatting tags only, every attribute and every other tag dropped) under a script-free Content-Security-Policy; link targets are rendered only when they are http(s). Cross-origin requests are never allowed to carry credentials: browser clients use bearer tokens, and the cookie-authenticated admin and OAuth pages are same-origin. Disabling an OAuth client or switching a protocol off cuts off every live token and the MCP bindings at once.
- Production (
agents.snappy.com) is internal; sandbox is public. On prod the edge Cloud Armor policy refuses every path except/healthzand/readyzunless the request comes from Snappy's Twingate egress addresses, which also keeps ChatGPT, Google and Shopify off the prod protocol endpoints and feeds. See Operations. - Admin portal behind Google Identity-Aware Proxy (organisation accounts only), plus an in-app allowlist with viewer/admin roles; every privileged action audited.
- Provider credentials (Snappy, Stripe, SendGrid, Twilio) are entered in the portal and written straight to Secret Manager; they are never displayed, logged or stored in the database (only a masked last-4 and timestamp).
- Minimum-privilege IAM: separate service accounts for runtime, deploy, Terraform plan and Terraform apply (GitHub OIDC, no long-lived keys).
Rate limits
Two layers, both answering 429 with Retry-After. The edge (Cloud Armor, per client address, global across instances) bans an address for 10 minutes when it crosses the ban threshold:
| Paths | Per address, per minute | Ban at |
|---|---|---|
/healthz, /readyz |
120 | – |
/oauth/* |
30 | 90 |
/mcp |
150 (prod 300) | – |
/v1/* writes |
120 (prod 240) | – |
/v1/* reads |
300 (prod 600) | 900 (prod 1800) |
/webhooks/* |
300 | – |
/acp/*, /ucp/* |
150 (prod 300) | ×3 |
/feeds/* |
30 | 90 |
/admin, /admin/* |
300 | 900 |
/p/*, /o/*, /pay/* |
120 | 360 |
| everything else | 600 | 1200 |
The application (per instance, apps/api/src/plugins/throttle.ts) adds limits keyed by credential where one exists, so a token or platform key used from many addresses is still bounded: sign-in code requests 10 and verifications 20 per address per 10 minutes, Google sign-in 20, consent 30, token endpoint 60 per minute, client registration 30 per hour, admin sign-in 20 per 10 minutes, admin API 300 per minute, /v1 reads 600 and writes 120 per minute per token, /acp, /ucp and /mcp 300 per minute per platform credential, feeds 30, shopper pages 120. The problem document carries code: rate_limited and retryAfterSeconds. Health probes and the OIDC-authenticated task endpoint are exempt. OTP codes are additionally locked after 5 wrong attempts and at most 5 live codes per address.
Credentials and prompts
Access tokens are never placed in tool descriptions, URLs, responses or logs (log redaction on authorization and cookie). Error messages never echo secrets.
Incident response
Security contact: security@snappy.com. We notify Meta at vendor-incident@meta.com within 48 hours of confirming an incident that affects Muse users, and cooperate with the investigation.
User controls
- Read-only grant at consent time.
- Revoke the agent at any time (
POST /oauth/revokeor via the agent platform); refresh-token reuse detection kills the whole family. - Receipt preferences and saved addresses are editable through the
profilescope.