Change the default value of pcp_listen_addresses from '*' to 'localhost'.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 28 Feb 2022 06:52:11 +0000 (15:52 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 28 Feb 2022 06:56:58 +0000 (15:56 +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 0918b75decaa1e88aa6e88b2f4c9b321950fba91..2a70eb4904300eeef2d796e3552bb4afef2f6789 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 954d2ff0e3e915b3c4944c2200126e0bfbc56f81..53beb37bd51f2faab5f434d2481685b702f4f888 100644 (file)
@@ -81,7 +81,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 4d6c04c20100510027089952780a387dc2457648..aed228a04678b7adc469f9465542876cbb4a8536 100644 (file)
@@ -555,7 +555,7 @@ static struct config_string ConfigureNamesString[] =
                        CONFIG_VAR_TYPE_STRING,false, 0
                },
                &g_pool_config.pcp_listen_addresses,
-               "*",
+               "localhost",
                NULL, NULL, NULL, NULL
        },