How to set up a developer environment for debugging the security plugin


I’d like to debug the security-plugin.
I have set up a developer environment, started OpenSearch with ‘./gradlew run --debug-jvm’ and have a successfully connected IDEA debug session.
But what I’m missing is how I can activate the security plugin there and use my opensearch.yml and securityconfig/config.yml.