File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
molecule/postgres_hardening Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 4141 # - centosstream9
4242 # - rocky8
4343 # - rocky9
44- - ubuntu1804
44+ # - ubuntu1804
4545 - ubuntu2004
4646 - ubuntu2204
4747 # - debian10
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ postgresql_databases:
22 - name : example_db
33postgresql_users :
44 - name : postgres
5- password : iloverandompasswordsbutthiswilldo
5+ password : iloverandompasswordsbutthiswilldo
6+ postgresql_auth_method : scram-sha-256
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ postgres_hardening_restart_postgres: true
1010postgres_user : postgres
1111postgres_group : postgres
1212
13+ # Password Authentication
14+ password_encryption : scram-sha-256
15+
1316# SSL
1417ssl_enabled : " on"
1518ssl_ciphers : ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH
Original file line number Diff line number Diff line change 8888 mode : u=rw,g=r,o=
8989
9090# ################################
91- # POSTGRES-11/12/16 ### ##########
91+ # POSTGRES-07/ 11/12/16 ##########
9292# ################################
9393- name : Secure postgresql.conf Configuration
9494 ansible.builtin.lineinfile :
9797 regexp : " {{ item.regexp }}"
9898 state : present
9999 with_items :
100+ - line : " password_encryption = {{ password_encryption }}"
101+ regexp : " #?password_encryption\\ s?="
100102 - line : " ssl = {{ ssl_enabled }}"
101103 regexp : " #?ssl\\ s?="
102104 - line : " ssl_ciphers = '{{ ssl_ciphers }}'"
You can’t perform that action at this time.
0 commit comments