Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KubeAPIWarningLogger log/warning_handler.go:65 would violate PodSecurity "restricted:v1.24" #1102

Closed
git-hyagi opened this issue Oct 3, 2023 · 0 comments · Fixed by #1106
Labels

Comments

@git-hyagi
Copy link
Collaborator

Running the operator in crc 4.13 is outputting the following warning message:

2023-10-02T13:45:04Z    INFO    KubeAPIWarningLogger    log/warning_handler.go:65       would violate PodSecurity "restricted:v1.24": allowPrivilegeEscalation != false (containers "init-container", "api" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "init-container", "api" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or containers "init-container", "api" must set securityContext.runAsNonRoot=true), seccompProfile (pod or containers "init-container", "api" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")

We need to investigate the impact of it and fix in case it is critical.
https://sdk.operatorframework.io/docs/best-practices/pod-security-standards/#how-should-i-configure-my-operators-and-operands-to-comply-with-the-criteria

@git-hyagi git-hyagi added the Task label Oct 3, 2023
git-hyagi added a commit to git-hyagi/pulp-operator that referenced this issue Oct 4, 2023
git-hyagi added a commit to git-hyagi/pulp-operator that referenced this issue Oct 4, 2023
git-hyagi added a commit that referenced this issue Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant