feat: joko-security 2.x — Spring Boot 3.5, Java 21 y arquitectura modular - #162
Merged
alefq merged 6 commits intoAug 16, 2026
Merged
Conversation
Debido a que aún no hay un spring-boot-starter que corrija https://spring.io/security/cve-2024-22243
- Migra a Spring Boot 3.3, JJWT 0.12 y tests con Testcontainers - Separa la librería en core, storage, web, autoconfigure y starter - Agrega harness de development, Maven Wrapper y scripts de publish - Documenta empaquetado, integración y publicación a GitHub Packages - Quita plan de engagement, CLAUDE.md y referencias a un cliente - Reemplaza hostnames, credenciales y rutas internas por placeholders Cambios realizados y revisados por Rodrigo Villalba, con asistencia de IA.
- Parent 3.5.16 (Security 6.5, Framework 6.2.19, Tomcat 10.1.57) y postgresql 42.7.13 para CVSS >= 8; Springdoc 2.8.17. - Dependency-Check 13 en verify (aggregate, warning por default, NVD_API_KEY por env). Gate: -Ddependency-check.failBuildOnCVSS=8. - Resolución solo Maven Central; remotes privados en settings.xml. - Registra controllers web si joko.security.web.enabled=true. - jwt.secret opcional (sigue keychain / joko.secret.mode). - development/ deja de escanear paquetes 1.x.
java.version=21 en el parent, development y maven-compiler-plugin de los módulos. publish.sh / publish-artifactory.sh exigen 21+.
maven.yml, publish.yml y ci.yml.template usan Temurin 21.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumen
Versión 2.x de joko-security: librería modular sobre Spring Boot 3.5.16 / Java 21 / Jakarta, en lugar del JAR único 1.2.x (Boot 2.7 / Java 11–17).
La arquitectura modular y la primera migración a Spring Boot 3.3.x (JJWT 0.12, Testcontainers, Maven Wrapper, harness
development/, documentación de empaquetado e integración) son trabajo de Rodrigo Villalba (rodrigojv). Este PR continúa esa base: Boot 3.5.16, Java 21, cierre de CVSS ≥ 8, Dependency-Check 13 y autoconfigure de los controllers web.El contrato HTTP de tokens no cambia:
POST /api/login→ refresh,POST /api/token/user-access→ access, APIs con headerX-JOKO-AUTH(JWT crudo, noAuthorization: Bearer). Logout:POST /api/logoutcon el refresh.Créditos
rodrigojv).Módulos
joko-security-parentjoko-security-corejoko-security-storage-postgresjoko_security)joko-security-webjoko-security-autoconfigurejoko-security-starterLos consumidores declaran una dependencia:
io.github.jokoframework:joko-security-starter:2.0.0-SNAPSHOT.Requisito de runtime/compilación: Java 21+. Hasta que 2.x esté en Maven Central:
./mvnw installen este repo. El POM no lista remotes; Central +~/.m2. Un remoto privado va ensettings.xml(settings.xml.example).Seguridad de dependencias
verify(aggregate). Default: solo warning (failBuildOnCVSS=11).export NVD_API_KEY=…./mvnw verify -Ddependency-check.failBuildOnCVSS=8-Ddependency-check.skip=trueEl informe del reactor es el
aggregatede la raíz, nodependency-check:checken un módulo (inherited=false).Autoconfigure / breaking para integradores 1.x
joko.security.web.enabled=trueregistraSecurityFilterChainy los controllers (/api/login, tokens, logout).joko.security.jwt.secretes opcional; si está vacío siguejoko.secret.mode(BD keychain o FILE).io.github.jokoframework.joko-security1.2.x →joko-security-starter2.x.javax.*→jakarta.*. Tabla de tokens:tokens(notokende Liquibase 1.x).database-templates/flyway/.Harness: módulo
development/(Boot 3.5, Flyway, H2).Cómo probar
# Java 21+ ./mvnw -B install -DskipTests -Ddependency-check.skip=true Consumo de referencia: jokoframework/joko_backend_starter_kit 2.0 (PR aparte).