Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`token` commands echo a mistyped secret key given in the `--to` param back in the "alias not found" error

クローズ 初心者向け
#2,771 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
cli, security

調査の方向性

無効なシークレット形式の値を使って、報告されている token transfer、token allowance、token balance のケースを再現し、テキスト出力と JSON 出力の両方を確認します。パラメーター --to、--spender、--account に共通する処理を追跡します。無効なシークレット形式の入力がエコーされず、通常のエイリアスエラーは理解しやすいままであれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
What version are you using?

stellar-cli 28.1.0 (d0b26d9, built from main).

What did you do?

I accidentally passed something shaped like a secret key, but invalid, where an address was expected. Here a made-up S… string stands in for a mistyped secret:

stellar token transfer --id native --from alice --amount 1 --network testnet \
  --to SBADKEYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
What did you expect to see?

An error that doesn't repeat the value back, like the one --from gives for the same input.

What did you see instead?

--from hides the value:

❌ error: invalid signing key or identity name

but --to prints it in full, in both text and JSON output:

❌ error: Account alias "SBADKEYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" not Found

{"error":{"type":"invalid_address","message":"Account alias \"SBADKEYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\" not Found"}}

With a real secret that has a one-character typo, this prints a near-copy of the secret to the terminal, logs and JSON consumers. token allowance --spender and token balance --account print it the same way.

主要言語
Rust
スター
128
フォーク
147
平均マージ
2日 12時間
マージ済み PR(30日)
35

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stellar/stellar-cli のほかの issue

stellar/stellar-cli の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。