Bezpieczeństwo · Budowanie i kod
spring-boot-security
/spring-boot-security
Konfiguruje Spring Security 6+ z Lambda DSL, JWT i regułami hardeningu, także dla OAuth2.
- Autor
- HoangNguyen0403 ↗
- Repozytorium
- agent-skills-standard ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 22.10.2026
Ocena i bezpieczeństwo
100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Przestarzałość
Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.
Licencja
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Konfiguruje Spring Security 6+ z Lambda DSL, JWT i regułami hardeningu, także dla OAuth2.
Oryginalny opis (EN)
Configure Spring Security 6+ with Lambda DSL, JWT, and hardening rules. Use when configuring Spring Security 6+, OAuth2, JWT, or security hardening in Spring Boot.
Jak działa
- Priority: P0 (CRITICAL)
- Configure SecurityFilterChain
- Implement Authentication and Authorization
- Secure JWT Tokens
- Hardening Checklist
- Anti-Patterns
- References
Sekcje z nagłówków SKILL.md, w oryginale · 44 linii, 214 słów
Podgląd SKILL.md
---
name: spring-boot-security
description: Configure Spring Security 6+ with Lambda DSL, JWT, and hardening rules. Use when configuring Spring Security 6+, OAuth2, JWT, or security hardening in Spring Boot.
metadata:
triggers:
files:
- '**/*SecurityConfig.java'
- '**/*Filter.java'
keywords:
- security-filter-chain
- lambda-dsl
- csrf
- cors
---
# Spring Boot Security Standards
## **Priority: P0 (CRITICAL)**
## Configure SecurityFilterChain
- **Lambda DSL**: ALWAYS use Lambda DSL.
- **SecurityFilterChain**: Expose as `@Bean`. not extend `WebSecurityConfigurerAdapter`.
- **Statelessness**: Enforce `SessionCreationPolicy.STATELESS` for REST APIs.
See [implementation examples](references/implementation.md) for SecurityFilterChain configuration with Lambda DSL and JWT.
## Implement Authentication and Authorization
- **Authentication**: Validation of credentials (Who you?). Use `AuthenticationManager` or `JwtDecoder`.
- **Authorization**: Verification of access rights (Can you this?). Use `@PreAuthorize`.
## Secure JWT Tokens
- **Algorithm**: Enforce `RS256` or `HS256`. **Reject `none` algorithm**.
- **Claims**: Validate `iss`, `aud`, and `exp`.
- **Tokens**: Short-lived access JWTs (15m), secure refresh tokens (httpOnly cookie).
## Hardening Checklist
- [ ] **CSRF**: Disabled for pure APIs? Enabled + Cookie for Browser Apps?
- [ ] **CORS**: Specific origins permitted? No `*` with credentials?
- [ ] **Headers**: HSTS, Content-Type-Options, X-Frame-Options enabled?
- [ ] **Secrets**: No hardcoded keys? Loaded from Vault/Env?
- [ ] **Rate Limiting**: Applied on login/expensive endpoints?
- [ ] **Dependencies**: Scanned for CVEs?
## Anti-Patterns
- **No Adapter**: Use `SecurityFilterChain` bean instead of extending legacy classes.
- **No .and()**: Use Lambda DSL for configuration.
- **No Secrets**: Load from Vault or Environment variables (never git).
- **No antMatchers**: Use `requestMatchers` (Spring Security 6+).
## References
- [Implementation Examples](references/implementation.md)
- common/security-standards
- architecture
Pliki w paczce (3)
- SKILL.md 2 KB
- evals/evals.json 2 KB
- references/implementation.md 2 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · HoangNguyen0403/agent-skills-standard | 100 | MIT |
| joaquimscosta/arkhe-claude-plugins | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki e272f9e46c8e (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100spring-security
Dodaje do Spring Boot 4 zabezpieczenia JWT: konfigurację, mapowanie ról i uprawnień oraz testy. - 100spring-security-6
Migruje konfigurację Spring Security 5 do Spring Security 6: usuwa WebSecurityConfigurerAdapter, zamienia @EnableGlobalMethodSecurity i antMatchers oraz przechodzi na lambda DSL. - 100spring-security
Konfiguruje, testuje i przegląda Spring Security 6 i 7: łańcuch filtrów, OAuth2 z JWT, logowanie OIDC, CSRF i CORS. - 100spring-boot-security-jwt
Wspiera uwierzytelnianie i autoryzację JWT w Spring Boot 3.5.x: generowanie tokenów w JJWT, Bearer i cookie, integrację z bazą i OAuth2 oraz RBAC w Spring Security 6.x. - 100spring-security
Wspiera uwierzytelnianie JWT w Spring Security dla Spring Boot 3: SecurityFilterChain, filtr JWT, autoryzacja, CORS, limity zapytań i nagłówki bezpieczeństwa. - 100spring-security-review
Przegląda własną aplikację Spring Boot pod kątem autoryzacji, obsługi żądań i odsłoniętych endpointów zarządzania.