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

Need to set hostPID and hostIPC to false in Kured #39

Open
kavinkvb opened this issue Jun 1, 2023 · 5 comments
Open

Need to set hostPID and hostIPC to false in Kured #39

kavinkvb opened this issue Jun 1, 2023 · 5 comments
Labels
question Further information is requested

Comments

@kavinkvb
Copy link

kavinkvb commented Jun 1, 2023

As per the security recommendation to avoid containers sharing sensitive host namespaces, I need to set the hostPID and hostIPC to false on the pod spec in Kured.

We are using helm chart to deploy the Kured and when i deploy by assigning the value to false it is not reflecting in pod values.yaml.

Please let me know if any input is required.

Please assist me to solve this.

@ckotzbauer
Copy link
Member

Hi @kavinkvb,
the helm-chart does not offer the hostPID and hostIPC to be set through the values.yaml file. The hostPID variable is hardcoded to true in the chart, because kured needs this setting right now to work properly. We know, that this is not ideal from a security pov, but there would be huge architectural changes needed to achieve this.

@ckotzbauer ckotzbauer added the question Further information is requested label Jun 3, 2023
@kavinkvb
Copy link
Author

kavinkvb commented Jun 4, 2023

Hi @ckotzbauer
Thanks for your inputs.
I manually edited the hostPID to false in the daemonset after deploying the helm chart and this resolves the security recommendation.
Can you please suggest if this is the correct way of approach?

Also, in this case we need to change this value manually whenever we are redeploying the helm chart to avoid security recommendations.

@ckotzbauer
Copy link
Member

Did you test, that kured successfully can reboot nodes with this config? When kured is just idle, the hostpid is not needed, so maybe it does not work now.

@kavinkvb
Copy link
Author

kavinkvb commented Jun 5, 2023

I'll have a look and let you know if face any challenges.

Thanks

@ckotzbauer
Copy link
Member

@kavinkvb Do you have any feedback for us here?

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

No branches or pull requests

2 participants