When configuring the Agent, you must specify a user that the agent will use to connect to the database.
CREATE USER agent_user WITH PASSWORD <password>;
You must ensure that the agent user can log in to any database:
GRANT CONNECT ON DATABASE postgres TO agent_user;
Next steps
Configure and run the agent on Internet-connected environments or air-gapped environments.