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

[BUG][opensearch] Opensearch helm chart failing to install due to kyverno securitycontext restriction #580

Open
kndoni opened this issue Aug 26, 2024 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@kndoni
Copy link

kndoni commented Aug 26, 2024

Describe the bug
I am trying to install opensearch helm chart in a k8s cluster that has kyverno cluster policies that enforces having securityContexts in place. There are couple of initContainers which securityContext is missing and this is not allowing me to install the chart.

1 error occurred:\n\t* admission webhook \"validate.kyverno.svc-fail\" denied the request: \n\nresource StatefulSet/opensearch-test/groot-opensearch-cluster-master was blocked due to the following policies \n\ndisallow-privilege-escalation:\n autogen-privilege-escalation: 'validation error: Privilege escalation is disallowed.\n The fields spec.containers[*].securityContext.allowPrivilegeEscalation, spec.initContainers[*].securityContext.allowPrivilegeEscalation,\n and spec.ephemeralContainers[*].securityContext.allowPrivilegeEscalation must\n be set to false. . rule autogen-privilege-escalation failed at path\n /spec/template/spec/initContainers/0/securityContext/'\n\n\n\n"

To Reproduce
Kyverno should be installed on a k8s cluster

Chart Name
opensearch and opensearch-dashboards

@kndoni kndoni added bug Something isn't working untriaged Issues that have not yet been triaged labels Aug 26, 2024
@kndoni kndoni changed the title [BUG][opensearch] [BUG][opensearch] Opensearch helm chart failing to install due to kyverno securitycontext restriction Aug 26, 2024
@prudhvigodithi
Copy link
Collaborator

[Triage]
Hey @kndoni is Kyverno blocking the installation? Can you try without the Kyverno once and see, I assume there must be some allowlist using Kyverno. If not the there has to be a setting to use allowPrivilegeEscalation to false.
Thank you
@peterzhuamazon

@prudhvigodithi prudhvigodithi added question Further information is requested and removed untriaged Issues that have not yet been triaged labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
Status: Backlog
Development

No branches or pull requests

2 participants