-
Notifications
You must be signed in to change notification settings - Fork 136
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
CNI commands aren't executed #594
Comments
I guess the problem is here: exec { 'Install cni network provider':
command => $provider_command,
onlyif => ['kubectl', 'get', 'nodes'],
unless => $provider_unless,
environment => $env,
}
exec { 'Install cni network provider':
command => $provider_command,
onlyif => ['kubectl get nodes'],
unless => $provider_unless,
environment => $env,
} I don't see the security benefits in this change. There's no string interpolation happening on this line. |
@chelnak This is related to hardening changes. Maybe we don't have to revert everything as done in here. But it's definitely not covered by tests. |
That branch is very much WIP right now.. though I will be reverting some of the changes introduced by the hardening efforts. In some cases potential issues had already been addressed so there is no value in altering these. Also thanks for raising awareness 👍 |
Fix executing CNI addons commands (fixes #594)
With
flannel
CNI plugin:The issue has been probably introduced in hardening efforts #592, cc @LukasAud
Instead of executing whole command:
only
kubectl
alone is executed which returns help message.here's debug output
Environment
puppetlabs-kubernetes
frommain
branch, ref. 7238ba0puppet-agent
7.21.0The text was updated successfully, but these errors were encountered: