We are working on a product which should allow end customers write business logic in some language. We are exploring Kotlin as that language.
One of the most important aspect in that case is security of the code our customers would write. We need to be able to understand Kotlin code they have written, rewrite some of that code and compile to java class.
How do we go about compiling the code they write at our product runtime, rewriting their code to inject logging, and limits or other monitoring to ensure the stability?
Any help or direction is appreciated.