Skip to content

Commit 71f26c5

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

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
@@ -226,8 +226,8 @@
226226
impact 1.0
227227
title 'It is recommended to activate ssl communication.'
228228
desc 'The hardening-cookbook will delete the links from #var/lib/postgresql/%postgresql-version%/main/server.crt to etc/ssl/certs/ssl-cert-snakeoil.pem and #var/lib/postgresql/%postgresql-version%/main/server.key to etc/ssl/private/ssl-cert-snakeoil.key on Debian systems. This certificates are self-signed (see http://en.wikipedia.org/wiki/Snake_oil_%28cryptography%29) and therefore not trusted. You have to #provide our own trusted certificates for SSL.'
229-
describe postgres_conf(POSTGRES_CONF_PATH) do
230-
its('ssl') { should eq 'on' }
229+
describe postgres_session(USER, PASSWORD).query('SHOW ssl;') do
230+
its('output') { should eq 'on' }
231231
end
232232
end
233233

0 commit comments

Comments
 (0)