Skip to content

Commit 5129293

Browse files
committed
Security cache disabled by default
1 parent 1ab5531 commit 5129293

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Version 3.9.1 (2019-12-12)
22

3-
* [chg] `AbstractTransactionManager` is now scoped as package.
43
* [new] Support for programmatic login through `SecuritySupport` interface (no need for Shiro-specific code anymore).
54
* [chg] Obtaining principals by type now honors inheritance (instead of returning principals of the exact specified type).
65
* [chg] Principals are no longer required to be serializable.
6+
* [chg] `AbstractTransactionManager` is now scoped as package.
7+
* [fix] Security authentication and authorization caches are now disabled by default (avoiding to keep credentials indefinitely in memory).
78

89
# Version 3.9.0 (2019-08-12)
910

security/core/src/main/java/org/seedstack/seed/security/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public AuthenticationConfig setCredentialsMatcher(Class<? extends CredentialsMat
286286
@Config("cache")
287287
public static class CacheConfig {
288288
@SingleValue
289-
private boolean enabled = true;
289+
private boolean enabled = false;
290290
private ItemCacheConfig authentication = new ItemCacheConfig();
291291
private ItemCacheConfig authorization = new ItemCacheConfig();
292292
private Class<? extends CacheManager> manager = MemoryConstrainedCacheManager.class;

security/core/src/test/resources/application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ logging: INFO
1010
security:
1111
realms: [ConfigurationRealm, X509CertificateRealm]
1212
cache:
13+
enabled: true
1314
manager: org.seedstack.seed.security.fixtures.TestCacheManager
1415
users:
1516
Obiwan:

0 commit comments

Comments
 (0)