Skip to content

Keep passwords out of local echo and transcripts (#125, finished) - #128

Merged
HarryCordewener merged 3 commits into
mainfrom
claude/project-thread-fkigqi
Nov 11, 2026
Merged

HarryCordewener merged 3 commits into
mainfrom
claude/project-thread-fkigqi

Conversation

@HarryCordewener

Copy link
Copy Markdown
Member

Requested by Grave · project thread

Merges @nickrobnett's #125 unchanged (its commit 98b07ec is kept, so #125 shows as merged), then finishes it:

Checked against RFC 857: while the server has WILL ECHO, the client stops its local echo; the client never agrees to DO ECHO itself, so no echo loop. EchoProtocol in client mode initiates nothing (TNC 4.9.0), so the no-unsolicited-negotiation rule holds.

Verification: Release build 0 warnings; Core 1757/1758 (the one failure is AReadOnlyCacheDirectory_DegradesToMemoryOnly, which fails only when run as root); Tui 3041/3041.


Generated by Claude Code

nickrobnett and others added 3 commits November 8, 2026 20:55
Honor Telnet ECHO negotiation so standalone password responses
stay out of local scrollback, transcripts, and command history.
Resume normal local echo when the server sends WONT ECHO.

Reuse the existing credential detector to redact local echoes
of commands such as connect <name> <password>.
A typed line is now judged for credentials as typed: each physical line,
and each stacked piece with its #N repeat stripped, so
`look;#1 connect Corvid pw` (sent or refused) stays out of history and
the echo. One rule, HistorySecrets.CarriesCredential, serves both.

Also moves a doc comment #125 left on the wrong test, and adds the
changelog entry the Changelog workflow requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7WwMmhxVJpERSzReCy
@HarryCordewener HarryCordewener self-assigned this Nov 11, 2026
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener
HarryCordewener marked this pull request as ready for review November 11, 2026 00:19
@HarryCordewener
HarryCordewener merged commit ea5460e into main Nov 11, 2026
4 checks passed
HarryCordewener pushed a commit that referenced this pull request Nov 11, 2026
4.11.0 answers a server's WONT ECHO with DONT ECHO when it was echoing and
stops answering a repeated WILL ECHO (RFC 1143), which matters at a password
prompt now that local echo follows the server's ECHO state (#128).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7WwMmhxVJpERSzReCy
HarryCordewener added a commit that referenced this pull request Nov 11, 2026
4.11.0 answers a server's WONT ECHO with DONT ECHO when it was echoing and
stops answering a repeated WILL ECHO (RFC 1143), which matters at a password
prompt now that local echo follows the server's ECHO state (#128).


Claude-Session: https://claude.ai/code/session_01Rqqt7WwMmhxVJpERSzReCy

Co-authored-by: Claude <noreply@anthropic.com>
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.

3 participants