Part 2: Headers that do real work
Sanitise on the way in, escape on the way out, and do both as late as possible. That one rule covers most of the bugs we find in reviews.
- Escape late, at the point of output
- Start CSP in report-only mode
- Review dependency updates weekly
- Require two-factor for deploy access
Nice to read something that admits the first attempt did not work. That is how it goes in real projects.
Good question. It took about three weeks, most of it waiting for review and measuring the results.
I shared this with my team. The list near the end is going straight into our onboarding doc.
Agreed, the numbers make it much easier to convince a manager.
I disagree slightly on the tooling choice, but the reasoning is solid and well explained.
Would love a follow-up in six months to see whether this held up.