I’m trying to add the camunda built-in security filter to my custom rest api and I figured out I have to override file securityFilterRules.json. But I have no idea how to do that.
I’m using camunda-bpm-spring-boot-starter-webapp and initialize the application using @EnableProcessApplication annotation. I use spring annotations exclusively, no web.xml or other configurations.
The file is loaded in the ResourceLoadingSecurityFilter class in this line:
Resource resource = resourceLoader.getResource("classpath:" +webappProperty.getWebjarClasspath() + configFileName);
This looks like I have to either create a custom ResourceLoader or create new SecurityFilter.
All the things I came up with just don’t seem right. Surely there must be some obvious and simple way to provide customized securityFilterRules.json file.