Commit 2626941
authored
fix(restore-session): scrub Nostr keys from log lines (#835)
master_key/trade_key were logged verbatim in 3 tracing calls, violating
AGENTS.md's "scrub logs that might leak invoices or Nostr keys"
guideline. master_key in particular is the user's persistent Nostr
identity, not a per-trade ephemeral key — if these info/warn logs
reach an external aggregator, anyone with log access could correlate
"this identity restored a session at this timestamp" in cleartext.
Closes #8341 parent abd9f3a commit 2626941
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
0 commit comments