Building Security Gates into an ML Pipeline