What problem does it solve?
This Skill provides a practical guide for implementing consistent Spring Boot security practices across authentication, authorization, input validation, CSRF, secrets, and security headers to protect services.
Core Features & Use Cases
- Authentication best practices: stateless tokens (JWT or opaque) with revocation, secure cookies, and token validation.
- Authorization and access control: method security with @EnableMethodSecurity and @PreAuthorize checks.
- Data protection and validation: input validation, sanitization, and secure configuration for sensitive data.
- Security posture: CSRF decisions, secure headers, and safe handling of secrets and dependencies.
- Use Case: apply these patterns to a new REST service to prevent lax security and enforce least privilege.
Quick Start
Initialize your Spring Boot project with security-enabled dependencies, enable method security, and apply standard token-based authentication and CSRF decisions according to your app type.