Open octomir opened 1 year ago
Fait :
Atelier avec @octomir :
runAsNonRoot: true
et allowPrivilegeEscalation: false
ovh-dev/template-*
A faire côté SRE :
NB: kyverno n'est installé que sur OVH
Pour aller plus loin (readOnlyFileSystem
) https://luppeng.wordpress.com/2022/04/16/nginx-with-read-only-filesystem-in-kubernetes/
A faire coté SRE: la regle runAsNonRoot empeche l'execution des pods
un roolback a été fait en attente de correction coté SRE
Namespace | pods | Status | Error Type |
---|---|---|---|
template-empty | pgweb-5855695c97-qmlv4 | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-feat-zero-downtime-lightship-on-hasura-branc-59r98s1x | maildev-865f7c5c78-5cjrx | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-feat-zero-downtime-lightship-on-hasura-branc-59r98s1x | pgweb-hasura-56f8dcdcb4-vgwdl | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-feat-zero-downtime-lightship-on-hasura-branc-59r98s1x | pgweb-keycloak-78dcd46dc9-qtplv | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-hasura | maildev-7fc9b654f9-rz7rd | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-hasura3 | maildev-6f7dbb5759-v2dhv | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-hasura3 | pgweb-hasura-5544c5589c-b9sfr | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-hasura3 | pgweb-keycloak-5645dd448c-qnwgf | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-renovate-hasura-patch-all-1x0aggh2 | maildev-6d8fcb4854-fztz7 | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-revolunet-patch-1 | maildev-84587695c6-mcl98 | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-revolunet-patch-1 | pgweb-hasura-7c8d54f7f9-k99sv | Init:CreateContainerConfigError | Error: container has runAsNonRoot and image will run as root ... |
template-revolunet-patch-1 | pgweb-keycloak-7888fd9cf7-b8927 | Init:CreateContainerConfigError | Error: container has runAsNonRoot and image will run as root ... |
template-test-e2e2 | maildev-5646c786d7-mc7vk | CreateContainerConfigError | Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root |
template-test-e2e2 | pgweb-hasura-5d566cf8b-kf5fq | Init:CreateContainerConfigError | Error: container has runAsNonRoot and image will run as root ... |
template-test-e2e2 | pgweb-keycloak-5d99fbf6b4-sxjpj | Init:CreateContainerConfigError | Error: container has runAsNonRoot and image will run as root ... |
Kyverno peut appliquer une règle de mise en oeuvre des security context pour les appliquer automatiquement
Kyverno Rule Security Contaction mutation for pods & containers
Sur tous les pods déployé sur le cluster OVH, nous distingons 67 pods au total avec 31 pods sans securityContext (namespace -/- pods)
DEV
PROD