Преглед на файлове

Enforced root-only permissions on cloud.providers.d.

As mentioned in issue #118, provider files may contain passwords
or API keys and should be restricted. Profiles/maps are probably
OK with the defaults.
master
Andrew Vant преди 9 години
родител
ревизия
f0e9c2df87
променени са 1 файла, в които са добавени 12 реда и са изтрити 4 реда
  1. +12
    -4
      salt/cloud.sls

+ 12
- 4
salt/cloud.sls Целия файл

@@ -56,9 +56,17 @@ salt-cloud-{{ dir }}:
- name: /etc/salt/cloud.{{ dir }}.d
- source: {{ source }}
- template: jinja
- user: root
- group: root
- dir_mode: 755
- file_mode: 644
- makedirs: True
{%- endfor %}

salt-cloud-providers-permissions:
file.directory:
- name: /etc/salt/cloud.providers.d
- user: root
- group: root
- file_mode: 600
- dir_mode: 700
- recurse:
- user
- group
- mode

Loading…
Отказ
Запис