GoSecurityMiddlewareCSP
CSP Nonce Middleware Pattern
A security middleware pattern that generates a unique cryptographic nonce per request and injects it into the Content-Security-Policy header.
PH Auth ServiceRead full gist
Please hold on for a moment while the content loads.
Deep-dive code patterns, architectural blueprints, and implementation guides for the tools and systems I build.
A security middleware pattern that generates a unique cryptographic nonce per request and injects it into the Content-Security-Policy header.
PH Auth ServiceAn adapter pattern that abstracts multiple payment gateways behind a unified interface for easy provider switching.
Payment ServiceA per-IP token bucket rate limiter using concurrent-safe maps and the Go rate package to protect APIs from abuse.
PH Auth ServiceA time-based one-time password service for multi-factor authentication using the HOTP/TOTP standard.
PH Auth Service