From: Christophe Pettus <xof@thebuild.com>
To: Rizwan Shaukat <rizwan.shaukat@hotmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: how to secure pg_hba.conf
Date: Thu, 1 Dec 2022 10:38:27 -0800
Message-ID: <6D2D4FDC-CCB3-41A3-9B76-D12BB5D43C83@thebuild.com> (raw)
In-Reply-To: <DM8PR02MB8231DCDEC8243903101492E289149@DM8PR02MB8231.namprd02.prod.outlook.com>
References: <DM8PR02MB8231DCDEC8243903101492E289149@DM8PR02MB8231.namprd02.prod.outlook.com>
> 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 ip visibilty 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 (assuming you are on Linux, of course). That user will need to open and read the file, so there's no way of securing it against that user.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: xof@thebuild.com, rizwan.shaukat@hotmail.com
Subject: Re: how to secure pg_hba.conf
In-Reply-To: <6D2D4FDC-CCB3-41A3-9B76-D12BB5D43C83@thebuild.com>
References: <DM8PR02MB8231DCDEC8243903101492E289149@DM8PR02MB8231.namprd02.prod.outlook.com> <6D2D4FDC-CCB3-41A3-9B76-D12BB5D43C83@thebuild.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox