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 1qeL8v-006XUI-Kl for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Sep 2023 19:58:21 +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 1qeL8u-004TpG-I3 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Sep 2023 19:58:20 +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 1qeL86-004RDJ-R7 for pgsql-hackers@lists.postgresql.org; Thu, 07 Sep 2023 19:57:31 +0000 Received: from mail-yw1-x112c.google.com ([2607:f8b0:4864:20::112c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qeL81-003joW-Fk for pgsql-hackers@postgresql.org; Thu, 07 Sep 2023 19:57:29 +0000 Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-58cbdf3eecaso13374367b3.0 for ; Thu, 07 Sep 2023 12:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joeconway.com; s=google; t=1694116644; x=1694721444; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=MICYlfp60LN4JTXDfYLJKKPRMq3DEYnsJNi2ZBBYtIs=; b=h5uknj4f8CcfbPJyk3uEquusE9NKzTHgxblbA5BPn4EtaubUMNWpdTleE+G7VEN41/ CGifpibQru54VH1eGATfQ6hsIAkYiNEK37J7NmUEXcLP/ugaugLYnfXVGTOSR9LJKnD6 PteZc2l+bFw64RbSx81uDg2refnGbtLrzuAZVETurp1nq+mdSrsI04wF2jRpq6BGHY4V tlAsnwkuFIQ3BTSvZfDsn4TmU1UJA3EbxtDIDY67nmHScMg5hC4K1sCaCuzvAZIyJrME DS/L6lcNsAFTpnkoRLCDz7ikrjDwLg8wpnMBP7dDyY/QXeq536frbVeu09HqRKSvyw/3 zr6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694116644; x=1694721444; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MICYlfp60LN4JTXDfYLJKKPRMq3DEYnsJNi2ZBBYtIs=; b=IlkwncJgau6SCpvrpFPKYfJJAKnRYWNRXiCt5imtcpJ15010NhtmEbwMlU3iO/w5fz S5t3EyBZAJGK/jsSnV79pNNK1uNeGEU7QzBbc+aU/f8MWazLPymwFrSa6wGV4IhP7e12 9f7JOkKhhaGJj3sIb1Cvhi8OG4FAZ/U0OADSP2Aenm8kp2k2iyZFSvP1ys5vzLVbGgRA YLFmy3LdlhTStTFUC7m2RwmxB2okMEb4d56sSKgtZf0YVtaGqlW0bzQBpjOtX/PuWBvq HMF0nJSaAJSP6A0ESjPhCrUp1RuC1eq2VzWdcS6CBQ1ekinqiv0juAgK57kQPiRCa6Hb GM+Q== X-Gm-Message-State: AOJu0YzO/2deIhVHAW0lOtfLDwUmG80iP2rmGeij9P0rmcX+UrSF7TE5 Nsv0PkqVTLXlHKo7vDdxSGypQQ== X-Google-Smtp-Source: AGHT+IFWUvqEWQGEfY4aGc0bVWBbVZx3fdwdeyrjGoG8bRAkR4bhpbRQaJbh5NHViKs5xBTO2t+ScQ== X-Received: by 2002:a81:bb45:0:b0:573:bb84:737c with SMTP id a5-20020a81bb45000000b00573bb84737cmr587267ywl.26.1694116643763; Thu, 07 Sep 2023 12:57:23 -0700 (PDT) Received: from [192.168.4.41] (162-239-31-113.lightspeed.dybhfl.sbcglobal.net. [162.239.31.113]) by smtp.gmail.com with ESMTPSA id h138-20020a816c90000000b005925d7b62e0sm48033ywc.24.2023.09.07.12.57.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Sep 2023 12:57:23 -0700 (PDT) Message-ID: <322cdf29-23b9-90c0-83a0-f4aec182f318@joeconway.com> Date: Thu, 7 Sep 2023 15:57:22 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: Possibility to disable `ALTER SYSTEM` Content-Language: en-US To: Gabriele Bartolini , pgsql-hackers@postgresql.org References: From: Joe Conway In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/7/23 15:51, Gabriele Bartolini wrote: > I would like to propose a patch that allows administrators to disable > `ALTER SYSTEM` via either a runt-time option to pass to the Postgres > server process at startup (e.g. `--disable-alter-system=true`, false by > default) or a new GUC (or even both), without changing the current > default method of the server. Without trying to debate the particulars, a huge +1 for the concept of allowing ALTER SYSTEM to be disabled. FWIW I would vote the same for control over COPY PROGRAM. Not coincidentally both concepts were built into set_user: https://github.com/pgaudit/set_user -- Joe Conway PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com