> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-monitoring-and-management/3/llms.txt).

# About security in PMM

By default, PMM ships with a self-signed certificate to enable usage out of the box. While this does enable users to have encrypted connections between clients (database clients and web/API clients) and the PMM Server, it shouldn’t be considered a properly secured connection.

Taking the following precautions will ensure that you are truly secure:

- [SSL encryption with trusted certificates](https://docs.percona.com/percona-monitoring-and-management/3/admin/security/ssl_encryption.md) to secure traffic between clients and server;
- [Grafana HTTPS secure cookies](https://docs.percona.com/percona-monitoring-and-management/3/admin/security/grafana_cookies.md)
- [Encrypt the PMM Client configuration file](https://docs.percona.com/percona-monitoring-and-management/3/admin/security/client_config_encryption.md) to protect stored credentials on client hosts
- [Provide PMM Server credentials in files](https://docs.percona.com/percona-monitoring-and-management/3/admin/security/credentials_as_files.md) to keep PMM Server’s passwords out of the container settings

## Manually configure the PostgreSQL Grafana datasource

Starting with PMM 3.9.0, PMM no longer provisions a PostgreSQL Grafana datasource by default. If you need to query PMM’s internal PostgreSQL database directly, you can add the datasource manually.

To prevent unauthorized data modification, configure the datasource with a database user that has **SELECT**-only permissions.

To add the PostgreSQL datasource:

1. From the **Home** page, locate the Search icon (top right on the screen).
1. Type “plugins” and select **Administration > Plugins and data > Plugins**.
1. Find and open the **Postgres** plugin.
1. Select **Add new datasource**.
1. Configure the connection parameters and click **Save & test**.
1. If the test is successful, you can start using the datasource from the **Explore** page.

Note

You might see this datasource labeled as unsupported. You can safely disregard that label. The PostgreSQL datasource works as expected.
