Security practices
Effective date: November 27, 2026
Owner: Tilt Fox Games LLC, 7533 S Center View Ct Ste N, West Jordan, UT 84084, United States
Contact: support@gratei.com
This page, together with the incident response policy, states how we protect Gratei and any personal data it processes. It backs the Shopify protected customer data (level 2) requirements. It is an operational policy, not legal advice.
The public URL of this page is /security on the app’s public origin (production: https://shop.gratei.com/security).
1. Data minimization and data-loss prevention
Gratei is designed so that shopper name, email, address, and phone are never written to our servers.
- Thank you page checkout prefill is built only in the shopper’s browser from Shopify’s checkout APIs and is never sent to our app server or tracking pixel (
/i). - The
orders/createpath, once approved, stores order id, totals, currency, offer attribution, and a truncated HMAC customer key — not raw customer ids or contact fields. - Server logs pass through a scrubber (
app/lib/log-scrub.ts) that redacts emails, phone numbers, secrets, and named PII fields. Tracking and redirect URLs do not accept checkout prefill parameters. - Merchant staff emails may appear in the Shopify session table because the official session library stores them; they are not copied into audit logs or analytics.
- Access is least privilege: production secrets are not used in development, and staff accounts are unique.
This combination of minimization, scrubbing, purpose limitation, and access control is our data-loss-prevention strategy.
2. Encrypted backups
When production hosting is provisioned on Railway (or a successor host):
- The production PostgreSQL instance must use encryption at rest (the host’s managed disk encryption, AES-128 or stronger).
- Automated backups of that database must be enabled and encrypted with the host’s backup encryption.
- Backup retention will be at least 7 days, preferably 30 days.
- A restore into a non-production database must be tested at least once every 12 months, and before the first production cutover.
- Backups must not be copied onto laptops or unencrypted disks.
Current status (28 November 2026). The production host (Railway) and its managed PostgreSQL database are provisioned at https://shop.gratei.com. Railway documents that all volume data, volume backups, and environment variables are encrypted at rest with AES-256. Scheduled automated backups are not yet enabled: the Railway plan in use does not currently allow volume backups. We will not install the app on live merchant stores, or store production merchant or shopper analytics data, until scheduled encrypted backups are on and a restore test into a non-production database has been completed and recorded. The step-by-step enablement is in docs/deploy-railway.md.
3. Test and production separation
- Development uses a local or isolated Postgres database (
DATABASE_URLin.env, never committed) and the development app configuration (shopify.app.tomlwith a dev tunnel). - Production uses a separate project, a separate Postgres instance, separate Shopify API credentials, and
APP_ENV=productionwithPUBLIC_APP_URL=https://shop.gratei.com. - A runtime check (
app/lib/env-separation.ts) fails the health check if production is pointed at the local development database URL, or if a non-production environment is usingPRODUCTION_DATABASE_URL. - Test stores and production stores do not share a database. Production data is never copied into development unless it has been anonymized and contains no shopper PII (which we do not store in any case).
4. Password requirements and staff access
- Merchant admin: Shopify OAuth only. Gratei has no password login, no “forgot password” flow, and no local user table for merchants.
- Tilt Fox Games staff who can access production (host dashboard, Shopify Dev Dashboard, GitHub, email, or the production database) must use:
- a unique account (no shared logins);
- a password of at least 12 characters, mixing letters, numbers, and special characters, stored in a password manager;
- multi-factor authentication (2FA);
- least-privilege roles.
- Shopify Partner / Dev Dashboard, GitHub, and the production host must have 2FA enabled before production data is stored.
- Access is removed when a person no longer needs it.
5. Access logging
The app writes an AuditLog row when a merchant admin creates, updates, or deletes an offer, changes settings or plan, exports analytics, when auto-setup reads recent orders, and when compliance or uninstall webhooks run. Each row stores shop, actor type, Shopify staff user id (never email), action, resource, scrubbed metadata, and time.
Audit logs are retained up to 12 months and are deleted on shop/redact. They are reviewed during incidents and at least quarterly in production.
We do not write a row for every incoming orders/create event, because that would duplicate the order log. Ingestion is system processing of already-minimized fields.
6. Encryption in transit
All production application URLs are HTTPS. Shopify webhooks and Admin API calls use TLS. We do not enable weak TLS versions on the production host.
7. Incident response
The full procedure, severity scale, roles, evidence rules, and Shopify 24-hour notice requirement are in [Incident response policy](./incident-response.md) and on the public /security page.
8. Contact
Tilt Fox Games LLC
7533 S Center View Ct Ste N
West Jordan, UT 84084
United States
support@gratei.com
Incident response policy
Effective date: November 27, 2026
Owner: Tilt Fox Games LLC, 7533 S Center View Ct Ste N, West Jordan, UT 84084, United States
Contact: support@gratei.com
This policy describes how Tilt Fox Games LLC prepares for, detects, contains, and reports security incidents and personal-data breaches involving Gratei. It is an operational policy, not legal advice. No personal staff names are used; the “security lead” is the person at Tilt Fox Games LLC then responsible for production systems.
1. Goals
- Protect merchants and shoppers.
- Contain and eradicate confirmed incidents quickly.
- Meet Shopify’s requirement to notify Shopify within 24 hours of a confirmed breach or compromise of merchant or customer data.
- Preserve evidence and improve controls after the event.
2. Severity
| Level | Examples | Initial response target |
|---|---|---|
| Critical | Confirmed unauthorized access to the production database, leaked Shopify API secrets, ransomware, or any exposure of shopper or merchant personal data | Immediate; Shopify notice within 24 hours of confirmation |
| High | Suspected intrusion, exploit of a production vulnerability, or a backup restore failure during an incident | Same day |
| Medium | Misconfiguration that does not appear to have exposed data, or a dependency vulnerability with no known exploit in our environment | 3 business days |
| Low | Phishing against staff that was blocked, or a policy exception with no data impact | Next scheduled review |
3. Roles
- Security lead — decides severity, coordinates containment, and is the Shopify and merchant contact for incidents.
- Engineering on duty — isolates systems, rotates secrets, deploys fixes, and collects evidence.
- Communications — drafts merchant notices from the facts the security lead approves. Public statements must not include personal names of Tilt Fox Games staff unless required by law.
There is no 24/7 operations center. Email support@gratei.com is the public intake. The security lead checks this mailbox at least daily and more often during a known incident.
4. Detection and intake
Incidents may be reported by merchants, Shopify, hosting alerts, audit-log review, or staff. Anyone who suspects an incident must email support@gratei.com with the subject “Security incident”, the shop domain if known, what was observed, and when. Do not attach raw customer personal data.
Unusual access to order data should be visible in the app audit log (AuditLog). The security lead reviews audit anomalies when investigating an incident and at least quarterly in production.
5. Response steps
1. Triage — confirm whether an incident is occurring and assign a severity.
2. Contain — revoke or rotate compromised secrets (Shopify API secret, session tokens, host credentials), isolate affected services, and block unauthorized access.
3. Preserve evidence — snapshot relevant logs (already scrubbed of customer PII), audit rows, deploy history, and host events. Do not alter evidence casually.
4. Eradicate and recover — patch, redeploy, restore from an encrypted backup if needed, and verify with the health check and a smoke test against a non-production store first.
5. Notify — for a confirmed personal-data breach or compromise of merchant data: notify Shopify within 24 hours of confirmation, and notify affected merchants without undue delay at their store email, with what happened (as known), what data was involved, what we did, and what they should do. We will also cooperate with any Shopify data-protection review.
6. Review — within 10 business days of closing a High or Critical incident, record root cause, timeline, and follow-up actions. Update this policy if the process was insufficient.
6. Evidence and retention
Incident records are kept for at least 12 months, or longer if an investigation or law requires it. They must not contain shopper names, emails, addresses, or phone numbers. If such data is received in a report, it is redacted.
7. Testing this plan
Before production data is stored, and at least once every 12 months after that, the security lead walks through a tabletop exercise (for example, a leaked API secret or a failed backup restore) and notes the result in the internal operations log.
8. Related documents
- Security practices
- Privacy policy
- Data processing agreement
- [Railway deploy runbook](./deploy-railway.md)
These pages describe how Tilt Fox Games LLC operates Gratei. They are not legal advice.