Skip to content

Commit

Permalink
Enforced root-only permissions on cloud.providers.d.
Browse files Browse the repository at this point in the history
As mentioned in issue saltstack-formulas#118, provider files may contain passwords
or API keys and should be restricted. Profiles/maps are probably
OK with the defaults.
  • Loading branch information
andrew-vant committed Apr 6, 2015
1 parent f3ed6e1 commit f0e9c2d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions salt/cloud.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f0e9c2d

Please sign in to comment.