replicatedhq / replicatedhq/platform-examples
feat(mlflow): add security hardening defaults and NetworkPolicy
Nobody has claimed this yet.
- Dominant language
- Go Template
- Stars
- 9
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
Parent epic: #166
Integration branch: feat/mlflow-enterprise-patterns
Add security context defaults and NetworkPolicy for vendors in regulated industries (SOC 2, HIPAA).
Scope
- Add
podSecurityContextdefaults tocharts/mlflow/values.yaml:runAsNonRoot: true,fsGroup - Add
containerSecurityContextdefaults:readOnlyRootFilesystem: true,allowPrivilegeEscalation: false,capabilities.drop: [ALL] - Apply security contexts in
charts/mlflow/templates/deployment.yamlvia.Valuesreferences - Create
charts/mlflow/templates/networkpolicy.yamlwith:- Default deny all ingress/egress
- Allow same-namespace traffic
- Allow ingress-nginx → mlflow on port 5000
- Allow mlflow → postgres on port 5432
- Allow mlflow → minio on port 9000
- Conditional on
.Values.networkPolicy.enabled
- Add
networkPolicysection tocharts/mlflow/values.yaml
Files touched
applications/mlflow/charts/mlflow/values.yaml(add securityContext + networkPolicy sections)applications/mlflow/charts/mlflow/templates/deployment.yaml(wire security contexts)applications/mlflow/charts/mlflow/templates/networkpolicy.yaml(new file)
PR target
Branch PRs to feat/mlflow-enterprise-patterns (not main).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with applications/mlflow/charts/mlflow/values.yaml and applications/mlflow/charts/mlflow/templates/deployment.yaml, then inspect nearby Helm charts for security-context and NetworkPolicy conventions. Add the requested defaults, wiring, and conditional policy in networkpolicy.yaml; render or lint the chart and verify the generated rules cover the listed namespace, ingress-nginx, Postgres, and MinIO traffic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, kubernetes
- Domain
- devops, infrastructure, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100