Skip to content

Commit 43efb1e

Browse files
author
Filip Krahl
committed
check database parameters instead of config file - ssl_ciphers param
Signed-off-by: Filip Krahl <filip.krahl@t-systems.com>
1 parent 71f26c5 commit 43efb1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controls/postgres_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@
235235
impact 1.0
236236
title 'Use strong chiphers for ssl communication'
237237
desc 'The following categories of SSL Ciphers must not be used: ADH, LOW, EXP and MD5. A very good description for secure postgres installation / configuration can be found at: https://bettercrypto.org'
238-
describe postgres_conf(POSTGRES_CONF_PATH) do
239-
its('ssl_ciphers') { should eq 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' }
238+
describe postgres_session(USER, PASSWORD).query('SHOW ssl_ciphers;') do
239+
its('output') { should eq 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' }
240240
end
241241
end
242242

0 commit comments

Comments
 (0)