Spaces:
Running
Running
Harden scrubber: redact private IPs (allow-listed, not rejected)
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ async def donate(request: Request):
|
|
| 126 |
# The skill should have already removed everything. If the backstop still
|
| 127 |
# finds high-confidence secrets, refuse: something slipped through.
|
| 128 |
secret_kinds = {k: v for k, v in report["redactions"].items()
|
| 129 |
-
if k not in ("home_path", "email")}
|
| 130 |
if secret_kinds:
|
| 131 |
return JSONResponse(
|
| 132 |
{
|
|
|
|
| 126 |
# The skill should have already removed everything. If the backstop still
|
| 127 |
# finds high-confidence secrets, refuse: something slipped through.
|
| 128 |
secret_kinds = {k: v for k, v in report["redactions"].items()
|
| 129 |
+
if k not in ("home_path", "email", "private_ip")}
|
| 130 |
if secret_kinds:
|
| 131 |
return JSONResponse(
|
| 132 |
{
|