replicatedhq / replicatedhq/platform-examples

feat(mlflow): add security hardening defaults and NetworkPolicy

Open
#169 0 comments 0 reactions 0 assignees View on GitHub

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 podSecurityContext defaults to charts/mlflow/values.yaml: runAsNonRoot: true, fsGroup
  • Add containerSecurityContext defaults: readOnlyRootFilesystem: true, allowPrivilegeEscalation: false, capabilities.drop: [ALL]
  • Apply security contexts in charts/mlflow/templates/deployment.yaml via .Values references
  • Create charts/mlflow/templates/networkpolicy.yaml with:
    • 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 networkPolicy section to charts/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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.