spring-security-baseline

Establish a secure Spring Security baseline for Spring Boot 7 applications.

50|7|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/loiane/specs-driven-development-spring-angular --skill spring-security-baseline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-security-baseline
Source: https://github.com/loiane/specs-driven-development-spring-angular/tree/main/.windsurf/skills/spring-security-baseline
Command: npx skills add https://github.com/loiane/specs-driven-development-spring-angular --skill spring-security-baseline

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This baseline provides a minimal, opinionated set of Spring Security 7 patterns to guide secure design and consistent reviews across authentication, authorization, CSRF, CORS, secrets handling, and input validation.

Core Features & Use Cases

  • Explicit access control: Enforces clear authentication and authorization decisions for endpoints.
  • Secure defaults: Advises on CSRF, session management, and headers to reduce risk in API and web apps.
  • Code-review rubric: Supplies a check-list rubric used during review to ensure security requirements are met.

Quick Start

Initialize your Spring Security 7 project with the baseline and adapt its policies to your endpoints.

Frequently Asked Questions about spring-security-baseline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a secure Spring Security baseline for Spring Boot 7?

A secure Spring Security baseline for Spring Boot 7 enforces explicit request matching, authentication, authorization, and safe defaults. You apply these minimal, opinionated patterns during the design phase to establish consistent endpoint access control.

What should a Spring Security code review rubric cover?

A Spring Security code review rubric should cover authentication, authorization, CSRF, CORS, and secrets handling. It supplies a checklist to ensure explicit access control decisions, secure session management, and proper input validation requirements are met.

Does this Spring Security baseline support both CSRF and CORS configuration?

Yes, the baseline supports both CSRF and CORS configuration. It advises on secure defaults for CSRF policies, CORS rules, and headers to reduce risk across both API and web applications.

What's the best way to enforce explicit authorization in Spring Boot 7 applications?

The best way to enforce explicit authorization in Spring Boot 7 is using an opinionated baseline that requires clear authentication and authorization decisions for every endpoint. This ensures no endpoint is left with ambiguous access control.

When do I need a security baseline for my Spring Boot application?

You need a security baseline for your Spring Boot application during design and code-review phases. It is required to ensure consistent decisions on authentication, session management, audit logging, and secrets handling before deployment.