-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
When trying to deploy the operator on OpenShift local, the hhkl-keylime-agent DaemonSet is not deployed properly. The event log is the following:
Error creating: pods "hhkl-keylime-agent-" is forbidden: unable to validate against any security context constraint: [provider "anyuid": Forbidden: not usable by user or serviceaccount, spec.volumes[0]: Invalid value: "hostPath": hostPath volumes are not allowed to be used, spec.volumes[1]: Invalid value: "hostPath": hostPath volumes are not allowed to be used, provider restricted-v2: .containers[0].privileged: Invalid value: true: Privileged containers are not allowed, provider "restricted": Forbidden: not usable by user or serviceaccount, provider "nonroot-v2": Forbidden: not usable by user or serviceaccount, provider "nonroot": Forbidden: not usable by user or serviceaccount, provider "hostmount-anyuid": Forbidden: not usable by user or serviceaccount, provider "machine-api-termination-handler": Forbidden: not usable by user or serviceaccount, provider "hostnetwork-v2": Forbidden: not usable by user or serviceaccount, provider "hostnetwork": Forbidden: not usable by user or serviceaccount, provider "hostaccess": Forbidden: not usable by user or serviceaccount, provider "hostpath-provisioner": Forbidden: not usable by user or serviceaccount, provider "privileged": Forbidden: not usable by user or serviceaccount]
I tried to deploy the pod in both unprivileged and privileged mode (by changing the global.service.agent.privileged value from build/helm/keylime/values.yaml) with the same result. The global.openshift value is set to true in the value file.
The issue seems related to the hhkl-keylime-agent service account not having sufficient permissions to set the necessary anyuid SCC for the pod.
Version info:
Client Version: 4.15.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: 4.14.12
Kubernetes Version: v1.27.10+28ed2d7
Metadata
Metadata
Assignees
Labels
No labels