Skip to content

Principle of least privilege for kubeone user #2712

Closed Answered by steled
steled asked this question in Q&A
Discussion options

You must be logged in to vote

Finally I could find the answer myself.
By the help of the tool Snoopy all the used commands could be logged at the machines and I was able to see which one are needed.

Below you can find a full list of commands, maybe someone else also want to go this way:

# installation
kubeone ALL=NOPASSWD:/usr/bin/cat /etc/os-release
kubeone ALL=NOPASSWD:/usr/bin/mkdir -p /etc/kubeone
kubeone ALL=NOPASSWD:/usr/bin/tee /etc/kubeone/proxy-env
kubeone ALL=NOPASSWD:/usr/bin/rm -f /tmp/k1-etc-environment
kubeone ALL=NOPASSWD:/usr/bin/tee /etc/environment
kubeone ALL=NOPASSWD:/usr/sbin/swapoff -a
kubeone ALL=NOPASSWD:/usr/bin/sed -i /.*swap.*/d /etc/fstab
kubeone ALL=NOPASSWD:/usr/bin/systemctl disable --no…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by steled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant