Securing Livy Server



I would like to ask how to prevent users to access different users’ data in a livy server. In a kerberised setup, it is impossible to access a different session than that of the user with the kerberos ticket. But how about the filesystem and the network? When spark saves overflow data that doesn’t fit in memory, wouldn’t another user be able to access that data?

Does livy give some additional security options to absolutely prevent file access and network access that the user shouldn’t access, or even better, to have only access to specific sources? What would I need to change for that?

Any help is very much apreciated.