mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-12 02:20:01 -03:30
Set filemode to 0640 (#2315)
* Set filemode to 0640 weave-net.yml file is readable by all users on the host. It however contains the weave_password to encrypt all pod communication. It should only be readable by root. * Set mode 0640 on users_file with basic auth
This commit is contained in:
parent
bfe196236f
commit
d84ff06f73
@ -10,5 +10,6 @@
|
||||
template:
|
||||
src: known_users.csv.j2
|
||||
dest: "{{ kube_users_dir }}/known_users.csv"
|
||||
mode: 0640
|
||||
backup: yes
|
||||
notify: Master | set secret_changed
|
||||
|
||||
@ -17,4 +17,5 @@
|
||||
template:
|
||||
src: weave-net.yml.j2
|
||||
dest: "{{ kube_config_dir }}/weave-net.yml"
|
||||
mode: 0640
|
||||
register: weave_manifest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user