Skip to content

Commit

Permalink
Enforce Argo workflow server to be compliant with PSS restricted
Browse files Browse the repository at this point in the history
Description:
- Enforce the Argo workflow server to be compliant when PSS is said to [restricted](https://kubernetes.io/docs/concepts/security/pod-security-standards/)
- Helm values for this chart are found [here](https://github.com/argoproj/argo-helm/blob/main/charts/argo-workflows/values.yaml)
- `SecurityContext` in the Helm chart has sensible defaults but it is better to define it explicitly here
- As part of alphagov/govuk-helm-charts#1883
  • Loading branch information
nimalank7 committed Nov 15, 2024
1 parent d947169 commit c7f9f4a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions terraform/deployments/cluster-services/argo.tf
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,19 @@ resource "helm_release" "argo_workflows" {
memory = "512Mi"
}
}
podSecurityContext = {
runAsNonRoot = true
seccompProfile = {
type = "RuntimeDefault"
}
}
securityContext = {
readOnlyRootFilesystem = true
allowPrivilegeEscalation = false
capabilities = {
drop = ["ALL"]
}
}
replicas = var.desired_ha_replicas
}
})]
Expand Down

0 comments on commit c7f9f4a

Please sign in to comment.