Enable strict authorization configuration by default in 3.1

Abierto
#2,958 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@lprimak ya está trabajando en esto.

Desde el 12/11/2026.

  • #2959 de @lprimak — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
java

Línea de trabajo

Read the authorization configuration and WildcardPermission code that consume shiro.authz.strictConfig, then inspect the authorization, permissions, web, and migration guides named in the issue. Check the existing 3.0.2 default and how the property is read before changing the 3.1 default. Done means the absent property enables both strict checks in 3.1, the explicit false opt-out remains available, 3.0.2 is unchanged, and all four guides explain the change; a linked pull request is already open.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

java

Make strict authorization configuration the default in Shiro 3.1.

The shiro.authz.strictConfig system property, introduced as an opt-in in 3.0.2, currently defaults to false. It controls two checks through one shared policy:

  • Empty authorization filter configurations and empty @RequiresPermissions / @RequiresRoles values are rejected at startup.
  • Empty or blank WildcardPermission parts and subparts, including trailing separators, are rejected.

For 3.1 the default should be true when the property is absent. -Dshiro.authz.strictConfig=false remains the opt-out for legacy behavior. The 3.0.2 default is unchanged.

The authorization, permissions and web guides and the migration guide on the site should explain the change and the opt-out.

Lenguaje dominante
Java
Estrellas
4.5k
Forks
2.3k
Merge medio
1 d 5 min
PR fusionados (30 d)
27

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/shiro

Todos los issues de apache/shiro

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.