<!-- XE-11801 · [Minor] Desk CLI mencetak signer passphrase di traceback Typer saat `keys` gagal — `pretty_exceptions_show_locals` tidak dimatikan (sisa fix XE-2213/12ca076) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-11801>. The page is the record; this is the same page for reading.*

XE-11801 · Bounty

# \[Minor\] Desk CLI mencetak signer passphrase di traceback Typer saat \`keys\` gagal — \`pretty\_exceptions\_show\_locals\` tidak dimatikan (sisa fix XE-2213/12ca076)

Closed · duplicate
—claimed Minor
web
filed 2026-11-13 09:05 UTC
by cunels

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Minor

Area
:   Other

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 13:00 UTC

Told
:   2026-11-20 13:00 UTC

### Patches

None linked.

### History

- [598469](https://bounty.xe.network/log/598469) 2026-11-20 13:00 UTC proposal.adopted
- [598468](https://bounty.xe.network/log/598468) 2026-11-20 13:00 UTC reply.sent
- [598467](https://bounty.xe.network/log/598467) 2026-11-20 13:00 UTC ticket.status new → closed
- [596064](https://bounty.xe.network/log/596064) 2026-11-20 12:59 UTC proposal.adopted
- [596063](https://bounty.xe.network/log/596063) 2026-11-20 12:59 UTC ticket.facts area
- [596062](https://bounty.xe.network/log/596062) 2026-11-20 12:59 UTC proposal.adopted
- [596061](https://bounty.xe.network/log/596061) 2026-11-20 12:59 UTC ticket.facts
- [596060](https://bounty.xe.network/log/596060) 2026-11-20 12:59 UTC proposal.adopted
- [596059](https://bounty.xe.network/log/596059) 2026-11-20 12:59 UTC ticket.facts
- [587278](https://bounty.xe.network/log/587278) 2026-11-20 09:37 UTC note.added
- [587277](https://bounty.xe.network/log/587277) 2026-11-20 09:37 UTC proposal.created
- [587276](https://bounty.xe.network/log/587276) 2026-11-20 09:37 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-11801) · [JSON](https://bounty.xe.network/v1/tickets/XE-11801) · [markdown](https://bounty.xe.network/XE-11801.md)

### Report

Judul: Desk CLI mencetak signer passphrase di traceback Typer saat `keys` gagal — `pretty_exceptions_show_locals` tidak dimatikan (sisa fix XE-2213/12ca076)

Letak Bug:
`desk/desk/cli.py:16-21` — keempat aplikasi Typer (`app`, `keys_app`, `users_app`, `tokens_app`) tidak menyetel `pretty_exceptions_show_locals=False`, padahal fix DAO `12ca076` (XE-2213) menyetel flag itu di kedua aplikasi Typer DAO dengan alasan "typer's default traceback writes every local to the terminal". `keys_show` (`cli.py:72-77`) dan `keys_init` (`:52-69`) meneruskan passphrase ke `Signer.load` / `Signer.init_keyfile` tanpa try/except; `Signer.load` (`desk/signer.py:77`) menyimpan passphrase sebagai parameter lokal di framenya. Passphrase sampai ke frame itu lewat semua jalur — opsi `--passphrase`, env `DESK_SIGNER_PASSPHRASE`, maupun prompt `getpass` — jadi channel ini tidak hilang kalau opsi CLI-nya dihapus (XE-11573).

Seberapa Buruk Bug nya:
Minor. Cara mereproduksi (sudah dieksekusi di CLI desk asli, Typer 0.21.0): `DESK_SIGNER_PASSPHRASE='<secret>' python -m desk.cli keys show --path /tmp/no-such-keyfile.json` → `SignerError` (keyfile tidak ada), dan panel `locals` di traceback Typer mencetak `passphrase = '<secret>'` secara utuh. Kontrol di Typer 0.29.1: error sama, secret tidak muncul sama sekali. Batas versi terukur: default `show_locals=True` di Typer 0.12–0.23, `False` mulai 0.24.0; desk mem-pin `typer>=0.12` tanpa batas atas dan tanpa lockfile, jadi instalasi CLI desk di Typer \< 0.24 bocor. Dampaknya lokal saja: passphrase mendekripsi keyfile yang menyimpan log key dan vault key (vault menyegel semua isi laporan privat), tapi penyerang tetap butuh keyfile-nya, dan butuh command `keys` yang gagal plus stderr yang terekam/diintip. Catatan jujur: ini channel kedua dari fix XE-2213 yang sama — XE-11573 sudah mengajukan channel opsi `--passphrase`-nya; channel traceback ini pemicunya beda, fix-nya beda satu baris, dan tetap hidup setelah XE-11573 diperbaiki.

### Thread

**Joseph Denne**team2026-11-20 13:00 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-11801 and says what differs; it is read like any other.
