I have a WildFly 23 and want to deploy a service via a WAR file that can run BeanShell scripts. The permissions should be very limited. It is sufficient if data and the script can be passed to the service and thus simple calculations can be executed.
Example: I pass a list of customers as POJOs and a script that returns a list of first names. The WebService should then provide me with the list of first names.
The script should not be able to run Runtime.exec, build connections to URLs or otherwise compromise security. Scripts that run endlessly would be terminated by a hung-task-threshold. All I would need is to set a SecurityManager like on the client, on which I then grant only a few permissions. If I understand correctly, however, this option is currently already deprecated and removed as of WildFly 26. How can I tell the new security-manager subsystem that my web service has only a few permissions?
Thanks!