Skip to main content
Microsoft
separator
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.postgresql-pgaudit-ubuntu-24-04-8732e7b9-6e2f-4921-a303-05a76fdedf59/image6_logolarge.png

PostgreSQL 18 with pgAudit on Ubuntu 24.04

by cloudimg

PostgreSQL that arrives already auditing, with a policy that will not flood your disk.

PostgreSQL 18 with pgAudit on Azure by cloudimg

A PostgreSQL 18 database that arrives already auditing. pgAudit, the PostgreSQL Audit Extension, is the control named in PCI-DSS, SOC 2 and HIPAA guidance for PostgreSQL, and it is the one extension a team cannot simply switch on in a running database: it must be loaded into the server process through `shared_preload_libraries`, which means a configuration change and a restart. On this image that work is already done, and the extension is enabled in a ready to use `auditdb` database.

pgAudit produces a trail that PostgreSQL's own statement logging cannot: structured, classified entries naming the class of the statement, the command, the object type and the fully qualified object, in a format you can parse and ship to a SIEM.

A deliberate audit policy, not a firehose

  • Session auditing is on for `ddl` and `role`, so every schema change and every GRANT, REVOKE and role change is recorded. That is the high value, low volume half of an audit trail.
  • Read and write auditing is opt in per object. Grant a privilege on a table to the NOLOGIN `auditor` role and pgAudit records that table only. Turning it on globally is a one line change the deployment guide documents.
  • Bound parameter values are never written, so the trail cannot become a second copy of the data it is auditing.
  • Catalog lookups are excluded, so driver introspection does not drown the trail.

An audit trail that cannot fill the disk

The trail is written to its own directory, readable only by root and the database account, rotated by PostgreSQL every 64 MB or every day. An hourly retention sweep then enforces both a 30 day age cap and a hard total size cap, removing the oldest files first and never the file being written. Both limits are a single configuration file away from your own retention policy.

Why Choose cloudimg?

  • 24/7 Expert Support with guaranteed 24 hour response. Contact support@cloudimg.co.uk
  • Production Ready from Launch Preconfigured, fully patched at build time, validated on a fresh virtual machine
  • No Known Credential The image ships no database cluster, so no role, password or certificate exists to discover
  • Azure Native Integration Azure Linux Agent, cloud init, Gen2 Hyper V support
  • No License Fees PostgreSQL and pgAudit are both free and open source. Pay only for Azure infrastructure and cloudimg support

Every Machine Gets Its Own Database

The captured image contains the PostgreSQL binaries, pgAudit and the appliance configuration, but no data directory at all. At first boot each virtual machine runs its own initdb, mints its own TLS certificate and generates separate passwords for the superuser and the application role into a file only root can read. No cluster identity, certificate or credential is ever shared between deployments, and there is no default or blank password at any point.

Access posture

PostgreSQL is bound to loopback, so a new machine exposes only SSH. The host based authentication rules already require TLS and scram-sha-256 on every network path, so opening the database to your own subnet is a deliberate two step change that is safe the moment you make it.

PostgreSQL and the PostgreSQL elephant logo are trademarks of the PostgreSQL Community Association of Canada. pgAudit is the name of the open source project at github.com/pgaudit/pgaudit. Ubuntu is a registered trademark of Canonical Ltd. All other trademarks are the property of their respective owners and are used here only to identify the software contained in this image. cloudimg is not affiliated with, endorsed by or sponsored by any of them.

At a glance

https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.postgresql-pgaudit-ubuntu-24-04-8732e7b9-6e2f-4921-a303-05a76fdedf59/image8_screenshot01.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.postgresql-pgaudit-ubuntu-24-04-8732e7b9-6e2f-4921-a303-05a76fdedf59/image7_screenshot02.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.postgresql-pgaudit-ubuntu-24-04-8732e7b9-6e2f-4921-a303-05a76fdedf59/image1_screenshot03.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.postgresql-pgaudit-ubuntu-24-04-8732e7b9-6e2f-4921-a303-05a76fdedf59/image4_screenshot04.png
English (United States)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Sitemap Contact Us Privacy & Cookies Terms of Use About our ads Manage cookies