setup security for persistence service