The whitelist used is the one from Painless script...
# scripting
a
The whitelist used is the one from Painless scripting language for Elasticsearch which is very thoroughly vetted. I then add some permissions to Kotlin stdlib to allow typical Kotlin code, that needs flushed out more, but I'll do that for this release.