rest security