Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u2R19-000Wgl-1h for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Apr 2025 08:42:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u2R17-001UYe-G6 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Apr 2025 08:42:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u2R17-001UYU-4x for pgsql-hackers@lists.postgresql.org; Wed, 09 Apr 2025 08:42:41 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u2R15-003q9c-1V for pgsql-hackers@lists.postgresql.org; Wed, 09 Apr 2025 08:42:40 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5e8be1bdb7bso10504990a12.0 for ; Wed, 09 Apr 2025 01:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1744188157; x=1744792957; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=LCtYU+aLEaN1U/8IrxL/WXZyUpx9bHdO/5rBfzWdfrg=; b=LO6dKlX7pTmns9QeXZcaOebHqeQdsiQo7QHmVcB69bp0hnbHnsUU5TwL8G1ItLCfAs 4z6cBF63grMFB4e7Xmk6noHWU2gBANsVNSvDiXgwCVSFdTFfQGM2zdSpGz0S0VHEzjLY s2NZH2UWbXCU+8/FlLOYAdMKubA+UaYHvqADFsq4LlULHvaFBHVr/7xrnmMP5WKMFDpe Zi56BgxADWehEf/LuWXomNnVEK8sC0BcueOhGZzwWrM4KXC+FaoDWEJmY9HQmNJAysWI AwzYP2mtIIpMrXhSvFTrrodiCsAMOhT480jrvEezPJpDXcS+4QIFHD9MTT7ipMeiTfjF qzTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744188157; x=1744792957; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LCtYU+aLEaN1U/8IrxL/WXZyUpx9bHdO/5rBfzWdfrg=; b=qBkEepLJFzrWFsLX9Oby+aQe+BMSlw7Xoz9Pd4As1gGvWJvLyRtv6A2ydbOCf2Lxjx 8mcbvDHjmxIwyT1sgkbuuPsHHhbwn4YPKZGx/okuFGBBMDYaKm01739Qt6HJFwNg3bIS WMuZURRznKNOv1rx8/m50ViQkkoCzPDlsyqXPf15i0KaJJ+McWNs8enaK+vx6G4MVj8X igbfoCanKJQ5yUzMr6/RPTpToMIqqlUW8yTQc3tO5i3v65uYC1/3SL680LIPV7QeStgz VUspeB94bzc4JpFO4RIO3mVT2yQQSFhklHzBTQ9GsioLRM+2op0/3UBASY+0/DwEutTS AX+w== X-Forwarded-Encrypted: i=1; AJvYcCWoph7KQxplu9j6Kxmm06szTp0Ft5t0YOG0aRL2rHCJo3vK7WID/OyFQZPVjbYuqy0314ieD0fb3JpGQSvo@lists.postgresql.org X-Gm-Message-State: AOJu0YzrQxY80W1yEfXD+vDvGSei418hEJjwbZiXDcrn4DgkJqJyTdQu HOa+pn6b/XydECwMduWrKd67w2r3fN7ELmJyrKJJIDDbJxgRdXkmiwr0f3BbkaA= X-Gm-Gg: ASbGncsvZm8OxyicGR1voXgnAZaH9d/YSIz1q957mwICHd0LnV8vIdZ3vupRiTdVdOK /34elw0YVw51ONRt7E5SK8h1ek8032v8EVYLA2oPr2IRLboCnPJ0g7l2mpK+QmA033lyQz0KwD2 2VopiPrFAQbIzOZ8XWlF3AoMjvWpNsVa8H7Da1jOGXXDuHlVznuzTMjaBIGjwQPirdShGIQq44z uzYos0eyXnRhNyooboBJZ93wdyngRB2CFFqoRmX8Udzhb9lYulN6XtqSyWJEjroJOncExKZybyg WiDkXcls7BC/5Sq8e6eGJ63UvJxv+OAdcWwmeWgo+CRUnJSVjEqsEiSmVptPScQECS79ebs= X-Google-Smtp-Source: AGHT+IFBOs56iZ9YDiQd6VMG5/tLyFkGQbEVjmD+1guaJZ69G93KQJtM8bAIgmSuK2aeXhEnUqm0NQ== X-Received: by 2002:a05:6402:26c6:b0:5de:dd6b:a7b0 with SMTP id 4fb4d7f45d1cf-5f2f769e313mr1321287a12.1.1744188157021; Wed, 09 Apr 2025 01:42:37 -0700 (PDT) Received: from localhost.localdomain ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5f2fbd3e113sm427569a12.75.2025.04.09.01.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Apr 2025 01:42:36 -0700 (PDT) Message-ID: <923cf8e8811bccc8dc9c901e7fb0f58aab2dd2f4.camel@cybertec.at> Subject: Re: [PATCH] New predefined role pg_manage_extensions From: Laurenz Albe To: Tom Lane , Robert Haas Cc: Michael Banck , Jelte Fennema-Nio , PostgreSQL Hackers Date: Wed, 09 Apr 2025 10:42:36 +0200 In-Reply-To: <2738790.1743894439@sss.pgh.pa.us> References: <65a1524e.050a0220.49266.7670@mx.google.com> <67cb04a8.170a0220.4ffef.a81e@mx.google.com> <1021640.1741364484@sss.pgh.pa.us> <2738790.1743894439@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 2025-04-05 at 19:07 -0400, Tom Lane wrote: > I took another look at this patch, and I still can't persuade > myself that a good case has been made for it. There are too > many scenarios where pg_manage_extensions would be a security > problem and too few where it seems to really improve manageability. >=20 > As an example, it was asserted upthread that it's not a security > problem to let someone install plpython3u, because they still > couldn't create any plpython3u functions unless they were > superuser. Well, fine, but then what's the point of installing > it? If there is someone around with enough privilege to use > plpython3u, that person can install it first. >=20 > I also don't buy the argument that service providers would be > unwilling to set the "trusted" flag on extensions that for whatever > reason they are willing to let be installed by non-superusers. > This thread is full of (unsupported) assertions that those same > providers are making far more invasive changes to the PG code base > to achieve their desired results. >=20 > Robert Haas writes: > > I agree, but I also don't want the security decisions that the core > > project takes to become irrelevant in practice. It seems like what's > > starting to happen is that all of the cloud providers end up finding > > the same issues and working around them in very similar ways and they > > don't do anything in PostgreSQL itself, I guess because that would > > require winning an argument on the mailing list. >=20 > It would at least require showing up on the mailing list. > None of the assertions made in this thread about what cloud > providers are doing have been supported by a whit of evidence > about that. >=20 > What I'm wishing for is that some of the providers would show up here > and provide specific details (preferably patches) about what they are > changing and why. Then we could have an informed discussion about > how to make their lives less painful in the future. Right now > I think we're guessing --- I certainly am. Maybe some of the people > on this thread have access to such details, but they aren't sharing. So - should this patch be rejected or moved to the next CF in the hope to attract some review from said hosting providers? Michael, do you know any hosting providers you can prompt to comment? Yours, Laurenz Albe