Change the default value of pcp_listen_addresses from '*' to 'localhost'.
authorTatsuo Ishii <[email protected]>
Mon, 28 Feb 2022 06:52:11 +0000 (15:52 +0900)
committerTatsuo Ishii <[email protected]>
Mon, 28 Feb 2022 06:52:11 +0000 (15:52 +0900)
'*' was not very secure. Also the default value of listen_address in
Pgpool-II and PostgreSQL are 'localhost'.

doc.ja/src/sgml/connection-settings.sgml
doc/src/sgml/connection-settings.sgml
src/config/pool_config_variables.c

index 64e8c4b5045e7732557bb82342c23f13dd903372..504c54f235f923d5f819fa1bf2c8b54b969f700d 100644 (file)
       will accept TCP/IP connections. <literal>*</literal>
       accepts all incoming connections. <literal>''</literal>
       disables TCP/IP connections. Default
-      is <literal>*</literal>. Connections via UNIX domain
+      is <literal>localhost</literal>. Connections via UNIX domain
       socket are always accepted.
       -->
       PCPプロセスがTCP/IP接続を受け付けるホスト名またはIPアドレスを指定します。
       <literal>*</literal>を指定すると入ってくる全ての接続を受け付けます。
       <literal>''</literal>を指定するとTCP/IP接続を受け付けません。
-      デフォルト値は<literal>*</literal>です。
+      デフォルト値は<literal>localhost</literal>です。
       UNIXドメインソケット経由のコネクションは常に受け付けます。
      </para>
      <para>
index 0521e56e13a12e39f042055c9fa10d0422bdba86..1a767b17b498c6da905902d51664f1d3258ba961 100644 (file)
@@ -94,7 +94,7 @@
       will accept TCP/IP connections. <literal>*</literal>
       accepts all incoming connections. <literal>"" </literal>
       disables TCP/IP connections. Default
-      is <literal>*</literal>. Connections via UNIX domain
+      is <literal>localhost</literal>. Connections via UNIX domain
       socket are always accepted.
      </para>
      <para>
index 9811f40277f9848e77c5e13b130b1dd504d35985..7bed727a45bc19bbc31d17acd43baa258635ea15 100644 (file)
@@ -818,7 +818,7 @@ static struct config_string ConfigureNamesString[] =
                        CONFIG_VAR_TYPE_STRING, false, 0
                },
                &g_pool_config.pcp_listen_addresses,
-               "*",
+               "localhost",
                NULL, NULL, NULL, NULL
        },