← All legal & docs

Security & Anti-Fraud Controls

Effective date: 2026-08-09

Payments

ControlImplementation
Card dataStripe Checkout only — never posted to our forms
WebhooksStripe-Signature verification required; reject unsigned
Secrets`billing/.env.stripe` gitignored; production secrets in host vault
IsolationEpic price IDs only — not shared with other apps
RadarStripe Radar enabled on live account (Dashboard)

Product access

ControlImplementation
Local codePrivate GitHub; invite only after paid `repo_access`
Local usage feesDisabled by policy (`mode=local`)
Hosted useEntitlement check `GET /v1/entitlement?mode=production`
Admin grants`EPIC_BILLING_ADMIN_SECRET` required

Seedance / AI video (prepaid)

ControlImplementation
No free gensDebit `POST /v1/media/debit` before Cloudflare AI run
Debit authShared secret `EPIC_MEDIA_SECRET` (or admin secret) on debit only
Idempotency`jobId` recorded; replay does not double-charge
CheckoutStripe Checkout only; plan metadata `seedance_*`
Prompt policyGatekeeper deny-list + provider safety; AUP enforcement
SecretsAI token / media secret as Worker secrets — never git
Rate limitsCheckout + debit endpoints rate-limited

Deployed (production) checklist

1. `EPIC_DEPLOYMENT_MODE=production`

2. `EPIC_BILLING_API_URL=https://…` HTTPS only

3. `STRIPE_SECRET_KEY=sk_live_…`

4. Webhook endpoint HTTPS + `STRIPE_WEBHOOK_SECRET`

5. Strong `EPIC_BILLING_ADMIN_SECRET` and `EPIC_MEDIA_SECRET`

6. Stripe prices: `STRIPE_PRICE_SEEDANCE_CLIP` / `_PACK_5` / `_PACK_20`

7. Custom Gatekeeper vars: `BILLING_API_URL`, `PUBLIC_SITE_URL`; secrets for media + AI

8. No debug stack traces to clients

9. Rate-limit checkout, entitlement, and media debit endpoints

10. Cloudflare WAF / bot fight on public OS host when available

User scam prevention

Incident response

1. Rotate Stripe restricted keys if leaked

2. Revoke compromised GitHub invites

3. Freeze entitlements for fraudulent emails

4. Notify affected users if personal data exposure

Contact security issues: epictechai@gmail.com (subject: SECURITY)