You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: policies/README.md
+53Lines changed: 53 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -289,6 +289,59 @@ Patterns use glob-style matching:
289
289
|`https://*`| Any HTTPS URL |
290
290
|`/home/*/projects/**`| Any file under any user's projects dir |
291
291
292
+
#### Glob `**` Directory Matching Footgun
293
+
294
+
**Common mistake:** Using `**` to match a directory itself.
295
+
296
+
```json
297
+
{
298
+
"resources": ["model-eval/**"] // WRONG: matches files INSIDE model-eval, not the directory
299
+
}
300
+
```
301
+
302
+
The pattern `model-eval/**` matches `model-eval/file.txt` and `model-eval/sub/file.txt`, but it does **NOT** match the directory `model-eval` itself.
303
+
304
+
**To match both the directory and its contents:**
305
+
306
+
```json
307
+
{
308
+
"resources": ["model-eval", "model-eval/**"] // CORRECT: matches directory AND contents
309
+
}
310
+
```
311
+
312
+
Or use multiple patterns:
313
+
-`model-eval` - matches the directory itself
314
+
-`model-eval/*` - matches direct children
315
+
-`model-eval/**` - matches all descendants recursively
316
+
317
+
### SSRF Whitelist (Policy-Driven)
318
+
319
+
You can include an optional `ssrf_whitelist` field in your policy file to allow specific local endpoints to bypass SSRF protection. This is useful for local LLMs (Ollama), databases, or other services running on private IPs.
0 commit comments