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 1tqYpS-006s42-3F for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Mar 2025 14:37:34 +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 1tqYpQ-006VdO-RN for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Mar 2025 14:37:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tqYpQ-006Vd3-He for pgsql-hackers@lists.postgresql.org; Fri, 07 Mar 2025 14:37:32 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tqYpN-001VoB-0J for pgsql-hackers@lists.postgresql.org; Fri, 07 Mar 2025 14:37:32 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-abf3d64849dso221386666b.3 for ; Fri, 07 Mar 2025 06:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741358249; x=1741963049; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :subject:cc:to:from:date:sender:message-id:from:to:cc:subject:date :message-id:reply-to; bh=0rBppnSMksHQZBtdSAXl15pC9HKpNLa3oe7Lq5SgBNw=; b=CivcAxKSkcN3L1ZIuI/gWe2Wo5BrfAh1fVnVCM+SinoSr/roymUb86yF0NueGPjR9N MhiOTQlhvOvAHtfHJS6SC8/Ru5wv4QTI+eyf7fGtsP5iiVQOT7Seo0RprEJf4QfPYCxs OjfoFePvsFNpVBz0rRGhHURe22QRTs+XdjoyUEn8Zh68WHFxYDqHbkJabHoP5SGLKcHX zD5we4GZ5pcyIMr/xdXprRZusYVJJj9rWHDHZcQ/G/3MvRp+xClJeJfljPJ2vmYA7Fnl cdccfTuau96lTAiowSvaVPDKXmMU2TCHi4ai5f82cExZTvf4z3pRT9tcccyg33Xx74uK V4zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741358249; x=1741963049; h=user-agent:in-reply-to:content-disposition:mime-version:references :subject:cc:to:from:date:sender:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0rBppnSMksHQZBtdSAXl15pC9HKpNLa3oe7Lq5SgBNw=; b=ZwRC88k1jH9IadD4bxo+ol+hc+xS1NCz6VzVUPPiCIzq+HoAB6xGbA6jcTxR5vUoOQ 9Sd+n0/FyXJBzM+GnTSLwlsVEtB8Z5AgsS5nP4RbSf8QhZNfa4LAFZcoINbgfkS64Mja RhLtM5lOjJV1Ug3lEIDAILn6MvGHcn0G+FX+TyLSIxFTQlfmhhpoc5wxVJJmQfyZmte1 hzuRjAC5xiqnYNibPbW+/DOrGUB/ldPi55UqUMw4lhTwI4ZXqP0+CVxuP6fUWZ4WvPHX EEvAIbp1cgUozG1ja5F7Y9Nx8MSVXMSLyNNkIjhrcUb1GVZiiKyR5sf03fzBcJTKYSzY miTg== X-Forwarded-Encrypted: i=1; AJvYcCV15LK/xW2ErEzVkPJDBCOgNQY48qQcydQrdANRBxWHumduoExFBWXWQLQ0m27L4nIazum9WRRmw9Gye9U5@lists.postgresql.org X-Gm-Message-State: AOJu0Yzyh3I09h9Ha86l9B8HgSns2iepgpBoRMGE4kSSwQAiLlAL49Qw ndAudc/xXkE/7Y9OrJqpwpZQ71+ooI9vxXh6yggbf6f73qVIHM8G X-Gm-Gg: ASbGncsQ3AOG30g/mm3idjPCJGISEyzJocbFyPo+o+y0Jb4OymRON029byECShGbUhF BWXoEo8jN+VtGbnQBK7hsJNRSPJWKY2a/67Pz4UyWGPq0c+xANMsGN4AsrwsbjYr+jJxe2hhjry o8bQIL2phLCWiGuJxbOKKKB2DZVxV0k6o00Sow/Z4Zi6L0chMSsnHPmtAbwRMTR/ZhbtjKKWZfS ZpB1sbNEB662Jc0mF1rGCKjTduPKEoCwG3U2Fvf+EeM3Hl6gELj1WK6qt+FejwYd088ieMowgBF 4b9beQ43jm95KTos8ngx10PSiqNJGJChpw9HUI4QDVuM9xXmWBtlP3v9reniwpiFZglLCSuExbq zPA0= X-Google-Smtp-Source: AGHT+IFF9bjRwvJ1N72pAZ0oTIn4nnsWQCkMTl8Qk6aUla4n5OFa3Z9Yb/qZy1UUHMcLc0WgywznIQ== X-Received: by 2002:a05:6402:2683:b0:5e5:c847:1a56 with SMTP id 4fb4d7f45d1cf-5e5e22bd1b6mr8948609a12.10.1741358249176; Fri, 07 Mar 2025 06:37:29 -0800 (PST) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:acb:5901:afc4:4fe5:1a28:cd8e]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac23973a761sm289437566b.92.2025.03.07.06.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 06:37:28 -0800 (PST) Message-ID: <67cb04a8.170a0220.4ffef.a81e@mx.google.com> X-Google-Original-Message-ID: <20250307143727.GD27216@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Sender: Michael Banck Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1tqYpL-00072K-UD; Fri, 07 Mar 2025 15:37:27 +0100 Date: Fri, 7 Mar 2025 15:37:27 +0100 From: Michael Banck To: Robert Haas Cc: Jelte Fennema-Nio , PostgreSQL Hackers Subject: Re: [PATCH] New predefined role pg_manage_extensions References: <65a1524e.050a0220.49266.7670@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Fri, Mar 07, 2025 at 09:17:46AM -0500, Robert Haas wrote: > Why wouldn't the cloud provider just change add 'trusted = true' to > the relevant control files instead of doing this? That would be possible, but maybe the cloud provider is using distribution packages and does not want to muck around in the file system (as is usually frowned upon), or, maybe more likely, is using container images based on (what I've seen most of them are) the Debian packages and cannot (or does not want to anyway) muck around in the file system easily. Also, I think there is case to be made that a cloud provider (or site admin) would like to delegate the decision whether users with CREATE rights on a particular database are allowed to install some extensions or not. Or rather, assign somebody they believe would make the right call to do that, by granting pg_manage_extensions. On the other hand, maybe trusted should be part of the catalog and not (just) the extension control file, so that somebody with appropriate permissions (like the cloud provider during instance bootstrap) could do "ALTER EXTENSION foo (SET trusted|TRUSTED);" or whatever. ISTR that I reviewed the discussion around trusted back then and did not see that possiblity discussed at all, but I might be misremembering, it's been a while. Michael