feat: add hooks and rules

This commit is contained in:
duthaho
2026-04-19 12:11:56 +07:00
parent 5d87f8c1f3
commit 3103a8da1b
9 changed files with 233 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
# Security Rules
- Never hardcode secrets, API keys, or credentials in source code
- Use parameterized queries only — never string concatenation for SQL
- No `eval()`, `new Function()`, or dynamic code execution
- No `any` types in TypeScript — use proper typing
- Validate all user inputs at API boundaries
- Output encoding for all rendered content
- Secrets via environment variables only
- No disabled security headers
- Authentication required on all protected endpoints
- Rate limiting on public APIs