Commit 5fe348a
committed
fix(csrf): distinct error codes, audit log on non-POST, honest lint header
- Distinct raise_message IDs per failure mode (syslog_method_error,
syslog_csrf_error, syslog_csrf_unavailable) so log triage can
differentiate non-POST, invalid token, and missing-helper paths
- Add cacti_log entry on the non-POST rejection path so the audit
trail is symmetric with the other two fail-closed branches
- Document csrf_check($fatal=false) arg semantics inline so future
readers see the helper contract
- Rename the regression test comment block to call out explicitly
that it is a source-scan lint, not a behavioral test; flag follow-up
for real behavioral coverage once a DB-backed test harness exists
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>1 parent 75e4ad6 commit 5fe348a
2 files changed
Lines changed: 25 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1609 | 1609 | | |
1610 | 1610 | | |
1611 | 1611 | | |
1612 | | - | |
| 1612 | + | |
| 1613 | + | |
1613 | 1614 | | |
1614 | 1615 | | |
1615 | 1616 | | |
1616 | 1617 | | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
1617 | 1621 | | |
1618 | 1622 | | |
1619 | | - | |
| 1623 | + | |
| 1624 | + | |
1620 | 1625 | | |
1621 | 1626 | | |
1622 | 1627 | | |
1623 | 1628 | | |
1624 | 1629 | | |
1625 | | - | |
| 1630 | + | |
1626 | 1631 | | |
1627 | 1632 | | |
1628 | 1633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
2 | 16 | | |
3 | 17 | | |
4 | 18 | | |
| |||
79 | 93 | | |
80 | 94 | | |
81 | 95 | | |
82 | | - | |
83 | | - | |
| 96 | + | |
| 97 | + | |
84 | 98 | | |
85 | 99 | | |
86 | 100 | | |
| |||
92 | 106 | | |
93 | 107 | | |
94 | 108 | | |
95 | | - | |
| 109 | + | |
96 | 110 | | |
97 | 111 | | |
98 | 112 | | |
| |||
0 commit comments