Re: how to secure pg_hba.conf - Mailing list pgsql-general

From Christophe Pettus
Subject Re: how to secure pg_hba.conf
Date
Msg-id 6D2D4FDC-CCB3-41A3-9B76-D12BB5D43C83@thebuild.com
Whole thread Raw
In response to how to secure pg_hba.conf  (Rizwan Shaukat <rizwan.shaukat@hotmail.com>)
List pgsql-general

> On Dec 1, 2022, at 05:45, Rizwan Shaukat <rizwan.shaukat@hotmail.com> wrote:
> we hv requiremnt from security to secure pg_hba.conf file was encryption or password protected on server to protect
ipvisibilty because these server access by application n thy can amend as well. how we can achive it pls  

The only practical way of securing pg_hba.conf is to secure access to the Linux user that PostgreSQL is running as
(assumingyou are on Linux, of course).  That user will need to open and read the file, so there's no way of securing it
againstthat user. 


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Stored procedure code no longer stored in v14 and v15, changed behaviour
Next
From: Ron
Date:
Subject: Re: how to secure pg_hba.conf