Cheeisepy commited on
Commit
cc4ba22
·
verified ·
1 Parent(s): 0e01105

Preflight free sample → Gumroad funnel (GCP IAM Guardrails)

Browse files
Files changed (3) hide show
  1. README.md +77 -0
  2. banner.png +3 -0
  3. sample-deny-rules.json +18 -0
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pretty_name: "Preflight — GCP IAM Guardrails for Claude Code (free sample)"
4
+ tags:
5
+ - claude-code
6
+ - ai-agents
7
+ - developer-tools
8
+ - devops
9
+ - gcp
10
+ - iam
11
+ - security
12
+ - guardrails
13
+ ---
14
+
15
+ ![Preflight — GCP IAM Guardrails for Claude Code](banner.png)
16
+
17
+ # 🛡️ GCP IAM Guardrails for Claude Code — free sample
18
+
19
+ **Stop your AI coding agent from running destructive `gcloud`, `gsutil`, and `bq`
20
+ commands against your GCP project.** This repo is a free sample from the
21
+ [**Preflight**](https://lindenberg17.gumroad.com/) studio — *catch it before it ships.*
22
+
23
+ Letting Claude Code (or any agent) touch a real cloud project is great until the day it
24
+ runs `gcloud projects delete` or `gsutil rm -r` on the wrong bucket. These deny rules make
25
+ Claude Code **refuse those commands outright** — no confirmation, no "oops."
26
+
27
+ ## What's in this free sample
28
+
29
+ `sample-deny-rules.json` — **10 of the highest-impact deny rules** from the full pack,
30
+ as a ready-to-merge `settings.json` fragment. Drop the `permissions.deny` array into your
31
+ project's `.claude/settings.json` and Claude Code will block:
32
+
33
+ | Blocked command | Why it matters |
34
+ |---|---|
35
+ | `gcloud projects delete` | nukes an entire project |
36
+ | `gcloud * set-iam-policy` | overwrites your whole IAM policy (lockout / privilege escalation) |
37
+ | `gcloud * remove-iam-policy-binding` | silently strips access |
38
+ | `gcloud iam service-accounts delete` | kills a service account other things depend on |
39
+ | `gcloud iam service-accounts keys delete` | breaks live auth |
40
+ | `gcloud compute instances delete` | deletes a VM |
41
+ | `gcloud storage buckets delete` | deletes a bucket |
42
+ | `gcloud storage rm` / `gsutil rm -r` | deletes objects, recursively |
43
+ | `gsutil iam ch *allUsers*` | makes private data **public** |
44
+ | `bq rm` | drops BigQuery datasets/tables |
45
+
46
+ ### Install (30 seconds)
47
+
48
+ 1. Open `sample-deny-rules.json`.
49
+ 2. Merge the `permissions.deny` array into your project's `.claude/settings.json`
50
+ (create the file if it doesn't exist).
51
+ 3. Done. Try asking Claude to delete a bucket — it refuses.
52
+
53
+ ## What the full product adds
54
+
55
+ The free sample is the "obvious catastrophes" layer. The paid product is the
56
+ defense-in-depth version:
57
+
58
+ - **27 deny rules** (17 more than here), covering snapshots, disks, networks, firewall
59
+ rules, logging sinks, service-account keys, and more.
60
+ - An **`ask` tier** for risky-but-recoverable operations (add-iam-policy-binding, stop
61
+ instance, create SA key) so they pause for human approval instead of being blocked.
62
+ - A curated **`allow` list** so safe read-only commands (`list`, `describe`, `get-iam-policy`)
63
+ never prompt — no guardrail fatigue.
64
+ - A **PreToolUse hook** (`block-destructive-gcloud.sh`) that catches obfuscated and
65
+ chained commands the static rules can miss.
66
+ - A **31-assertion test suite** proving every block/allow decision, so you can trust it.
67
+ - `INSTALL.md`, `SKILL.md`, and worked `examples/` (allowed vs blocked).
68
+
69
+ ### → Get the full pack on Gumroad
70
+
71
+ **[GCP IAM Guardrails for Claude Code — $24](https://lindenberg17.gumroad.com/l/hmtcxf?ref=hf)**
72
+
73
+ ---
74
+
75
+ *From **Preflight** — guardrails for agentic coding & cloud. See also:
76
+ [Terraform Plan Reviewer](https://lindenberg17.gumroad.com/l/qodem?ref=hf) ·
77
+ [webOS QA Checklist Runner](https://lindenberg17.gumroad.com/l/fhrioj?ref=hf).*
banner.png ADDED

Git LFS Details

  • SHA256: 5896ae572bdbc2d8a7aa74c95ab19d2e67e750075de055c1fc35c74628f15132
  • Pointer size: 131 Bytes
  • Size of remote file: 249 kB
sample-deny-rules.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_comment": "Preflight — GCP IAM Guardrails (FREE SAMPLE). 10 of the highest-impact deny rules from the full pack. Merge the `permissions.deny` array into your project's .claude/settings.json. Claude Code refuses any matching Bash command outright. The full product adds 17 more deny rules, an `ask` tier for risky-but-recoverable ops, a curated `allow` list, a PreToolUse hook that catches obfuscated commands, and a 31-assertion test suite. → https://lindenberg17.gumroad.com/l/hmtcxf?ref=hf",
3
+ "permissions": {
4
+ "deny": [
5
+ "Bash(gcloud projects delete:*)",
6
+ "Bash(gcloud * set-iam-policy:*)",
7
+ "Bash(gcloud * remove-iam-policy-binding:*)",
8
+ "Bash(gcloud iam service-accounts delete:*)",
9
+ "Bash(gcloud iam service-accounts keys delete:*)",
10
+ "Bash(gcloud compute instances delete:*)",
11
+ "Bash(gcloud storage buckets delete:*)",
12
+ "Bash(gcloud storage rm:*)",
13
+ "Bash(gsutil rm -r:*)",
14
+ "Bash(gsutil iam ch *allUsers*:*)",
15
+ "Bash(bq rm:*)"
16
+ ]
17
+ }
18
+ }