forked from bchanot/claude
feat(rules): Supabase and cloud-functions bodies become path rules, one always-on line each
This commit is contained in:
1 parent
2fe5291a13
commit
664d1ea839
5 files changed
+36
-13
No files matched your search
@@ -0,0 +1,13 @@
|
||||
---
|
||||
paths: ["**/functions/**", "**/serverless.*", "**/firebase.json"]
|
||||
---
|
||||
|
||||
# Cloud functions — secure by default, domain 6
|
||||
|
||||
Path-scoped body of `rules/secure-by-default.md` domain 6 (BDR-125 phase 1);
|
||||
the always-on line there keeps the instance cap and the self-trigger ban.
|
||||
|
||||
- No function re-triggers itself: never write to the resource that fires it,
|
||||
never invoke itself. If unavoidable, guard with an idempotency flag.
|
||||
- Max instances (or reserved concurrency) and a timeout on every function.
|
||||
- Budget alert wired to an automatic stop beyond the budget.
|
||||
Reference in new issue
Block a user