Postgres databases are known for having a high number of connections. Additionally, thes user need authenticate to ensure the appropriate, limited access is given. In this blog, we will discuss how Postgres customers deployed the the Heimdall Database Proxy and PAM .
Challenge
High connection counts can easily overwhelm Postgres databases. Most users utillize the connection pooling feature either from an application stack (e.g. library) or deploy a database connection pooler to minimize the front end to back end connections, lightening the Postgres traffic load.
While Postgres can authenticate users to LDAP, it does not have the ability to authorize, granting database access based on the LDAP user group. There is no support mapping between Active Directly user group and the Postgres user roles. Hence, Postgres users much manually create and manage a separate set of credentials on the database. This results in management overhead, regulatory non-compliance, and potential data leakage.
This e-commerce customer with multi-tenant databases need a solution that provide enhanced security and scalability without mimimal infrastructure changes.
Solution
The customer choose the Heimdall Database Proxy and PAM solution to improve connection management while authortize users for their Amazon RDS for Postgres environment. While Amazon RDS provided the managed services for database maintenance, scalability, and availability; the Heimdall Proxy solution allowed the customer get the most out of these Amazon RDS features without application changes.. Features deployed included:
- Advanced Connection Pooling: Reduced the number of Postgre connections via connection reuse, and eliminating idle connections.
- SQL Results caching: Offload traffic load from Postgres
- Active Directory Policy Enforcement: Heimdall Data integrated with traditional Enterprise IAM solutions to authenticate application-database requests using IAM roles and SAML/OIDC federation, ensuring that only authenticated principals can obtain database credentials.
- Database Firewall: Block malicious queries and masked sensitive data retrieved from the Postres database.
By multiplexing connections and isolating sessions per user, Heimdall Data tracks and logs privileged database activities. Detailed audit trails and replayable sessions support forensic analysis and compliance reporting.
Integrating with AWS Services
Customer Benefit
- Ensured data was not exposed to other customers in a multi-tenant environment via data masking
- Save 1-2 database engineer resources from manage creditials on Postgres. All authentication and authorization was now performed via Active Directory.
- Fulfilled regulatory compliance standards (SOC2, SOX)
- Fulfilled SoD (Segregation of Duties) governance
- Improved database scale 35% due to SQL offload (query caching and connection pooling)
- Saved database resources from managing and maintaining Postgres with the use of Amazon RDS for Postgres.