Secure Engineering Guidelines¶
This section is the entry point to the secure engineering practices WSO2 engineers apply when building WSO2 products. It covers the canonical secure-coding guide, configuration references for the headers and tools that enforce the security posture in production, and the analysis tools that run in CI.
Secure coding¶
- WSO2 Secure Coding Guidelines: the entry page for the secure coding guides.
- Secure Coding Guide: the canonical guide, organized by OWASP Top 10 - 2025 categories with stack-specific implementation in content tabs.
- React Secure Coding Guide covers frontend-specific guidance.
Configuration references¶
- HTTP Security Headers, Configuration Reference: a practical "how to apply" companion covering Carbon/Tomcat, Go middleware, reverse proxy, Kubernetes ingress, and WSO2 API Gateway.
- OWASP CSRFGuard: CSRF token validation configuration for Carbon Java applications.
Analysis tools¶
- Static Code Analysis: SAST tooling for Java (SpotBugs + Find Security Bugs) and Go (
gosec,staticcheck), plus Semgrep / CodeQL for codebase-specific rules. - Dynamic Analysis with OWASP ZAP covers running ZAP against deployed WSO2 products.
- Dependency Vulnerability Analysis: Dependency Check for Java,
govulncheckfor Go, andnpm auditfor JavaScript.