forked from bchanot/claude
feat(guardrails): secure-by-default rule and /guardrails scanner
Always-on rules/secure-by-default.md: hosting, a11y, Supabase RLS, SMS/email consent, cloud functions, API hygiene incl. password storage. Stdlib scanner (FAIL/WARN/MANUAL) + skill, 89-check suite, auditor gate wiring, profiles, routing row (plus Explore rows confirmed through the router dialog).
This commit is contained in:
1 parent
c5fad5ee8f
commit
558c49e1a1
45 files changed
+2473
-5
No files matched your search
@@ -0,0 +1,8 @@
|
||||
const { onDocumentCreated } = require("firebase-functions/v2/firestore");
|
||||
const { setGlobalOptions } = require("firebase-functions/v2");
|
||||
|
||||
setGlobalOptions({ maxInstances: 10 });
|
||||
|
||||
exports.onOrder = onDocumentCreated("orders/{id}", async (event) => {
|
||||
await db.collection("receipts").add({ order: event.params.id });
|
||||
});
|
||||
Reference in new issue
Block a user