Improve firewall logging
Signed-off-by: Ammar Bikic <ammar.bikic@bosch.io>
This commit is contained in:
@@ -728,8 +728,10 @@ public class SecurityManagedConfiguration {
|
|||||||
final StrictHttpFirewall firewall = new StrictHttpFirewall();
|
final StrictHttpFirewall firewall = new StrictHttpFirewall();
|
||||||
|
|
||||||
if (allowedHostNames != null && !CollectionUtils.isEmpty(allowedHostNames)) {
|
if (allowedHostNames != null && !CollectionUtils.isEmpty(allowedHostNames)) {
|
||||||
firewall.setAllowedHostnames(hostName -> allowedHostNames.stream()
|
firewall.setAllowedHostnames(hostName -> {
|
||||||
.anyMatch(allowedHostName -> allowedHostName.equals(hostName)));
|
LOG.info("Firewall check host: {}, allowed: {}", hostName, allowedHostNames.contains(hostName));
|
||||||
|
return allowedHostNames.stream()
|
||||||
|
.anyMatch(allowedHostName -> allowedHostName.equals(hostName));});
|
||||||
}
|
}
|
||||||
return firewall;
|
return firewall;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user