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

Fix securityContext #110

Open
maxpain opened this issue Oct 24, 2024 · 2 comments
Open

Fix securityContext #110

maxpain opened this issue Oct 24, 2024 · 2 comments

Comments

@maxpain
Copy link

maxpain commented Oct 24, 2024

 Error creating: pods "cloudflare-operator-controller-manager-6c69d7595-fvqr5" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "kube-rbac-proxy" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "kube-rbac-proxy", "manager" must set securityContext.capabilities.drop=["ALL"]), seccompProfile (pod or containers "kube-rbac-proxy", "manager" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
@maxpain
Copy link
Author

maxpain commented Oct 24, 2024

The operator also can't create the tunnel deployment itself:

Error creating: pods "fastcup-95b95b84f-bs672" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "cloudflared" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "cloudflared" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "cloudflared" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "cloudflared" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")

@adyanth
Copy link
Owner

adyanth commented Oct 27, 2024

Looks like your environment enforces security policies for pods. You would benefit from #73 but I have not had time to work on this sadly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants