#12572: status: mask phone numbers in terminal channel output
commands
stale
Mask phone numbers in terminal status output so full WhatsApp/E.164 numbers are not exposed in clear text.
Changes:
- status-all/channels: mask linked self phone
- channels/status: mask allowFrom phone samples
Why: reduce accidental disclosure risk while preserving operator context.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates CLI status output to avoid printing full phone numbers in clear text. Specifically:
- `channels status` now masks `allowFrom` sample entries when they look like phone numbers.
- `status --all` channel table now masks the linked account’s `selfE164` value before rendering.
The changes are localized to terminal output formatting and don’t affect gateway calls or persisted configuration; they only modify what operators see in status output.
<h3>Confidence Score: 4/5</h3>
- Generally safe to merge; changes are output-only but redaction strength likely needs adjustment to meet the stated disclosure-reduction goal.
- The PR is small and limited to terminal formatting, so runtime risk is low. The main concern is functional: the current masking still exposes a stable prefix+suffix that may be considered sensitive given the PR’s purpose; if the project expects stronger redaction, this should be updated before merge.
- src/commands/channels/status.ts; src/commands/status-all/channels.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#11611: feat: separate group-level allowlist from sender-level command auth...
by thisnick · 2026-02-08
69.8%
#22335: fix: harden normalizeE164 against empty/invalid inputs returning ba...
by CZH-THU · 2026-02-21
69.8%
#21271: fix(commands): pass channel/capabilities/shell/os to runtime in com...
by evansantos · 2026-02-19
69.6%
#4878: fix: string/type handling and API fixes (#4537, #4380, #4373, #4547...
by lailoo · 2026-01-30
69.6%
#5665: fix: match group JIDs in groupAllowFrom allowlist
by koala73 · 2026-01-31
69.5%
#13881: fix: Address Greptile feedback - test isolation and channel resolution
by trevorgordon981 · 2026-02-11
69.4%
#8052: fix(whatsapp): strip leading whitespace from outbound messages
by FelixFoster · 2026-02-03
68.6%
#7145: chore: update package description to reflect multi-channel capabili...
by Protocol-zero-0 · 2026-02-02
68.6%
#8175: fix: suppress raw API errors for non-owners
by Rakshi2609 · 2026-02-03
68.5%
#10196: fix(whatsapp): sanitize raw mention IDs in outbound messages
by koala73 · 2026-02-06
68.4%