Skip to content

Commit

Permalink
feat: delete defaultly unused files to reduce attack surface
Browse files Browse the repository at this point in the history
  • Loading branch information
lakrass committed Dec 12, 2024
1 parent f554c65 commit 373141f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tasks/install_hashi_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,19 @@
group: root # Package default
when: vault_harden_file_perms

- name: Delete vault.env
become: true
ansible.builtin.file:
state: absent
path: /etc/vault.d/vault.env
when: vault_harden_file_perms

- name: Delete default certs
become: true
ansible.builtin.file:
state: absent
path: /opt/vault/tls/{{ item }}
with_items:
- tls.crt
- tls.key
when: vault_tls_disable or vault_tls_copy_keys

0 comments on commit 373141f

Please sign in to comment.