Security Best Practices in MLOps
Get Secrets Out of Your Code, Put an API Key in Front of Your Model, and Understand the Attacks That Target ML Systems Specifically. (MLOPS: ABSOLUTE BEGINNERS TO PRO IN 100 DAYS - DAY 64)
By Sandip Das · · 5 min read

💡
Hey — It's Sandip Das 👋
In Day 63 we wired Terraform, ECR, S3, KServe and Grafana into one serving stack. It works, but right now anyone who finds the endpoint can call it, and there is a good chance an AWS key or MLflow password is sitting in a
Today we secure iris-mlops: move secrets into a secrets manager, add API key authentication to the FastAPI endpoint, and learn the attacks that target ML models themselves.
In Day 63 we wired Terraform, ECR, S3, KServe and Grafana into one serving stack. It works, but right now anyone who finds the endpoint can call it, and there is a good chance an AWS key or MLflow password is sitting in a
.env file or a notebook somewhere.Today we secure iris-mlops: move secrets into a secrets manager, add API key authentication to the FastAPI endpoint, and learn the attacks that target ML models themselves.
📚 Key Learnings
- The ML attack surface: data, pipeline, model artifact, serving API
- Secrets management with AWS Secrets Manager or HashiCorp Vault, and why env vars are only a first step
- ML-specific threats: adversarial inputs, model inversion, data poisoning, model theft
- Using the OWASP ML Security Top 10 as an audit checklist
- Hands-on: audit the repo, move secrets
Read the full article on learnxops.com.
Topics: 100 Days of MLOps, MLOps, ML, Security