Skip to content

fix: redact more secret shapes in guide safe text (#175) - #251

Merged
Jumpstile merged 2 commits into
mainfrom
fix/guide-safe-text-redaction
Nov 14, 2026
Merged

Jumpstile merged 2 commits into
mainfrom
fix/guide-safe-text-redaction

Conversation

@Jumpstile

Copy link
Copy Markdown
Owner

Takes only the safe-text hardening from draft #205, as its own small change, before event titles go into guides.

  • ConvertTo-ChannelForgeGuideSafeText now also redacts compound secret names (for example api_key=...), Authorization and Bearer values, e-mail addresses, and Unix paths that start at /home, /users, /root, /var, /etc, /usr, /opt, /tmp, /mnt or /srv. Windows paths were already handled.
  • Not ported: the draft's general Unix-path pattern, because it could hide real titles such as "Night 1 /Part A/ Main". The narrow root list does not.
  • Signature, bounds, callers, hash inputs and frozen contracts unchanged. +4 net product lines.
  • New tests/unit/GuideSafeText.Tests.ps1 (14 tests): real event titles pass through unchanged (UFC 300: Main Card, Round 1/Final, Night 1 / Night 2, WWE Raw 8/7c, PPV 1 - Fight Night, Home/Away Highlights); secrets are redacted.

Verified locally with Pester under pwsh, one file at a time, 0 failed: GuideSafeText 14, OneGuide 14, CategoryReport 6, CategoryProgrammeCheck 3, GuideIntelligence 12, GuidePatternInference 11, GuidePatternReview 8, GuidePatternAcceptancePlan 14. Not verified: full suite (CI runs it).

Part of #175.
🤖 Generated with Claude Code

https://claude.ai/code/session_01NzHAckAcs78Lu3rv8Gqgrf

Jumpstile and others added 2 commits November 14, 2026 09:53
Also redact compound secret names, Authorization and Bearer values, and e-mail addresses, and Unix paths under well-known roots, in guide free text. Normal event titles such as Round 1/Final and WWE Raw 8/7c pass through unchanged. Signature, bounds and callers unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NzHAckAcs78Lu3rv8Gqgrf
@Jumpstile
Jumpstile merged commit 2c77a5f into main Nov 14, 2026
11 checks passed
@Jumpstile
Jumpstile deleted the fix/guide-safe-text-redaction branch November 14, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant