Skip to content

feat: Fix up Kubelet file permissions #1110

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jimmidyson
Copy link
Member

As per CIS benchmarks 4.1.1 and 4.1.9.

Requires #1109

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to address CIS benchmark requirements by disabling profiling for control plane components and enforcing secure file permissions for Kubelet.

  • Disabled profiling for apiServer, controllerManager, and scheduler in various cluster class templates
  • Added postKubeadmCommands to set file permissions on Kubelet config and service files
  • Introduced an example patch and updated configuration files across Nutanix, Docker, and AWS cluster classes

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
hack/examples/patches/disable-kubeadmcontrolplane-profiling.yaml Adds a patch to disable profiling on control plane components
charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/nutanix-cluster-class.yaml Updates cluster class with profiling disabled and adds chmod commands for Kubelet files
charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/nutanix-cluster-class-old.yaml Introduces an old cluster class configuration for backward compatibility
charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/docker-cluster-class.yaml Updates Docker cluster class with disabled profiling and Kubelet permissions changes
charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/aws-cluster-class.yaml Updates AWS cluster class by disabling profiling and enforcing Kubelet file permissions
Files not reviewed (3)
  • hack/examples/overlays/clusterclasses/aws/kustomization.yaml.tmpl: Language not supported
  • hack/examples/overlays/clusterclasses/docker/kustomization.yaml.tmpl: Language not supported
  • hack/examples/overlays/clusterclasses/nutanix/kustomization.yaml.tmpl: Language not supported

@jimmidyson jimmidyson changed the title feat: Fix up Kubelet file permissions** feat: Fix up Kubelet file permissions Apr 24, 2025
@github-actions github-actions bot added feature and removed feature labels Apr 24, 2025
@jimmidyson jimmidyson force-pushed the jimmi/cis-brnchmarks-kubeletservice-permissions branch 3 times, most recently from aaa27e9 to 5713c6e Compare May 1, 2025 15:48
As per CIS benchmarks 4.1.1 and 4.1.9.
@jimmidyson jimmidyson force-pushed the jimmi/cis-brnchmarks-kubeletservice-permissions branch from 5713c6e to ffc5425 Compare May 8, 2025 11:32
@jimmidyson jimmidyson enabled auto-merge (squash) May 8, 2025 15:32
@jimmidyson jimmidyson requested a review from dkoshkin May 8, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants