Repository navigation
Commit 3ac6df5
committed
fix(describe): read IsPasswordBox through a named accessor
CodeQL's clear-text-logging query read `w["IsPasswordBox"]` as a lookup of a
credential and followed the boolean, field-insensitively, into every error the
page writer can return — surfacing as a high-severity alert at an unrelated
example's `fmt.Printf("Error creating page: %v\n", err)`. The value is a
design-time flag ("render this text box as a password field") and the logged
expression is an error, so the classification is wrong; the alert is new with
this branch because the inline map index is (PR #551 is the first to read that
key here — the same CodeQL check was clean on #542 and #546).
Reading the key through a helper takes the sensitive-looking literal out of the
index position. No behaviour change: the describe/builder round-trip tests for
Password are unchanged and pass.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L2aYb3zDscezm874CDTH6R1 parent 52f3c11 commit 3ac6df5
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
933 | 947 | | |
934 | 948 | | |
935 | 949 | | |
| |||
0 commit comments