What problem does it solve?
This Skill addresses common security challenges in Spring Boot applications, including authentication, authorization, input validation, and secret management.
Core Features & Use Cases
- Authentication: Implement JWT or session-based authentication.
- Authorization: Apply role-based access control and method security.
- Input Validation: Validate user input and sanitize HTML content.
- SQL Injection Prevention: Use parameterized queries and Spring Data repositories.
- Password Encoding: Securely hash passwords with BCrypt or Argon2.
- CSRF Protection: Configure CSRF protection for web applications.
- Secrets Management: Externalize secrets and rotate credentials regularly.
- Security Headers: Set appropriate security headers to protect against XSS and CSRF.
- CORS Configuration: Configure CORS for secure API interactions.
- Rate Limiting: Apply rate limiting to protect against abuse.
- Dependency Security: Scan dependencies for vulnerabilities.
- Logging and PII: Avoid logging sensitive information and redact PII.
- File Uploads: Validate and sanitize file uploads.
- Checklist Before Release: Ensure all security best practices are followed before deployment.
Quick Start
Use the springboot-security skill to review the security configuration of your Spring Boot application.