Re: [GENERAL] Doubts regarding postgres Security - Mailing list pgsql-general

From Stephen Frost
Subject Re: [GENERAL] Doubts regarding postgres Security
Date
Msg-id 20170121202107.GW18360@tamriel.snowman.net
Whole thread Raw
In response to [GENERAL] Doubts regarding postgres Security  (PAWAN SHARMA <er.pawanshr0963@gmail.com>)
List pgsql-general
Pawan,

* PAWAN SHARMA (er.pawanshr0963@gmail.com) wrote:
> 1.  How can we set user account block feature after max number of
> invalid password entries?

There are ways to accomplish this, but they're unfortunately
complicated.  In the past, I've implemented these kinds of requirments
by using the 'PAM' auth method and configuring saslauthd and PAM with
various PAM modules.  Unfortunately, most PAM modules are not very well
suited to running as non-root or with alternate directories, so it can
be a bit tricky.

> 2.  How can we use SSL encryption in Postgres on Linux environment?

This can be a bit tricky too, depending on your PKI, but generally
speaking, you simply need to configure the SSL-relevant options in
postgresql.conf and then set SSLMODE=verify-ca (or verify-full,
depending on what you want to do).

Specific documentiaton is available here:

https://www.postgresql.org/docs/current/static/ssl-tcp.html

> 3.  How can we transparent data encryption in Postgres?

If you mean between PG and the filesystem, you could either use full
disk encryption provided by the OS, or like pgcrypto.

Documentation for pgcrypto is here:

https://www.postgresql.org/docs/current/static/pgcrypto.html

Thanks!

Stephen

Attachment

pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [GENERAL] PgPool or alternatives
Next
From: Simon Windsor
Date:
Subject: Re: [GENERAL] PgPool or alternatives