-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat: Kubeconfig file should not be world or group readable by default #1114
Conversation
Thanks @ishustava for opening this PR. I don't think that there is creds in kubeconfig. We rely on aws-cli or BTW, I think your approach is very opinionated and will probably cause issue for other users. Instead of putting |
Hey @barryib, sorry for the late reply - still catching up with all the things after the holiday break. Thanks so much for the review!
That's a good point. However, there should still be no reason for this file to be world- or group-readable, if we follow the principle of least privilege. Can you think of any use-cases when users would want a more wide permission?
I don't think this approach is very opinionated. The CLIs for the other two major cloud providers (Azure and Google) create kubeconfig with Furthermore, Helm versions Given that all other commonly used CLIs also use and recommend the |
@ishustava Good points. Thanks for your clarification. We can set the default to |
Hey @barryib I've updated the PR as you suggested. Let me know if I missed anything. Thanks again for taking a look! |
Hey @barryib, any chance we could merge this? |
Just a quick follow-up: are there any other changes I should make? Could we merge this PR? |
Sorry, I reviewed it months ago but I didn't send it 😢 |
Thanks @ishustava for your contribution. |
Thanks so much @barryib for taking this on and addressing the comments. Apologies for not addressing them! Really appreciate your help getting this merged 🙏 |
terraform-aws-modules#1114) Co-authored-by: Thierno IB. BARRY <[email protected]>
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Changes kubeconfig file permissions from
0644
to0600
whenwrite_kubeconfig
is set totrue
. Kubeconfig file should not be world or group readable due to the sensitive information such as credentials it contains.Checklist