Default to not attach route to cookies

Closes #9393
This commit is contained in:
Pedro Igor 2022-01-31 18:23:31 -03:00
parent 5daddea006
commit 0de72105d7
2 changed files with 6 additions and 0 deletions

View file

@ -9,6 +9,9 @@ http-enabled=false
# Metrics and healthcheck are disabled by default
metrics-enabled=false
# Do not attach route to cookies and rely on the session affinity capabilities from reverse proxy
spi-sticky-session-encoder-infinispan-should-attach-route=false
# Default, and insecure, and non-production grade configuration for the development profile
%dev.http-enabled=true
%dev.hostname-strict=false

View file

@ -398,6 +398,9 @@ public class ConfigurationTest {
Environment.setProfile("prod");
assertEquals("true", createConfig().getConfigValue("kc.hostname-strict").getValue());
Environment.setProfile("prod");
assertEquals("false", createConfig().getConfigValue("kc.spi-sticky-session-encoder-infinispan-should-attach-route").getValue());
}
private Config.Scope initConfig(String... scope) {