-
Notifications
You must be signed in to change notification settings - Fork 248
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/cluster-managementDenotes a PR or issue as being assigned to SIG Cluster Management.Denotes a PR or issue as being assigned to SIG Cluster Management.
Description
What happened?
When attempted to use kubeone to install kuberenetes in a security hardened environment, i encountered following issues:
- /etc/kubeone/proxy-env - Permission denied
- ssh - administratively provibited.
Expected behavior
kubeone installation should proceed without any issues and succeed.
How to reproduce the issue?
Issue 1
- set umask to 0027 in the control plane nodes.
- set some proxy values in kubeone.yaml
- run kubeone apply. kubeone uses sudo to create the proxy-env file which gets created fine but the regular login user does not have access to it (because of umask
others
do not have access to /etc/kubeone directory and the file within)
Issue 2
- On the control plane machines, edit /etc/ssh/sshd_config to add
DisableForwarding yes
- Restart
sshd service by sudo systemctl restart sshd.service
- run kubeone apply.
- You will not be able to reach control plane machine during the csr-approval stage with error
administratively prohibited
What KubeOne version are you using?
Kubeone v1.10.0
What cloud provider are you running on?
vsphere
What operating system are you running in your cluster?
RHEL
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/cluster-managementDenotes a PR or issue as being assigned to SIG Cluster Management.Denotes a PR or issue as being assigned to SIG Cluster Management.