mirror of https://github.com/citusdata/citus.git
ssl_by_default: remove stray PG10 check
parent
2204a17dbd
commit
2a969fe4bb
|
@ -3,22 +3,11 @@
|
||||||
-- To test this we will verify that SSL is set to ON for all machines, and we will make
|
-- To test this we will verify that SSL is set to ON for all machines, and we will make
|
||||||
-- sure connections to workers use SSL by having it required in citus.conn_nodeinfo and
|
-- sure connections to workers use SSL by having it required in citus.conn_nodeinfo and
|
||||||
-- lastly we will inspect the ssl state for connections to the workers
|
-- lastly we will inspect the ssl state for connections to the workers
|
||||||
-- ssl can only be enabled by default on installations of postgres 10 and above that are
|
-- ssl can only be enabled by default on installations that are OpenSSL-enabled.
|
||||||
-- OpenSSL-enabled.
|
|
||||||
SHOW server_version \gset
|
|
||||||
SHOW ssl_ciphers \gset
|
SHOW ssl_ciphers \gset
|
||||||
WITH features AS (
|
SELECT :'ssl_ciphers' != 'none' AS hasssl;
|
||||||
SELECT
|
hasssl
|
||||||
substring(:'server_version', '\d+')::int >= 10 AS version_ten_or_above,
|
--------
|
||||||
:'ssl_ciphers' != 'none' AS hasssl
|
|
||||||
)
|
|
||||||
SELECT (
|
|
||||||
true
|
|
||||||
AND version_ten_or_above
|
|
||||||
AND hasssl
|
|
||||||
) AS ssl_by_default_supported FROM features;
|
|
||||||
ssl_by_default_supported
|
|
||||||
--------------------------
|
|
||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
|
|
|
@ -5,20 +5,9 @@
|
||||||
-- sure connections to workers use SSL by having it required in citus.conn_nodeinfo and
|
-- sure connections to workers use SSL by having it required in citus.conn_nodeinfo and
|
||||||
-- lastly we will inspect the ssl state for connections to the workers
|
-- lastly we will inspect the ssl state for connections to the workers
|
||||||
|
|
||||||
-- ssl can only be enabled by default on installations of postgres 10 and above that are
|
-- ssl can only be enabled by default on installations that are OpenSSL-enabled.
|
||||||
-- OpenSSL-enabled.
|
|
||||||
SHOW server_version \gset
|
|
||||||
SHOW ssl_ciphers \gset
|
SHOW ssl_ciphers \gset
|
||||||
WITH features AS (
|
SELECT :'ssl_ciphers' != 'none' AS hasssl;
|
||||||
SELECT
|
|
||||||
substring(:'server_version', '\d+')::int >= 10 AS version_ten_or_above,
|
|
||||||
:'ssl_ciphers' != 'none' AS hasssl
|
|
||||||
)
|
|
||||||
SELECT (
|
|
||||||
true
|
|
||||||
AND version_ten_or_above
|
|
||||||
AND hasssl
|
|
||||||
) AS ssl_by_default_supported FROM features;
|
|
||||||
|
|
||||||
SHOW ssl;
|
SHOW ssl;
|
||||||
SELECT run_command_on_workers($$
|
SELECT run_command_on_workers($$
|
||||||
|
|
Loading…
Reference in New Issue