File tree 4 files changed +9
-3
lines changed
molecule/postgres_hardening
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 41
41
# - centosstream9
42
42
# - rocky8
43
43
# - rocky9
44
- - ubuntu1804
44
+ # - ubuntu1804
45
45
- ubuntu2004
46
46
- ubuntu2204
47
47
# - debian10
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ postgresql_databases:
2
2
- name : example_db
3
3
postgresql_users :
4
4
- 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
10
10
postgres_user : postgres
11
11
postgres_group : postgres
12
12
13
+ # Password Authentication
14
+ password_encryption : scram-sha-256
15
+
13
16
# SSL
14
17
ssl_enabled : " on"
15
18
ssl_ciphers : ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH
Original file line number Diff line number Diff line change 88
88
mode : u=rw,g=r,o=
89
89
90
90
# ################################
91
- # POSTGRES-11/12/16 ### ##########
91
+ # POSTGRES-07/ 11/12/16 ##########
92
92
# ################################
93
93
- name : Secure postgresql.conf Configuration
94
94
ansible.builtin.lineinfile :
97
97
regexp : " {{ item.regexp }}"
98
98
state : present
99
99
with_items :
100
+ - line : " password_encryption = {{ password_encryption }}"
101
+ regexp : " #?password_encryption\\ s?="
100
102
- line : " ssl = {{ ssl_enabled }}"
101
103
regexp : " #?ssl\\ s?="
102
104
- line : " ssl_ciphers = '{{ ssl_ciphers }}'"
You can’t perform that action at this time.
0 commit comments