Skip to content

docs: clarify redact() covers secrets only, PII is detection-only - #3706

Open
abhinav (erensh27) wants to merge 1 commit into
microsoft:mainfrom
erensh27:docs/redactor-pii-scope
Open

docs: clarify redact() covers secrets only, PII is detection-only#3706
abhinav (erensh27) wants to merge 1 commit into
microsoft:mainfrom
erensh27:docs/redactor-pii-scope

Conversation

@erensh27

Copy link
Copy Markdown

Fixes #3239

redact() / redact_data_structure() iterate only PATTERNS (secret-like material); PII/CRI is detected by find_pii_matches() / contains_pii() but never removed by redact(). Clarified this scope in the class docstring, redact(), and redact_data_structure() so callers do not assume PII is scrubbed when persisting or returning data. (The SSN pattern divergence noted in the issue was already reconciled in a prior change.)

The class docstring implied redact() scrubs sensitive material broadly,
but redaction iterates PATTERNS (secrets) only, while PII/CRI patterns
(email, phone, SSN, credit card, IP) are detection-only via
find_pii_matches / contains_pii. Documented the exact scope on the class,
redact(), and redact_data_structure().

Fixes microsoft#3239
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions

Copy link
Copy Markdown

Welcome to the Agent Governance Toolkit! Thanks for your first pull request.
Please ensure tests pass, code follows style (ruff check), and you have signed the CLA.
See our Contributing Guide.

@github-actions github-actions Bot added the size/S Small PR (< 50 lines) label Aug 11, 2026
@github-actions

Copy link
Copy Markdown

PR Review Summary

Check Status Details
🔍 Code Review ⚠️ Missing No current-run comment
🛡️ Security Scan ⚠️ Missing No current-run comment
🔄 Breaking Changes ⚠️ Missing No current-run comment
📝 Docs Sync ⚠️ Missing No current-run comment
🧪 Test Coverage ⚠️ Missing No current-run comment

Verdict: ⚠️ AI review incomplete; ready for human review

AI review comments are untrusted advisory output. The summary reports workflow-generated completion status only, not model-authored pass/fail claims.

@github-actions

Copy link
Copy Markdown

🟡 Contributor Check: MEDIUM

Check Result
Profile MEDIUM
Credential LOW
Overall MEDIUM

Automated check by AGT Contributor Check.

@github-actions github-actions Bot added the needs-review:MEDIUM Contributor check flagged MEDIUM risk label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review:MEDIUM Contributor check flagged MEDIUM risk size/S Small PR (< 50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

credential_redactor: docs imply redact() scrubs PII, but it covers secrets only; SSN patterns diverge

1 participant