Skip to content

Stop echoing message body to stderr when signing.#2520

Merged
fnando merged 2 commits intomainfrom
stop-echoing-message-in-sign
Apr 24, 2026
Merged

Stop echoing message body to stderr when signing.#2520
fnando merged 2 commits intomainfrom
stop-echoing-message-in-sign

Conversation

@fnando
Copy link
Copy Markdown
Member

@fnando fnando commented Apr 24, 2026

What

Stop echoing message body to stderr when signing.

Why

Close https://github.com/stellar/stellar-cli-internal/issues/62

Known limitations

N/A

@fnando fnando self-assigned this Apr 24, 2026
Copilot AI review requested due to automatic review settings April 24, 2026 01:51
@fnando fnando added this to DevX Apr 24, 2026
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Apr 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the message sign command to avoid leaking the message body via stderr output, addressing the referenced issue about unintended echoing during signing.

Changes:

  • Remove the stderr “Message:” preview output from message sign.
  • Add an integration test ensuring the message is not echoed to stderr (both argv and stdin paths).
  • Adjust an existing control-character test to no longer expect an escaped preview.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cmd/soroban-cli/src/commands/message/sign.rs Stops printing the message content to stderr during signing.
cmd/crates/soroban-test/tests/it/message.rs Adds a regression test for message non-echoing; modifies the control-character preview test assertions.

Comment thread cmd/crates/soroban-test/tests/it/message.rs Outdated
@fnando fnando enabled auto-merge (squash) April 24, 2026 01:59
@fnando fnando merged commit 12f76e4 into main Apr 24, 2026
213 checks passed
@fnando fnando deleted the stop-echoing-message-in-sign branch April 24, 2026 02:17
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants