-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[feat] Setting timezone under SELinux. #12436
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
base: master
Are you sure you want to change the base?
Conversation
Hi @bbaassssiiee. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
For proper testing this default should change to: preinstall_selinux_state: enforcing That would make the cluster more secure by default. What do you think? |
It is not recommended to modify SELinux default settings. This is because kubeadm advises using permissive mode, as referenced at: Kubernetes provides native security mechanisms such as Pod Security Context. These enable granular permission control at the container level without relying on SELinux's enforcement. |
I ran Kubespray with calico and local-path for months with SELinux, but don't just take my word for it. The Haven standard (compliance tests for Kubernetes by the Association of Dutch municipalities) requires SELinux or similar for other distros to enabled on the hosts. This blog has background on why people think SELinux should be disabled, and why that is a myth. |
Converted to draft. This conditional should be kept: when:
- ntp_timezone |
014d5ad
to
2456c5b
Compare
Made this more granular |
e17fdac
to
cffc9bb
Compare
@yankay Tests pass now, please review. |
c0e384f
to
c36d06d
Compare
Thanks @bbaassssiiee |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bbaassssiiee, yankay 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 |
CI pipeline failure seems unrelated to the PR https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/11245920993#L8374 |
Shall we rebase onto master and try again? |
bbe579c
to
e672f53
Compare
Signed-off-by: Bas Meijer <[email protected]>
e672f53
to
cce3ea8
Compare
What type of PR is this?
What this PR does / why we need it:
Fix setting timezone under SELinux.
Which issue(s) this PR fixes:
Fixes #12435
Special notes for your reviewer:
Ensure SELinux is enforcing, pre-test with this command:
Does this PR introduce a user-facing change?: