pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedRE: EXTERNAL: Re: Lock Postgres account after X number of failed logins?
2+ messages / 2 participants
[nested] [flat]
* RE: EXTERNAL: Re: Lock Postgres account after X number of failed logins?
@ 2020-05-06 13:36 Wolff, Ken L <ken.l.wolff@lmco.com>
2020-05-06 13:43 ` Re: EXTERNAL: Re: Lock Postgres account after X number of failed logins? Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 2+ messages in thread
From: Wolff, Ken L @ 2020-05-06 13:36 UTC (permalink / raw)
To: Stephen Frost <sfrost@snowman.net>; Geoff Winkless <pgsqladmin@geoff.dj>; +Cc: Tim Cross <theophilusx@gmail.com>; pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Thanks again, everyone, for all the responses and ideas. I'm still getting caught up on the various responses but with respect to LDAP/AD, I truly wish it were an option. I agree with the various sentiments that AD authentication is more manageable, scalable, secure, etc. However, if there were one set of environs where you'd think we could rely exclusively on AD authentication, it would be SQL Server, which by default, relies on Windows & AD for its authentication. However, for our company, even in our SQL Server environments, we almost always have to resort to internal (SQL-authenticated) accounts at times for various reasons: usually because vendor software doesn't support AD authentication, but I've even heard some people mention docker containers can't use it, either. Full disclosure - I haven't run that last one down yet, have only heard it in passing so don't know the details.
Christian's idea of fail2ban looks interesting, so I'm going to be investigating that.
Thanks again, all of you. Really appreciate the feedback and ideas!
Ken
-----Original Message-----
From: Stephen Frost <sfrost@snowman.net>
Sent: Wednesday, May 06, 2020 7:28 AM
To: Geoff Winkless <pgsqladmin@geoff.dj>
Cc: Tim Cross <theophilusx@gmail.com>; pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: EXTERNAL: Re: Lock Postgres account after X number of failed logins?
Greetings,
* Geoff Winkless (pgsqladmin@geoff.dj) wrote:
> On Wed, 6 May 2020 at 00:05, Tim Cross <theophilusx@gmail.com> wrote:
> > Where Tom's solution fails is with smaller companies that cannot
> > afford this level of infrastructure.
>
> Is there an objection to openldap? It's lightweight (so could
> reasonably be run on the same hardware without significant impact),
> BSD-ish and mature, and (with the password policy overlay) should
> provide exactly the functionality the OP requested.
LDAP-based authentication in PG involves passing the user's password to the database server in the clear (or tunneled through SSL, but that doesn't help if the DB is compromised), so it's really not a good solution.
Thanks,
Stephen
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: EXTERNAL: Re: Lock Postgres account after X number of failed logins?
2020-05-06 13:36 RE: EXTERNAL: Re: Lock Postgres account after X number of failed logins? Wolff, Ken L <ken.l.wolff@lmco.com>
@ 2020-05-06 13:43 ` Stephen Frost <sfrost@snowman.net>
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Frost @ 2020-05-06 13:43 UTC (permalink / raw)
To: Wolff, Ken L <ken.l.wolff@lmco.com>; +Cc: Geoff Winkless <pgsqladmin@geoff.dj>; Tim Cross <theophilusx@gmail.com>; pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Greetings,
* Wolff, Ken L (ken.l.wolff@lmco.com) wrote:
> Thanks again, everyone, for all the responses and ideas. I'm still getting caught up on the various responses but with respect to LDAP/AD, I truly wish it were an option. I agree with the various sentiments that AD authentication is more manageable, scalable, secure, etc. However, if there were one set of environs where you'd think we could rely exclusively on AD authentication, it would be SQL Server, which by default, relies on Windows & AD for its authentication. However, for our company, even in our SQL Server environments, we almost always have to resort to internal (SQL-authenticated) accounts at times for various reasons: usually because vendor software doesn't support AD authentication, but I've even heard some people mention docker containers can't use it, either. Full disclosure - I haven't run that last one down yet, have only heard it in passing so don't know the details.
At least as it involves vendor software, most of that is built on top of
libpq or JDBC and you can typically make them work with GSSAPI (which is
basically Kerberos, and is what AD/SQL Server uses), which is what you
want to be using. Don't think the "ldap" auth in PG is like SQL Server
AD auth- it isn't, and "ldap" involves passing user's passwords around
in the clear, it's not secure. So, you might not have as much need for
local accounts as you do for SQL server, but it's certainly possible
you'll end up needing them somewhere.
And yes, you can certainly get GSSAPI/Kerberos to work in docker and in
Kube, it's just more complicated due to sorting through DNS/rDNS and
such, but it's been done (and I've done it :).
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-05-06 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 13:36 RE: EXTERNAL: Re: Lock Postgres account after X number of failed logins? Wolff, Ken L <ken.l.wolff@lmco.com>
2020-05-06 13:43 ` Stephen Frost <sfrost@snowman.net>
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