JinwooHwang commented on PR #8153:
URL: https://github.com/apache/geode/pull/8153#issuecomment-7111908180
Hi @hesitationkills.
The CI failures come from two side effects of Shiro 3.0.2, and both are
small to address in this PR:
1. Logins without a password (token logins, for example)
Shiro 3.0.2 no longer matches empty credentials in its default matcher. In
Geode the SecurityManager has already validated the login at that point, so
CustomAuthRealm should set its matcher explicitly. In
geode-core/src/main/java/org/apache/geode/internal/security/shiro/CustomAuthRealm.java:
```java
import org.apache.shiro.authc.credential.AllowAllCredentialsMatcher;
...
public CustomAuthRealm(SecurityManager securityManager) {
this.securityManager = securityManager;
setAuthenticationTokenClass(GeodeAuthenticationToken.class);
setCredentialsMatcher(new AllowAllCredentialsMatcher());
}
```
2. slf4j-api version
Shiro 3.0.2 brings in slf4j-api 2.0.20, so the distribution ends up with two
copies. Please bump it from 2.0.18 to 2.0.20 in:
- DependencyConstraints.groovy (slf4j-api.version)
- boms/geode-all-bom/src/test/resources/expected-pom.xml
- geode-assembly/src/integrationTest/resources/assembly_content.txt
- geode-assembly/src/integrationTest/resources/gfsh_dependency_classpath.txt
- geode-server-all/src/integrationTest/resources/dependency_classpath.txt
Happy to help if anything is unclear. Thanks again for the contribution!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]