Commit 5316aca
security: redact a live Cloudflare Global API Key from setup docs (#36)
`implementations/wokelang/CLOUDFLARE-SETUP.adoc` published a **live
Cloudflare Global API Key** as a literal value, in a **public**
repository, in a document telling the reader to paste it into GitHub
Actions secrets.
```adoc
1. **CLOUDFLARE_API_TOKEN**: Your Cloudflare API token
- Value: `<redacted — a live Global API Key>`
```
A Global Key is **not scoped**. Paired with the account email it grants
full account access — every zone, all DNS, and billing.
## Scope of the exposure
The same key was also hardcoded in
`cloudflare-dns-terraform/auto-add-new-sites.sh` (removed in that repo's
#23). GitHub code search across the account now returns **this file as
the last remaining copy on a default branch**:
```
gh api -X GET search/code -f q="<key> user:hyperpolymath" -> total_count=1
```
## The change
Replaced with instructions to mint a **scoped** token (Cloudflare Pages:
Edit), an explicit warning against the Global Key, and a standing note
that credentials must never be written into this file — a setup document
should say *where* a secret goes, never *what* it is.
## 1 parent c3f099e commit 5316aca
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
| |||
0 commit comments