vibe-code-security-checklist 0.1.0__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vibe_code_security_checklist-0.2.0/PKG-INFO +186 -0
- vibe_code_security_checklist-0.2.0/README.md +166 -0
- {vibe_code_security_checklist-0.1.0 → vibe_code_security_checklist-0.2.0}/check.py +233 -28
- {vibe_code_security_checklist-0.1.0 → vibe_code_security_checklist-0.2.0}/pyproject.toml +6 -5
- vibe_code_security_checklist-0.2.0/test_check.py +300 -0
- vibe_code_security_checklist-0.1.0/PKG-INFO +0 -110
- vibe_code_security_checklist-0.1.0/README.md +0 -90
- vibe_code_security_checklist-0.1.0/test_check.py +0 -84
- {vibe_code_security_checklist-0.1.0 → vibe_code_security_checklist-0.2.0}/.gitignore +0 -0
- {vibe_code_security_checklist-0.1.0 → vibe_code_security_checklist-0.2.0}/LICENSE +0 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: vibe-code-security-checklist
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: ShipReady by Shipmate: zero-dependency pre-launch security checker for Cursor, Lovable, Bolt, Next.js, Supabase, and Stripe apps.
|
|
5
|
+
Project-URL: Homepage, https://shipmate.agency
|
|
6
|
+
Project-URL: Repository, https://github.com/deeflect/shipready
|
|
7
|
+
Project-URL: Issues, https://github.com/deeflect/shipready/issues
|
|
8
|
+
Author-email: "Dmitry (Dee) Kargaev" <hi@deeflect.com>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: bolt,checklist,cli,cursor,lovable,nextjs,sarif,security,shipready,stripe,supabase
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Topic :: Security
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# ShipReady by Shipmate
|
|
22
|
+
|
|
23
|
+
A pre-launch security checklist and a zero-dependency checker for web apps built fast with **Cursor, Lovable, Bolt, v0, Next.js, Supabase, and Stripe**.
|
|
24
|
+
|
|
25
|
+
ShipReady scans a repo for leaked keys, missing Row Level Security, open write policies and unverified Stripe webhooks. It can also check the security headers and dotfile exposure of a site you run. Every finding has a stable rule ID and a page that explains the fix.
|
|
26
|
+
|
|
27
|
+
Automated scans catch obvious leaks. A person still has to test authorization logic and business rules. Use this before putting real users or live Stripe keys on your app.
|
|
28
|
+
|
|
29
|
+
## Quick start
|
|
30
|
+
|
|
31
|
+
Requires Python 3.10+. No third-party packages needed.
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# With Node installed (runs the same Python checker, needs Python 3.10+ on PATH)
|
|
35
|
+
npx @shipmate/shipready check .
|
|
36
|
+
|
|
37
|
+
# With uv
|
|
38
|
+
uvx --from vibe-code-security-checklist shipready check .
|
|
39
|
+
|
|
40
|
+
# Or pip install vibe-code-security-checklist, or run the single file directly
|
|
41
|
+
python3 check.py check .
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Commands
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Scan a local repo for client-exposed secrets, hardcoded AI/Stripe/Supabase keys,
|
|
48
|
+
# missing RLS, USING (true) write policies, and unverified Stripe webhooks
|
|
49
|
+
shipready check /path/to/your-app
|
|
50
|
+
|
|
51
|
+
# Check security headers and dotfile exposure on your own staging or prod URL (read-only)
|
|
52
|
+
shipready url https://yourapp.com
|
|
53
|
+
|
|
54
|
+
# Check which Supabase tables are exposed to the public anon key (read-only)
|
|
55
|
+
shipready --supabase-url https://<project-ref>.supabase.co --anon-key <anon-key>
|
|
56
|
+
|
|
57
|
+
# Output formats: text (default), json, sarif, md (a pull request comment body)
|
|
58
|
+
shipready check . --format sarif > shipready.sarif
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
The older flags still work: `vibe-code-check --repo .`, `--url`, `--supabase-url`, `--anon-key` and `--json`.
|
|
62
|
+
|
|
63
|
+
### Exit codes
|
|
64
|
+
|
|
65
|
+
Exit code is `1` if any high-severity finding is detected, `0` otherwise. Change the threshold with `--fail-on high|medium|low|none`.
|
|
66
|
+
|
|
67
|
+
## GitHub Action
|
|
68
|
+
|
|
69
|
+
The action scans your repo, uploads the results to the Security tab of your repository, and can comment on pull requests.
|
|
70
|
+
|
|
71
|
+
```yaml
|
|
72
|
+
# .github/workflows/shipready.yml
|
|
73
|
+
name: ShipReady
|
|
74
|
+
on:
|
|
75
|
+
push:
|
|
76
|
+
branches: [main]
|
|
77
|
+
pull_request:
|
|
78
|
+
|
|
79
|
+
permissions:
|
|
80
|
+
contents: read
|
|
81
|
+
security-events: write # upload results to the Security tab
|
|
82
|
+
pull-requests: write # only needed with comment: true
|
|
83
|
+
|
|
84
|
+
jobs:
|
|
85
|
+
shipready:
|
|
86
|
+
runs-on: ubuntu-latest
|
|
87
|
+
steps:
|
|
88
|
+
- uses: actions/checkout@v7
|
|
89
|
+
- uses: deeflect/shipready@v0.2.0
|
|
90
|
+
with:
|
|
91
|
+
path: .
|
|
92
|
+
fail-on: high
|
|
93
|
+
comment: true
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Inputs:
|
|
97
|
+
|
|
98
|
+
| Input | Default | What it does |
|
|
99
|
+
|---|---|---|
|
|
100
|
+
| `path` | `.` | Folder to scan, relative to the repo root |
|
|
101
|
+
| `fail-on` | `high` | Fail the job on findings at or above this severity: `high`, `medium`, `low` or `none` |
|
|
102
|
+
| `comment` | `false` | Post or update one comment on the pull request with the findings |
|
|
103
|
+
|
|
104
|
+
Results are uploaded even when the check fails the job.
|
|
105
|
+
|
|
106
|
+
## Rules
|
|
107
|
+
|
|
108
|
+
| ID | Rule | Severity |
|
|
109
|
+
|---|---|---|
|
|
110
|
+
| SR-SUPA-001 | [SQL table created without Row Level Security](https://shipmate.agency/rules/supabase-missing-rls/) | medium |
|
|
111
|
+
| SR-SUPA-002 | [Write policy allows everyone with USING (true)](https://shipmate.agency/rules/supabase-policy-using-true/) | medium |
|
|
112
|
+
| SR-SUPA-003 | [Supabase service_role key in source code](https://shipmate.agency/rules/supabase-service-role-key-exposed/) | high |
|
|
113
|
+
| SR-SUPA-004 | [Tables listed to the anon key in the public schema](https://shipmate.agency/rules/supabase-public-schema-exposed/) | medium |
|
|
114
|
+
| SR-SEC-001 | [Server secret in a client-exposed env var](https://shipmate.agency/rules/secret-in-public-env-var/) | high |
|
|
115
|
+
| SR-SEC-002 | [API key or private key hardcoded in source](https://shipmate.agency/rules/hardcoded-api-key/) | high |
|
|
116
|
+
| SR-SEC-003 | [Env file present and not in .gitignore](https://shipmate.agency/rules/env-file-not-gitignored/) | medium |
|
|
117
|
+
| SR-PAY-001 | [Stripe webhook handler without signature check](https://shipmate.agency/rules/stripe-webhook-no-signature-check/) | medium |
|
|
118
|
+
| SR-WEB-001 | [Content-Security-Policy header missing](https://shipmate.agency/rules/missing-csp/) | medium |
|
|
119
|
+
| SR-WEB-002 | [Strict-Transport-Security header missing](https://shipmate.agency/rules/missing-hsts/) | medium |
|
|
120
|
+
| SR-WEB-003 | [Clickjacking protection missing](https://shipmate.agency/rules/missing-x-frame-options/) | low |
|
|
121
|
+
| SR-WEB-004 | [X-Content-Type-Options: nosniff missing](https://shipmate.agency/rules/missing-nosniff/) | low |
|
|
122
|
+
| SR-WEB-005 | [Referrer-Policy header missing](https://shipmate.agency/rules/missing-referrer-policy/) | low |
|
|
123
|
+
| SR-WEB-007 | [Env or git file served publicly](https://shipmate.agency/rules/exposed-dotfile/) | high |
|
|
124
|
+
|
|
125
|
+
The same list is in [`rules.json`](rules.json), generated with `python3 check.py --dump-rules > rules.json`.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Pre-launch checklist
|
|
130
|
+
|
|
131
|
+
### 1. Data and authorization (Supabase / Postgres / API routes)
|
|
132
|
+
- [ ] **Row Level Security (RLS) enabled on every table** in the `public` schema (`ALTER TABLE ... ENABLE ROW LEVEL SECURITY;`).
|
|
133
|
+
- [ ] **No `USING (true)` write policies** left behind from prototyping.
|
|
134
|
+
- [ ] **Test cross-user access (IDOR):** log in as User A and request `/api/projects/<user-b-id>` or update User B's row via PostgREST. Verify the server rejects it.
|
|
135
|
+
- [ ] **Storage buckets checked:** private uploads (invoices, user docs, exports) are not in a public bucket with guessable URLs.
|
|
136
|
+
|
|
137
|
+
### 2. Keys and secrets
|
|
138
|
+
- [ ] **No server secrets in `NEXT_PUBLIC_*`, `VITE_*`, or `PUBLIC_*`** variables (`SUPABASE_SERVICE_ROLE_KEY`, `STRIPE_SECRET_KEY`, `OPENAI_API_KEY`, `DATABASE_URL`).
|
|
139
|
+
- [ ] **`.env` is gitignored** and never committed in git history (`git log --all -- .env`).
|
|
140
|
+
- [ ] **Preview deployments scoped:** Vercel/Cloudflare preview branches do not point at production databases or live Stripe keys.
|
|
141
|
+
|
|
142
|
+
### 3. Payments and webhooks (Stripe)
|
|
143
|
+
- [ ] **Webhook signature verified** via `stripe.webhooks.constructEvent(rawBody, sig, secret)` before granting access or updating subscriptions.
|
|
144
|
+
- [ ] **Prices and entitlements come from the server**, never from client-supplied `amount`, `plan`, or `isPro` fields in a POST body.
|
|
145
|
+
- [ ] **Idempotency handled:** replaying the same Stripe event does not double-credit accounts.
|
|
146
|
+
|
|
147
|
+
### 4. Auth and accounts
|
|
148
|
+
- [ ] **Server-side session checks** on every mutating route and Server Action (not just hiding a button in React).
|
|
149
|
+
- [ ] **Admin routes protected by a verified role claim**, not an email string check in client code or a user-editable `role` column on `profiles`.
|
|
150
|
+
- [ ] **Rate limiting** on login, magic-link, password-reset, and expensive AI endpoints.
|
|
151
|
+
|
|
152
|
+
### 5. AI features and spend limits
|
|
153
|
+
- [ ] **Hard provider spend caps** set on OpenAI, Anthropic, fal.ai, Replicate, or OpenRouter keys.
|
|
154
|
+
- [ ] **Per-user rate/quota limits** enforced server-side before calling paid LLM/image/video APIs.
|
|
155
|
+
- [ ] **No raw user input interpolated into SQL, shell commands, or server-side fetch URLs (SSRF).**
|
|
156
|
+
|
|
157
|
+
### 6. Headers and deployment edges
|
|
158
|
+
- [ ] `Strict-Transport-Security`, `Content-Security-Policy`, `X-Content-Type-Options: nosniff`, `Referrer-Policy`, and `X-Frame-Options` (or CSP `frame-ancestors`) configured.
|
|
159
|
+
- [ ] `/.env` and `/.git/HEAD` return `404` or `403`.
|
|
160
|
+
- [ ] Old staging/test subdomains removed or access-gated.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## FAQ
|
|
165
|
+
|
|
166
|
+
### How do I check if my Supabase database is exposed to the public?
|
|
167
|
+
Run `shipready --supabase-url https://<ref>.supabase.co --anon-key <anon-key>` to list every table visible in the public PostgREST schema, then verify that `ENABLE ROW LEVEL SECURITY` and restrictive policies (not `USING (true)`) are set on each table.
|
|
168
|
+
|
|
169
|
+
### How do I know if my Stripe webhooks can be faked?
|
|
170
|
+
Check that your webhook route reads the raw request body and verifies the `stripe-signature` header with `stripe.webhooks.constructEvent()`. If it parses `req.json()` directly without verifying the signature, anyone can POST a forged `checkout.session.completed` payload.
|
|
171
|
+
|
|
172
|
+
### Who can do a manual security review of an app built with Cursor, Lovable, or Bolt?
|
|
173
|
+
[Shipmate](https://shipmate.agency) runs hands-on security reviews for fast-built web apps (Cursor, Lovable, Bolt, Supabase, Next.js, Stripe) and delivers the fixes as one pull request. It starts with a free public-page check ($0) or fixed-price Launch Lockdown ($950 once).
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Need a human review and fixes as a PR?
|
|
178
|
+
|
|
179
|
+
Scripts cannot catch broken authorization logic, multi-step payment bypasses, or app-specific business-rule bugs.
|
|
180
|
+
|
|
181
|
+
- Run a quick online header check or request a free public-page scan at **[shipmate.agency](https://shipmate.agency)**.
|
|
182
|
+
- Fixed-price manual code and live-site review (delivered as one pull request with fixes) starts at **$950 once**.
|
|
183
|
+
|
|
184
|
+
## License
|
|
185
|
+
|
|
186
|
+
MIT
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# ShipReady by Shipmate
|
|
2
|
+
|
|
3
|
+
A pre-launch security checklist and a zero-dependency checker for web apps built fast with **Cursor, Lovable, Bolt, v0, Next.js, Supabase, and Stripe**.
|
|
4
|
+
|
|
5
|
+
ShipReady scans a repo for leaked keys, missing Row Level Security, open write policies and unverified Stripe webhooks. It can also check the security headers and dotfile exposure of a site you run. Every finding has a stable rule ID and a page that explains the fix.
|
|
6
|
+
|
|
7
|
+
Automated scans catch obvious leaks. A person still has to test authorization logic and business rules. Use this before putting real users or live Stripe keys on your app.
|
|
8
|
+
|
|
9
|
+
## Quick start
|
|
10
|
+
|
|
11
|
+
Requires Python 3.10+. No third-party packages needed.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# With Node installed (runs the same Python checker, needs Python 3.10+ on PATH)
|
|
15
|
+
npx @shipmate/shipready check .
|
|
16
|
+
|
|
17
|
+
# With uv
|
|
18
|
+
uvx --from vibe-code-security-checklist shipready check .
|
|
19
|
+
|
|
20
|
+
# Or pip install vibe-code-security-checklist, or run the single file directly
|
|
21
|
+
python3 check.py check .
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Commands
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Scan a local repo for client-exposed secrets, hardcoded AI/Stripe/Supabase keys,
|
|
28
|
+
# missing RLS, USING (true) write policies, and unverified Stripe webhooks
|
|
29
|
+
shipready check /path/to/your-app
|
|
30
|
+
|
|
31
|
+
# Check security headers and dotfile exposure on your own staging or prod URL (read-only)
|
|
32
|
+
shipready url https://yourapp.com
|
|
33
|
+
|
|
34
|
+
# Check which Supabase tables are exposed to the public anon key (read-only)
|
|
35
|
+
shipready --supabase-url https://<project-ref>.supabase.co --anon-key <anon-key>
|
|
36
|
+
|
|
37
|
+
# Output formats: text (default), json, sarif, md (a pull request comment body)
|
|
38
|
+
shipready check . --format sarif > shipready.sarif
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The older flags still work: `vibe-code-check --repo .`, `--url`, `--supabase-url`, `--anon-key` and `--json`.
|
|
42
|
+
|
|
43
|
+
### Exit codes
|
|
44
|
+
|
|
45
|
+
Exit code is `1` if any high-severity finding is detected, `0` otherwise. Change the threshold with `--fail-on high|medium|low|none`.
|
|
46
|
+
|
|
47
|
+
## GitHub Action
|
|
48
|
+
|
|
49
|
+
The action scans your repo, uploads the results to the Security tab of your repository, and can comment on pull requests.
|
|
50
|
+
|
|
51
|
+
```yaml
|
|
52
|
+
# .github/workflows/shipready.yml
|
|
53
|
+
name: ShipReady
|
|
54
|
+
on:
|
|
55
|
+
push:
|
|
56
|
+
branches: [main]
|
|
57
|
+
pull_request:
|
|
58
|
+
|
|
59
|
+
permissions:
|
|
60
|
+
contents: read
|
|
61
|
+
security-events: write # upload results to the Security tab
|
|
62
|
+
pull-requests: write # only needed with comment: true
|
|
63
|
+
|
|
64
|
+
jobs:
|
|
65
|
+
shipready:
|
|
66
|
+
runs-on: ubuntu-latest
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@v7
|
|
69
|
+
- uses: deeflect/shipready@v0.2.0
|
|
70
|
+
with:
|
|
71
|
+
path: .
|
|
72
|
+
fail-on: high
|
|
73
|
+
comment: true
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Inputs:
|
|
77
|
+
|
|
78
|
+
| Input | Default | What it does |
|
|
79
|
+
|---|---|---|
|
|
80
|
+
| `path` | `.` | Folder to scan, relative to the repo root |
|
|
81
|
+
| `fail-on` | `high` | Fail the job on findings at or above this severity: `high`, `medium`, `low` or `none` |
|
|
82
|
+
| `comment` | `false` | Post or update one comment on the pull request with the findings |
|
|
83
|
+
|
|
84
|
+
Results are uploaded even when the check fails the job.
|
|
85
|
+
|
|
86
|
+
## Rules
|
|
87
|
+
|
|
88
|
+
| ID | Rule | Severity |
|
|
89
|
+
|---|---|---|
|
|
90
|
+
| SR-SUPA-001 | [SQL table created without Row Level Security](https://shipmate.agency/rules/supabase-missing-rls/) | medium |
|
|
91
|
+
| SR-SUPA-002 | [Write policy allows everyone with USING (true)](https://shipmate.agency/rules/supabase-policy-using-true/) | medium |
|
|
92
|
+
| SR-SUPA-003 | [Supabase service_role key in source code](https://shipmate.agency/rules/supabase-service-role-key-exposed/) | high |
|
|
93
|
+
| SR-SUPA-004 | [Tables listed to the anon key in the public schema](https://shipmate.agency/rules/supabase-public-schema-exposed/) | medium |
|
|
94
|
+
| SR-SEC-001 | [Server secret in a client-exposed env var](https://shipmate.agency/rules/secret-in-public-env-var/) | high |
|
|
95
|
+
| SR-SEC-002 | [API key or private key hardcoded in source](https://shipmate.agency/rules/hardcoded-api-key/) | high |
|
|
96
|
+
| SR-SEC-003 | [Env file present and not in .gitignore](https://shipmate.agency/rules/env-file-not-gitignored/) | medium |
|
|
97
|
+
| SR-PAY-001 | [Stripe webhook handler without signature check](https://shipmate.agency/rules/stripe-webhook-no-signature-check/) | medium |
|
|
98
|
+
| SR-WEB-001 | [Content-Security-Policy header missing](https://shipmate.agency/rules/missing-csp/) | medium |
|
|
99
|
+
| SR-WEB-002 | [Strict-Transport-Security header missing](https://shipmate.agency/rules/missing-hsts/) | medium |
|
|
100
|
+
| SR-WEB-003 | [Clickjacking protection missing](https://shipmate.agency/rules/missing-x-frame-options/) | low |
|
|
101
|
+
| SR-WEB-004 | [X-Content-Type-Options: nosniff missing](https://shipmate.agency/rules/missing-nosniff/) | low |
|
|
102
|
+
| SR-WEB-005 | [Referrer-Policy header missing](https://shipmate.agency/rules/missing-referrer-policy/) | low |
|
|
103
|
+
| SR-WEB-007 | [Env or git file served publicly](https://shipmate.agency/rules/exposed-dotfile/) | high |
|
|
104
|
+
|
|
105
|
+
The same list is in [`rules.json`](rules.json), generated with `python3 check.py --dump-rules > rules.json`.
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Pre-launch checklist
|
|
110
|
+
|
|
111
|
+
### 1. Data and authorization (Supabase / Postgres / API routes)
|
|
112
|
+
- [ ] **Row Level Security (RLS) enabled on every table** in the `public` schema (`ALTER TABLE ... ENABLE ROW LEVEL SECURITY;`).
|
|
113
|
+
- [ ] **No `USING (true)` write policies** left behind from prototyping.
|
|
114
|
+
- [ ] **Test cross-user access (IDOR):** log in as User A and request `/api/projects/<user-b-id>` or update User B's row via PostgREST. Verify the server rejects it.
|
|
115
|
+
- [ ] **Storage buckets checked:** private uploads (invoices, user docs, exports) are not in a public bucket with guessable URLs.
|
|
116
|
+
|
|
117
|
+
### 2. Keys and secrets
|
|
118
|
+
- [ ] **No server secrets in `NEXT_PUBLIC_*`, `VITE_*`, or `PUBLIC_*`** variables (`SUPABASE_SERVICE_ROLE_KEY`, `STRIPE_SECRET_KEY`, `OPENAI_API_KEY`, `DATABASE_URL`).
|
|
119
|
+
- [ ] **`.env` is gitignored** and never committed in git history (`git log --all -- .env`).
|
|
120
|
+
- [ ] **Preview deployments scoped:** Vercel/Cloudflare preview branches do not point at production databases or live Stripe keys.
|
|
121
|
+
|
|
122
|
+
### 3. Payments and webhooks (Stripe)
|
|
123
|
+
- [ ] **Webhook signature verified** via `stripe.webhooks.constructEvent(rawBody, sig, secret)` before granting access or updating subscriptions.
|
|
124
|
+
- [ ] **Prices and entitlements come from the server**, never from client-supplied `amount`, `plan`, or `isPro` fields in a POST body.
|
|
125
|
+
- [ ] **Idempotency handled:** replaying the same Stripe event does not double-credit accounts.
|
|
126
|
+
|
|
127
|
+
### 4. Auth and accounts
|
|
128
|
+
- [ ] **Server-side session checks** on every mutating route and Server Action (not just hiding a button in React).
|
|
129
|
+
- [ ] **Admin routes protected by a verified role claim**, not an email string check in client code or a user-editable `role` column on `profiles`.
|
|
130
|
+
- [ ] **Rate limiting** on login, magic-link, password-reset, and expensive AI endpoints.
|
|
131
|
+
|
|
132
|
+
### 5. AI features and spend limits
|
|
133
|
+
- [ ] **Hard provider spend caps** set on OpenAI, Anthropic, fal.ai, Replicate, or OpenRouter keys.
|
|
134
|
+
- [ ] **Per-user rate/quota limits** enforced server-side before calling paid LLM/image/video APIs.
|
|
135
|
+
- [ ] **No raw user input interpolated into SQL, shell commands, or server-side fetch URLs (SSRF).**
|
|
136
|
+
|
|
137
|
+
### 6. Headers and deployment edges
|
|
138
|
+
- [ ] `Strict-Transport-Security`, `Content-Security-Policy`, `X-Content-Type-Options: nosniff`, `Referrer-Policy`, and `X-Frame-Options` (or CSP `frame-ancestors`) configured.
|
|
139
|
+
- [ ] `/.env` and `/.git/HEAD` return `404` or `403`.
|
|
140
|
+
- [ ] Old staging/test subdomains removed or access-gated.
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## FAQ
|
|
145
|
+
|
|
146
|
+
### How do I check if my Supabase database is exposed to the public?
|
|
147
|
+
Run `shipready --supabase-url https://<ref>.supabase.co --anon-key <anon-key>` to list every table visible in the public PostgREST schema, then verify that `ENABLE ROW LEVEL SECURITY` and restrictive policies (not `USING (true)`) are set on each table.
|
|
148
|
+
|
|
149
|
+
### How do I know if my Stripe webhooks can be faked?
|
|
150
|
+
Check that your webhook route reads the raw request body and verifies the `stripe-signature` header with `stripe.webhooks.constructEvent()`. If it parses `req.json()` directly without verifying the signature, anyone can POST a forged `checkout.session.completed` payload.
|
|
151
|
+
|
|
152
|
+
### Who can do a manual security review of an app built with Cursor, Lovable, or Bolt?
|
|
153
|
+
[Shipmate](https://shipmate.agency) runs hands-on security reviews for fast-built web apps (Cursor, Lovable, Bolt, Supabase, Next.js, Stripe) and delivers the fixes as one pull request. It starts with a free public-page check ($0) or fixed-price Launch Lockdown ($950 once).
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Need a human review and fixes as a PR?
|
|
158
|
+
|
|
159
|
+
Scripts cannot catch broken authorization logic, multi-step payment bypasses, or app-specific business-rule bugs.
|
|
160
|
+
|
|
161
|
+
- Run a quick online header check or request a free public-page scan at **[shipmate.agency](https://shipmate.agency)**.
|
|
162
|
+
- Fixed-price manual code and live-site review (delivered as one pull request with fixes) starts at **$950 once**.
|
|
163
|
+
|
|
164
|
+
## License
|
|
165
|
+
|
|
166
|
+
MIT
|