67.1. Просмотр правил аутентификации #
В навигационной панели перейдите в Инфраструктура → Экземпляры.
Нажмите на имя экземпляра.
В навигационной панели перейдите в Аутентификация.
Отобразится таблица с информацией из файла конфигурации pg_hba.conf со следующими столбцами:
Тип: тип подключения или директивы включения.
Возможные значения:
local
host
hostssl
hostnossl
hostgssenc
hostnogssenc
include
include_if_exists
include_dir
База данных: базы данных, к которым применяется правило аутентификации.
Значение
allозначает, что правило применяется ко всем базам данных.Пользователь: пользователи и группы, к которым применяется правило аутентификации.
Значение
allозначает, что правило применяется ко всем пользователям.Адрес: сетевой адрес (или адреса) клиентской машины, к которой применяется правило аутентификации. Это поле может содержать имя компьютера, диапазон IP-адресов или одно из ключевых слов.
Значение
allозначает, что правило применяется к любым IP-адресам.Для правил аутентификации с типом
localэтот столбец не используется.IP-маска: маска IP-адреса.
Значение отображается, если в столбце Адрес указан только IP-адрес.
Указание маски в отдельном столбце является альтернативой записи
IP-адрес/длина_маски.Для правил аутентификации с типом
localэтот столбец не используется.Путь: Путь к дополнительному файлу или каталогу c правилами, которые будут включены наряду с правилами в
pg_hba.conf.Этот параметр отображается, если из выпадающего списка Тип вы выбираете значение
include,include_if_existsилиinclude_dir.Метод: метод аутентификации.
Возможные значения:
trust
reject
scram-sha-256
md5
password
За полным списком возможных методов аутентификации обратитесь к официальной документации Postgres Pro.
Опции: параметры метода аутентификации в формате
имя=значение.За подробной информацией о доступных параметрах методов аутентификации обратитесь к официальной документации Postgres Pro.
Правила в таблице сформированы в том порядке, в котором они следуют в основном файле конфигурации pg_hba.conf. Если в файле используются директивы include, include_if_exists, include_dir, правила в этих файлах не выводятся.
Чтобы просмотреть весь файл конфигурации pg_hba.conf, в правом верхнем углу страницы нажмите Смотреть весь файл.
67.1. Viewing Authentication Rules #
In the navigation panel, go to Infrastructure → Instances.
Click the name of the instance.
In the navigation panel, go to Authentication.
The table with the pg_hba.conf configuration file information and the following columns will be displayed:
Type: The type of the connection or the include directive.
Possible values:
local
host
hostssl
hostnossl
hostgssenc
hostnogssenc
include
include_if_exists
include_dir
Database: The databases to which the authentication rule applies.
The
allvalue means that the rule applies to all databases.User: The users and groups to which the authentication rule is applied.
The
allvalue means that the rule applies to all users.Address: The network address(es) of the client machine to which the authentication rule applies. It can include the name of the computer, IP range, or one of the keywords.
The
allvalue means that the rule applies to all IP addresses.This column is not used for rules with the
localtype.IP-mask: The mask of the IP address.
The value is displayed if only an IP address is specified in Address.
Specifying a mask in a separate column is an alternative for the
IP_address/mask_lengthrecord.This column is not used for rules with the
localtype.Path: The path to the additional file or directory that contains rules to be included alongside those in
pg_hba.conf.This parameter is available only if you select
include,include_if_exists, orinclude_dirfrom Type.Method: The authentication method.
Possible values:
trust
reject
scram-sha-256
md5
password
For the full list of possible authentication methods, refer to the official Postgres Pro documentation.
Options: The authentication method parameters in the
name=valueformat.For more information about available authentication method parameters, refer to the official Postgres Pro documentation.
The rules in the table follow the same order as in the main pg_hba.conf configuration file. If the include, include_if_exists, and include_dir directives are used in this file, the rules listed in the included files are not displayed.
To view the full pg_hba.conf configuration file, in the top-right corner of the page, click View full file.