Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzGXs-0002gP-Qi for pgadmin-hackers@arkaria.postgresql.org; Tue, 12 Jan 2021 10:05:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzGXr-0000rZ-O8 for pgadmin-hackers@arkaria.postgresql.org; Tue, 12 Jan 2021 10:04:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzGXr-0000qA-HP for pgadmin-hackers@lists.postgresql.org; Tue, 12 Jan 2021 10:04:59 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kzGXp-0002Au-1w for pgadmin-hackers@postgresql.org; Tue, 12 Jan 2021 10:04:59 +0000 Received: by mail-lf1-x130.google.com with SMTP id o13so2503341lfr.3 for ; Tue, 12 Jan 2021 02:04:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TnrNZgNVMTOvS5x9hhUQZlyFc6fTRlQQ4t8J+0cEw4w=; b=u69OSGACvlr873BSIrtEtovnWj2xKOzgmXRjPVwCkYZaDPXMFv9dBtvnQqGoLGtmSA kq8Lmgr94SIy3uquh9s8peqGxo9DmiekoUaYQLM4fDey9E3+FH+j/rhwA/o8vCgW1asX hb+zd59a3/eNp/pmls7xuDPTkmTvcmx5twA/1kMRw3fEME5Ry6/+Tb83uWsOhX6EDcfp VQJewu29H+Orrv17acxuH9jV1Ms2RxC+3+bjPnwBYIekoUQoqfD6ZZ/tOpnLLuyYqSdd zdwQtTE8DsT0Z5D+5GBv+tr9Efg7MQAR3G3kwXKlWq/nEw9grGALsMEPvX5OVRhh9Bn/ cQAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=TnrNZgNVMTOvS5x9hhUQZlyFc6fTRlQQ4t8J+0cEw4w=; b=CNfNsR7gLzgTC5+fWU3ibMo4mu+sXv1IcWvS1fnoKatQDNIUeoezpPd2O78Q1Bh1gd NCIDTwYCW9YUFD1kEtYLtQ/iGK1udk6DO8pSkuueTqHHQznrYOdVvQh3wmeMs08LDUe+ gg0+RligjwNGT5K1X+dSFYfTrXdlq0mzWgYaUJqx+uuMbOakP5aMCe8/Ed6RKzdpGhIi OcN/2OsBFZsuhr8aWDHsuIvBvk0JdIpY1EyJcu1f/OT8Ep9kiAimB5ETrVn3/aNL7OB+ 7hOI4Fo4oIZMQrpNDFYOQCMg4pwB1kh8BqBfm15BcRvxkmekyAClr064RtvSLqD77d4B d9Fg== X-Gm-Message-State: AOAM531vKI/DyCvvs+bi4LfbLxugGNHCzCbMsDhMHzDji+20Nkph9cEe rpeS8s4zC3exDOlSXN+fAb2N0shOIVnS7Rp5T1r+pQ== X-Google-Smtp-Source: ABdhPJwc9idujDgS9ZDRoNZ3oyjjAAuGC7qz0+RP+ESvoyiHFAEUgK7AJHlTsezJ8Ur1o0SDV6RxOCZ/Qy9fanbJ6AQ= X-Received: by 2002:a05:6512:248:: with SMTP id b8mr1843409lfo.371.1610445894790; Tue, 12 Jan 2021 02:04:54 -0800 (PST) MIME-Version: 1.0 References: <20210102154130.GO27507@tamriel.snowman.net> <20210102155947.GQ27507@tamriel.snowman.net> <20210103173112.GR27507@tamriel.snowman.net> <20210111165011.GP27507@tamriel.snowman.net> <20210111174221.GQ27507@tamriel.snowman.net> In-Reply-To: From: Magnus Hagander Date: Tue, 12 Jan 2021 11:04:43 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch] - RM 5457 - Kerberos Authentication - Phase 1 To: Dave Page Cc: Stephen Frost , Khushboo Vashi , pgadmin-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jan 12, 2021 at 10:08 AM Dave Page wrote: > > Hi > > On Mon, Jan 11, 2021 at 5:42 PM Stephen Frost wrote: >> >> >> Accessing systems outside of the Kerberized environment is obviously a >> different situation as you *can't* use the Kerberos credentials- and, >> hopefully, everyone is using password managers and has a distinct and >> different password for every service they do use outside of the >> Kerberized environment. When you're talking about a set of systems >> which live inside of the Kerberized environment, however, it's simply >> not sensible to ask the user to provide their *domain-level* credentials >> which an attacker could use to log in as that user to the entire domain >> and have complete access over their account and that's exactly what is >> likely to end up being the case here because the only way to set this up >> would be Kerberos for pgAdmin and LDAP for PG- at least until delegated >> credentials are implemented. > > > Which is no worse than the current situation - in fact it's arguably bett= er because there's one less system that isn't Kerberised. > > Don't forget, you (as the system administrator) also have the choice of w= hether or not to use Kerberos. If you're not happy to have the pgAdmin auth= entication be kerberised whilst the database server access is not, then don= 't enable Kerberos until phase 2 is complete. > >> >> >> > You basically seem to be saying that once a user logs into something u= sing >> > Kerberos, *everything* else they login to from there must also be done >> > using Kerberos - which clearly will not be the case in the vast majori= ty of >> > deployments. >> >> Everything else they login to from there in the same Kerberized >> environment absolutely should be done using Kerberos delegated >> credentials. That's the point of Kerberos delegation. Are you modeling >> this approach based on some existing system which accepts Kerberos >> logins but then *doesn't* allow use of delegated credentials to log into >> other Kerberized systems from there? Surely SSH works great with >> delegated credentials, as does any website that uses mod_auth_kerb or >> mod_auth_gss, or IIS.. >> >> I sure hope that the vast majority of deployments where pgAdmin is set >> up with Kerberos will be using Kerberos for logging into PG with >> delegated credentials, and further, that we will be *strongly* >> encouraging that as otherwise you might as well use LDAP auth for all of >> it and accept that any compromise of the web server or of PG will result >> in complete compromise of any user's account who accesses the system. > > > I suspect that may not be the case, or at least most people will be worki= ng in mixed environments, e.g. Kerberos on their local network with non-Ker= berised RDS servers for example. This is certainly something I've seen in t= he field many times. +1. I can see a lot of cases where people would like to benefit from the *convenience* of Kerberos login into their pgadmin, and then continue to use a db connection that does not use Kerberos. There's many orgs that for example have a policy that says they *must* use passwords in to the db regardless of Kerbeos. We can argue whether that's a smart policy or not, but it's very real, and those people would still be able to benefit from a Kerberos login into pgadmin. Getting those people to do kerberos into pgadmin and then password intot he database would be a strong improvement over ldap to pgadmin and password into the database. Sure, if the ldap password and the db password is the same the difference isn't that big, but more often than not the db password is independent. RDS is a good example of this, but there are definitely plenty of non-cloud environments who would also benefit fro that. >> I don't understand all this push-back. > > > There are benefits for some users with phase one alone, so I don't see (a= nd still don't) a need to hold it back. It also potentially allows us to ge= t feedback on things that don't work as expected earlier, to minimise any r= e-work that might be required. Don't forget that pgAdmin releases monthly (= except around EOY for obvious reasons), and incrementally releases and adds= features, unlike PostgreSQL. > >> >> >> The intent is to do the 'phase 2', right? And it hopefully will happen >> in relatively short order, no? At least, I'd think it would make sense, >> while people have developer environments set up and working with >> Kerberos to go ahead and get that part done. All I'm saying is that the >> 'phase 1' part really shouldn't be independently released, or if it is, >> it should be *heavily* caveated that it is strongly discouraged for >> people to run it in an environment where pgadmin and PG are in the same >> Kerberized environment because it's not possible to set that up, with >> just phase 1 done, in a manner which would avoid the pgadmin and PG >> servers seeing the user's password. > > > Phase 2 is scheduled to be done immediately. \o/ --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/