Skip to content

github/awesome-copilot / skills/spring-security

spring-security

Verified

Configure, test and review Spring Security 6/7 in Spring Boot 3/4 apps: SecurityFilterChain lambda DSL, method security, OAuth2 resource server with JWT, OIDC login, CSRF/CORS, password encoding, headers, actuator protection, and MockMvc security tests. Use when adding or auditing authentication and authorization.

references/review-checklist.md

View on GitHub
# Security review checklist (common mistakes)

- [ ] Lambda DSL and `requestMatchers` only; no `WebSecurityConfigurerAdapter`, `authorizeRequests`, `antMatchers`, `and()`.
- [ ] Deny by default (`anyRequest().authenticated()`), specific matchers first, narrow `permitAll`.
- [ ] CSRF stays on for cookie-authenticated apps; CORS lists explicit origins (no `*` with credentials).
- [ ] JWT issuer, audience and expiry validated; roles/scopes mapped intentionally.
- [ ] Actuator limited and secured (no public `env`, `heapdump`, `threaddump`, `shutdown`, `loggers`).
- [ ] `@PreAuthorize` only on proxied, non-self-invoked methods; `@EnableMethodSecurity` present.
- [ ] Tests cover 401, 403, success, and CSRF for new endpoints.
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall