-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Mark net.ipv4.tcp_keepalive_time as a safe sysctl #118846
Mark net.ipv4.tcp_keepalive_time as a safe sysctl #118846
Conversation
/sig network node |
425a9ab
to
8d28994
Compare
/cc @pacoxu @bobbypage |
/priority important-soon |
The sysctl-allow change in kubelet A website update is needed for v1.28 at https://kubernetes.io/docs/concepts/security/pod-security-standards/#baseline. |
LGTM label has been added. Git tree hash: d008686f961ebf04314b3fdd7cc874ef77ec7324
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe the generated stuff should be a separate commit?
LGTM label has been added. Git tree hash: dccd696ac98b41bfc2fda327cb79135b87be9fb6
|
/cc @danwinship |
pkg/kubelet/sysctl/safe_sysctls.go
Outdated
if kernelVersion != nil && kernelVersion.AtLeast(version.MustParseGeneric(sc.kernel)) { | ||
safeSysctlAllowlist = append(safeSysctlAllowlist, sc.name) | ||
} else { | ||
klog.ErrorS(nil, "drop the sysctl from safe sysctl list", "sysctl", sc.name, "kernelVersion", kernelVersion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I like the old error message better. Let's merge them together:
klog.ErrorS(nil, "Kernel version is too old, dropping sysctl from safe sysctl list", "kernelVersion", kernelVersion, "sysctl", sc.name)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, This is not necessarily because the kernel version is too old, it may also be because the kernel version cannot be obtained...
I'll re-lgtm and assign to Tim after you update the error message |
1620386
to
b42b3f7
Compare
/lgtm |
LGTM label has been added. Git tree hash: 86e2df8f6849fffabc4b5161fbe7ae1ee20d9a3a
|
if kernelVersion != nil && kernelVersion.AtLeast(version.MustParseGeneric(sc.kernel)) { | ||
safeSysctlAllowlist = append(safeSysctlAllowlist, sc.name) | ||
} else { | ||
klog.ErrorS(nil, "kernel version is too small, dropping the sysctl from safe sysctl list", "kernelVersion", kernelVersion, "sysctl", sc.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super-nit - I would make this Info, not error :)
Whoah, old comments I never sent and could not see! Thanks github, I appreicate that. /lgtm log nit can be a followup |
@thockin I think you meant approve |
/approve as @thockin clearly meant it :) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cyclinder, danwinship, dims, pacoxu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Mark net.ipv4.tcp_keepalive_time as a safe sysctl.
Which issue(s) this PR fixes:
Fixes #117873
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: