Raise error on insecure yaml