monsimas commited on
Commit
9e7dbfc
·
verified ·
1 Parent(s): 52b30dc

Harden scrubber: redact private IPs (allow-listed, not rejected)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
  {