|
Martin Čaj |
0e8bcf |
########################################################
|
|
Martin Čaj |
0e8bcf |
# Do not edit this file manually its managed by Salt ! #
|
|
Martin Čaj |
0e8bcf |
# Any changes needs be approved via MR in Gitlab. #
|
|
Martin Čaj |
0e8bcf |
########################################################
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
# PostgreSQL Client Authentication Configuration File
|
|
Martin Čaj |
0e8bcf |
# ===================================================
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# Refer to the "Client Authentication" section in the PostgreSQL
|
|
Martin Čaj |
0e8bcf |
# documentation for a complete description of this file. A short
|
|
Martin Čaj |
0e8bcf |
# synopsis follows.
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# This file controls: which hosts are allowed to connect, how clients
|
|
Martin Čaj |
0e8bcf |
# are authenticated, which PostgreSQL user names they can use, which
|
|
Martin Čaj |
0e8bcf |
# databases they can access. Records take one of these forms:
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# local DATABASE USER METHOD [OPTIONS]
|
|
Martin Čaj |
0e8bcf |
# host DATABASE USER ADDRESS METHOD [OPTIONS]
|
|
Martin Čaj |
0e8bcf |
# hostssl DATABASE USER ADDRESS METHOD [OPTIONS]
|
|
Martin Čaj |
0e8bcf |
# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS]
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# (The uppercase items must be replaced by actual values.)
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# The first field is the connection type: "local" is a Unix-domain
|
|
Martin Čaj |
0e8bcf |
# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
|
|
Martin Čaj |
0e8bcf |
# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
|
|
Martin Čaj |
0e8bcf |
# plain TCP/IP socket.
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# DATABASE can be "all", "sameuser", "samerole", "replication", a
|
|
Martin Čaj |
0e8bcf |
# database name, or a comma-separated list thereof. The "all"
|
|
Martin Čaj |
0e8bcf |
# keyword does not match "replication". Access to replication
|
|
Martin Čaj |
0e8bcf |
# must be enabled in a separate record (see example below).
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# USER can be "all", a user name, a group name prefixed with "+", or a
|
|
Martin Čaj |
0e8bcf |
# comma-separated list thereof. In both the DATABASE and USER fields
|
|
Martin Čaj |
0e8bcf |
# you can also write a file name prefixed with "@" to include names
|
|
Martin Čaj |
0e8bcf |
# from a separate file.
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# ADDRESS specifies the set of hosts the record matches. It can be a
|
|
Martin Čaj |
0e8bcf |
# host name, or it is made up of an IP address and a CIDR mask that is
|
|
Martin Čaj |
0e8bcf |
# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that
|
|
Martin Čaj |
0e8bcf |
# specifies the number of significant bits in the mask. A host name
|
|
Martin Čaj |
0e8bcf |
# that starts with a dot (.) matches a suffix of the actual host name.
|
|
Martin Čaj |
0e8bcf |
# Alternatively, you can write an IP address and netmask in separate
|
|
Martin Čaj |
0e8bcf |
# columns to specify the set of hosts. Instead of a CIDR-address, you
|
|
Martin Čaj |
0e8bcf |
# can write "samehost" to match any of the server's own IP addresses,
|
|
Martin Čaj |
0e8bcf |
# or "samenet" to match any address in any subnet that the server is
|
|
Martin Čaj |
0e8bcf |
# directly connected to.
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# METHOD can be "trust", "reject", "md5", "password", "scram-sha-256",
|
|
Martin Čaj |
0e8bcf |
# "gss", "sspi", "ident", "peer", "pam", "ldap", "radius" or "cert".
|
|
Martin Čaj |
0e8bcf |
# Note that "password" sends passwords in clear text; "md5" or
|
|
Martin Čaj |
0e8bcf |
# "scram-sha-256" are preferred since they send encrypted passwords.
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# OPTIONS are a set of options for the authentication in the format
|
|
Martin Čaj |
0e8bcf |
# NAME=VALUE. The available options depend on the different
|
|
Martin Čaj |
0e8bcf |
# authentication methods -- refer to the "Client Authentication"
|
|
Martin Čaj |
0e8bcf |
# section in the documentation for a list of which options are
|
|
Martin Čaj |
0e8bcf |
# available for which authentication methods.
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# Database and user names containing spaces, commas, quotes and other
|
|
Martin Čaj |
0e8bcf |
# special characters must be quoted. Quoting one of the keywords
|
|
Martin Čaj |
0e8bcf |
# "all", "sameuser", "samerole" or "replication" makes the name lose
|
|
Martin Čaj |
0e8bcf |
# its special character, and just match a database or username with
|
|
Martin Čaj |
0e8bcf |
# that name.
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# This file is read on server startup and when the server receives a
|
|
Martin Čaj |
0e8bcf |
# SIGHUP signal. If you edit the file on a running system, you have to
|
|
Martin Čaj |
0e8bcf |
# SIGHUP the server for the changes to take effect, run "pg_ctl reload",
|
|
Martin Čaj |
0e8bcf |
# or execute "SELECT pg_reload_conf()".
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# Put your actual configuration here
|
|
Martin Čaj |
0e8bcf |
# ----------------------------------
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
# If you want to allow non-local connections, you need to add more
|
|
Martin Čaj |
0e8bcf |
# "host" records. In that case you will also need to make PostgreSQL
|
|
Martin Čaj |
0e8bcf |
# listen on a non-local interface via the listen_addresses
|
|
Martin Čaj |
0e8bcf |
# configuration parameter, or via the -i or -h command line switches.
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
# TYPE DATABASE USER ADDRESS METHOD
|
|
Martin Čaj |
0e8bcf |
# "local" is for Unix domain socket connections only
|
|
Martin Čaj |
0e8bcf |
local all all trust
|
|
Martin Čaj |
0e8bcf |
# IPv4 local connections:
|
|
Martin Čaj |
0e8bcf |
local replication repmgr trust
|
|
Martin Čaj |
0e8bcf |
host replication repmgr 127.0.0.1/32 trust
|
|
Martin Čaj |
0e8bcf |
host replication repmgr 192.168.47.26/32 trust
|
|
Martin Čaj |
0e8bcf |
host replication repmgr 192.168.47.27/32 trust
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
local repmgr repmgr trust
|
|
Martin Čaj |
0e8bcf |
host repmgr repmgr 127.0.0.1/32 trust
|
|
Martin Čaj |
0e8bcf |
host repmgr repmgr 192.168.47.26/24 trust
|
|
Martin Čaj |
0e8bcf |
host repmgr repmgr 192.168.47.27/24 trust
|
|
Martin Čaj |
0e8bcf |
# mirrordb1
|
|
Martin Čaj |
0e8bcf |
host replication postgres 192.168.47.26/32 trust
|
|
Martin Čaj |
0e8bcf |
# mirrordb2
|
|
Martin Čaj |
0e8bcf |
host replication postgres 192.168.47.27/32 trust
|
|
Martin Čaj |
0e8bcf |
# mirrordb3
|
|
Martin Čaj |
0e8bcf |
host replication postgres 149.44.161.43/32 trust
|
|
Martin Čaj |
0e8bcf |
# mirrordb4
|
|
Martin Čaj |
0e8bcf |
host replication postgres 149.44.161.44/32 trust
|
|
Martin Čaj |
0e8bcf |
#
|
|
Martin Čaj |
0e8bcf |
local mb_opensuse2 mb password
|
|
Martin Čaj |
0e8bcf |
local all all password
|
|
Martin Čaj |
0e8bcf |
#local all all ident
|
|
Martin Čaj |
0e8bcf |
# IPv4 local connections:
|
|
Martin Čaj |
0e8bcf |
host all all 127.0.0.1/32 password
|
|
Martin Čaj |
0e8bcf |
# IPv6 local connections:
|
|
Martin Čaj |
0e8bcf |
host all all ::1/128 password
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
# remote connections:
|
|
Martin Čaj |
0e8bcf |
# pontifex3-opensuse
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 149.44.161.45/32 md5
|
|
Christian Boltz |
4ed210 |
host mb_opensuse2 mb 192.168.47.73/32 md5
|
|
Martin Čaj |
0e8bcf |
# scanner-opensuse
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 10.160.0.109/32 md5
|
|
Martin Čaj |
0e8bcf |
# scanner.infra.opensuse.org
|
|
Christian Boltz |
4ed210 |
host mb_opensuse2 mb 192.168.47.17/32 md5
|
|
Christian Boltz |
4ed210 |
host mb_opensuse2 rsyncsize 192.168.47.17/32 md5
|
|
Martin Čaj |
0e8bcf |
# watson, crick, wilkins and nagios-devel for nagios
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 10.160.0.40/32 md5
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 10.160.0.41/32 md5
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 10.160.0.44/32 md5
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 10.160.0.45/32 md5
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 149.44.176.22/32 md5
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 149.44.176.36/32 md5
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 149.44.176.37/32 md5
|
|
Martin Čaj |
0e8bcf |
# monitor.infra.opensuse.org
|
|
Christian Boltz |
4ed210 |
host mb_opensuse2 mb 192.168.47.7/32 md5
|
|
Martin Čaj |
0e8bcf |
# calloway.arch.suse.de. - rsync module calculation for aplanas/coolo
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 rsyncsize 10.161.8.74/32 md5
|
|
Martin Čaj |
0e8bcf |
# sandstorm.suse.de - darix
|
|
Martin Čaj |
0e8bcf |
#dx# host mb_opensuse2 mb 10.160.4.7/32 md5
|
|
Martin Čaj |
0e8bcf |
# pgbouncer
|
|
Martin Čaj |
0e8bcf |
host all pgbouncer 149.44.161.60/32 md5
|
|
Martin Čaj |
0e8bcf |
host all pgbouncer 192.168.47.73/32 md5
|
|
Martin Čaj |
0e8bcf |
host all pgbouncer 192.168.47.101/32 md5
|
|
Martin Čaj |
0e8bcf |
host all pgbouncer 192.168.47.102/32 md5
|
|
Martin Čaj |
0e8bcf |
host all pgbouncer 149.44.161.45/32 md5
|
|
Martin Čaj |
0e8bcf |
|
|
Christian Boltz |
4ed210 |
host mb_opensuse2 mb 192.168.47.73/32 md5
|
|
Christian Boltz |
4ed210 |
host mb_opensuse2 mb 192.168.47.101/32 md5
|
|
Christian Boltz |
4ed210 |
host mb_opensuse2 mb 192.168.47.102/32 md5
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
host gcc_stats gcc_stats 149.44.161.60/32 md5
|
|
Martin Čaj |
0e8bcf |
host gcc_stats gcc_stats 192.168.47.101/32 md5
|
|
Martin Čaj |
0e8bcf |
host gcc_stats gcc_stats 192.168.47.102/32 md5
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
host weblate weblate 149.44.161.60/32 md5
|
|
Martin Čaj |
0e8bcf |
host weblate weblate 192.168.47.101/32 md5
|
|
Martin Čaj |
0e8bcf |
host weblate weblate 192.168.47.102/32 md5
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
host gitlab gitlab 149.44.161.60/32 md5
|
|
Martin Čaj |
0e8bcf |
host gitlab gitlab 192.168.47.101/32 md5
|
|
Martin Čaj |
0e8bcf |
host gitlab gitlab 192.168.47.102/32 md5
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
host helios helios 149.44.161.60/32 md5
|
|
Martin Čaj |
0e8bcf |
host helios helios 192.168.47.101/32 md5
|
|
Martin Čaj |
0e8bcf |
host helios helios 192.168.47.102/32 md5
|
|
Martin Čaj |
0e8bcf |
|
|
Martin Čaj |
0e8bcf |
host lnt lnt 149.44.161.60/32 md5
|
|
Martin Čaj |
0e8bcf |
host lnt lnt 192.168.47.101/32 md5
|
|
Martin Čaj |
0e8bcf |
host lnt lnt 192.168.47.102/32 md5
|