This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Commit c4ae1dd
fix: redact secrets from auth debug logs
The callback URL contains key=smsk_... and state=<token> — both secrets.
Logging r.URL.String() or raw state values would expose them in CI logs,
bug reports, and support tickets.
- Callback log now prints only the path and param names (never values)
- State mismatch log drops the raw token values entirely
- Dashboard URL log shows port only; state is marked <redacted>
Co-Authored-By: Grey Newell <greyshipscode@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 36c5743 commit c4ae1dd
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
146 | | - | |
| 153 | + | |
147 | 154 | | |
148 | 155 | | |
149 | 156 | | |
| |||
182 | 189 | | |
183 | 190 | | |
184 | 191 | | |
185 | | - | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| |||
0 commit comments