7.1. Менеджер и агент #
Менеджер является обычным прикладным ПО и не требует привилегированного доступа к функциям операционной системы. Служба менеджера может полноценно функционировать при запуске от имени непривилегированного системного пользователя.
Для работы с репозиторием менеджеру требуется отдельная база данных, где хранится служебная информация. Также требуется пользователь СУБД со следующими правами:
Право
LOGINдля подключения к экземпляру.Права для доступа к базе данных репозитория:
право владения базой данных
право подключения к базе данных
отсутствие ограничений прав доступа внутри базы данных (для миграций в схеме данных)
Агент является обычным прикладным ПО, для полноценной работы которого требуется:
доступ к функциям операционной системы
доступ к управляемому экземпляру СУБД
Для выполнения большинства функций агенту достаточно уровня доступа непривилегированного пользователя операционной системы. Есть небольшое количество функций, которым необходим привилегированный доступ. Для обеспечения их работы требуется дополнительная настройка системы и выдача необходимых прав. Без необходимой настройки и прав агент не может выполнить соответствующие действия, что ограничивает функциональность PPEM. Рекомендуется выполнить все необходимые настройки перед запуском агента.
Доступ к управляемому экземпляру СУБД можно разделить на следующие части:
Доступ к файлам и каталогам экземпляра СУБД, который обеспечивается с помощью уровней доступа операционной системы. Пользователь, от имени которого запущен агент, должен иметь доступ к основному каталогу данных.
Примечание
По умолчанию инициализацию основного каталога данных выполняет владелец
postgresс правами0600, поэтому большинство установок СУБД ограничивает доступ к этой настройке. Следовательно, оптимальным вариантом эксплуатации является запуск агента от имени системного пользователяpostgres.Доступ к SQL-интерфейсу экземпляра СУБД, для которого агенту требуется пользователь СУБД со следующими правами:
право
LOGINдля подключения к экземпляруправо подключения ко всем базам данных экземпляра
включение в роли
pg_monitorиpg_signal_backend
7.1. Manager and Agent #
The manager is a standard application software and does not require privileged access to operating system features. The manager service can operate fully when running under a non-privileged operating system user.
To work with the repository, the manager needs a separate database where service information is stored. Also, the DBMS user with the following rights is required:
The right to
LOGINto the instance.The repository database rights:
the ownership of the database
the right to connect to the database
no restrictions on access rights within the database (to perform migrations in the data schema)
The agent is a standard application software that requires the following for full operation:
access to operating system features
access to the managed DBMS instance
To implement most features, the agent only requires the access level of a non-privileged operating system user. There is a small number of features that require privileged access. To maintain this functionality, additional system configuration and granting of the necessary rights are required. Without the configuration and privileges, the agent cannot perform operations, which adversely affects PPEM functionality. It is recommended to complete all necessary configurations before running the agent.
Access to the managed DBMS instance can be divided into the following parts:
Access to files and directories of the DBMS instance, which is provided using operating system access levels. The user on whose behalf the agent is running must have access to the main data directory.
Note
By default, the main data directory is initialized by the
postgresowner with0600rights, so most DBMS installations restrict access to this configuration. Therefore, the optimal operational approach is to run the agent under thepostgressystem user.Access to the SQL interface of the DBMS instance, for which the agent requires the DBMS user with the following rights:
the right to
LOGINto the instancethe right to connect to all instance databases
the membership of the
pg_monitorandpg_signal_backendroles