feat(doctrine): session start reads TODO and the digest, web rules deduped, graphify run from the repo
Session start reads TODO.md and the memory digest, registries on demand. web-security keeps only its own rules and points to secure-by-default; the graphify rule names the CLAUDE.global.md append, Step 7 runs from $REPO.
This commit is contained in:
1 parent
1cc89bee35
commit
c69ce9ca88
5 files changed
+32
-26
No files matched your search
+5
-10
@@ -4,18 +4,13 @@ paths: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.vue", "**/*.svelte",
|
||||
|
||||
# Web app security — specifics
|
||||
|
||||
Extends the global Security section (input validation, parameterized
|
||||
queries, secrets in env vars, AuthN/AuthZ, fail closed). If a request
|
||||
Extends `~/.claude/rules/secure-by-default.md` (always on). If a request
|
||||
breaks one of these rules, say so instead of doing it.
|
||||
|
||||
- No API key in code shipped to the browser. Env vars, server-side only.
|
||||
- The service/admin key never reaches the client: publishable key only.
|
||||
- Row Level Security enabled on every table (Supabase/Postgres and kin).
|
||||
- Authentication verified server-side, never only in the browser.
|
||||
- No IDOR: changing an id in a URL must never expose another user's
|
||||
data. Authorize object access on every request.
|
||||
- Passwords hashed (bcrypt/argon2). Session cookies httpOnly + secure
|
||||
+ sameSite.
|
||||
- API responses return only the fields the client needs.
|
||||
- Login rate limiting, upload restrictions (type/size), forced HTTPS,
|
||||
security headers.
|
||||
- Session cookies httpOnly + secure + sameSite.
|
||||
- Uploads restricted by type and size.
|
||||
- HTTPS forced.
|
||||
- Security headers set.
|
||||
Reference in new issue
Block a user