8000 Restrict response.headers guc placeholder · sorokinvld/postgres@6d8ae7b · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d8ae7b

Browse files
steve-chavezdarora
authored andcommitted
Restrict response.headers guc placeholder
1 parent 2eaaacf commit 6d8ae7b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

ansible/tasks/internal/supautils.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@
4646
state: present
4747
line: supautils.reserved_memberships = 'pg_read_server_files, pg_write_server_files, pg_execute_server_program'
4848

49+
- name: supautils - set supautils.placeholders
50+
become: yes
51+
lineinfile:
52+
path: /etc/postgresql/postgresql.conf
53+
state: present
54+
line: supautils.placeholders = 'response.headers'
55+
56+
- name: supautils - set supautils.placeholders_disallowed_values
57+
become: yes
58+
lineinfile:
59+
path: /etc/postgresql/postgresql.conf
60+
state: present
61+
line: supautils.placeholders_disallowed_values = 'content-type'
62+
4963
- name: supautils - add supautils to session_preload_libraries
5064
become: yes
5165
replace:
@@ -58,4 +72,4 @@
5872
pkg:
5973
- build-essential
6074
- clang-11
61-
state: absent
75+
state: absent

0 commit comments

Comments
 (0)
0