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
2 changed files with 2 additions and 0 deletions
|
@ -10,5 +10,6 @@
|
||||||
template:
|
template:
|
||||||
src: known_users.csv.j2
|
src: known_users.csv.j2
|
||||||
dest: "{{ kube_users_dir }}/known_users.csv"
|
dest: "{{ kube_users_dir }}/known_users.csv"
|
||||||
|
mode: 0640
|
||||||
backup: yes
|
backup: yes
|
||||||
notify: Master | set secret_changed
|
notify: Master | set secret_changed
|
||||||
|
|
|
@ -17,4 +17,5 @@
|
||||||
template:
|
template:
|
||||||
src: weave-net.yml.j2
|
src: weave-net.yml.j2
|
||||||
dest: "{{ kube_config_dir }}/weave-net.yml"
|
dest: "{{ kube_config_dir }}/weave-net.yml"
|
||||||
|
mode: 0640
|
||||||
register: weave_manifest
|
register: weave_manifest
|
||||||
|
|
Loading…
Reference in a new issue