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 1oEZxY-0000yZ-6H for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Jul 2022 17:27:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oEZxW-0004kk-PE for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Jul 2022 17:27:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEZxW-0004j9-Ev for pgsql-hackers@lists.postgresql.org; Thu, 21 Jul 2022 17:27:34 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oEZxU-0002eS-4k for pgsql-hackers@postgresql.org; Thu, 21 Jul 2022 17:27:33 +0000 Received: by mail-pg1-x534.google.com with SMTP id o18so2243373pgu.9 for ; Thu, 21 Jul 2022 10:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ypsXtRI7nktN+kqwKpQ1auHrBUyyVNq+j4oHvymA1IA=; b=HDsn+9e/+qw6b3rhVBYhpGNtngS5KTMyZfimaF2lI0FPEKPY6FD9yFSkvnDVHEz2iU wgN5kH72JBP2mGpV3XuhUZKTDvLBNsdSx3CDC0U3qvOlaVyDI6UHCM9BG6jbkkKGM/FM fmEHbXw4aPi9iPbce5UOIT4s9V6De6liyHj/AE4U3gVmFFOPBt6ACBQJNT+K/I1IZDoe EQ2cclbkeBeKt10FEx5BPOrLxLMTk1IFFXgSL7NE09wQcwPGPszyBLzzXIyzRv/zW/ZA 0JaBDdvd8jtjp/OA39uVGyWgD7xg0ONCRyVwV/QuYIrTtVXyQVrlCVglMaubz935eU8y 3DXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ypsXtRI7nktN+kqwKpQ1auHrBUyyVNq+j4oHvymA1IA=; b=IPDD3mp7qvwBG6vWftKnmXBeF/zOGJCyCGnpyB6BFOrfwhZQCucxj5dv7pyeNsfRPL 7CZ7QjbW7ScdYVp4JR3dFgb1tc57qaMQ+25AtxFtd2+fYWyCuHNKSt43l0VBsYrHvjcS btfnlLtwSpMNzAiZAy4lVwtu61g6NqOsHkVbynmxiTzDTyJp+RHIKyVvpFBjhhoRhaVp Bl09eGb8uB9deO2/QgmzkawsUem7InPqSOVcmF+c0PkoDwepxWJb3so2wudxiSEIhODx TWNm0BUGFn2PZi/6T9yQz7X5KfFTkGgDgy3Tb4omqO8QrIPTe0OmcD6802wOBzqIoGsw s/8g== X-Gm-Message-State: AJIora/SXsu3xYaKm5Km3RJFKKlnPBFQII6ldDdFqv7aqJTvdwyMqLt9 raf5OhMGIxzdb7YtGyv5v0o= X-Google-Smtp-Source: AGRyM1shMHzicDjrr7SPpRdLUJEE5B+3HPSDXDVwPo4GEHpqsA+6y5g5ZPt8DcW0dl33/kKNAXEvnQ== X-Received: by 2002:a65:6a04:0:b0:411:b3d3:a840 with SMTP id m4-20020a656a04000000b00411b3d3a840mr39925649pgu.99.1658424450572; Thu, 21 Jul 2022 10:27:30 -0700 (PDT) Received: from nathanxps13 ([50.54.155.70]) by smtp.gmail.com with ESMTPSA id h10-20020a170902f54a00b0016bee668a5asm2067451plf.161.2022.07.21.10.27.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 10:27:29 -0700 (PDT) Date: Thu, 21 Jul 2022 10:27:26 -0700 From: Nathan Bossart To: Tom Lane Cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER Message-ID: <20220721172726.GA3779763@nathanxps13> References: <39752.1658420887@sss.pgh.pa.us> <75372.1658422970@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <75372.1658422970@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jul 21, 2022 at 01:02:50PM -0400, Tom Lane wrote: > Robert Haas writes: >> ... if >> we want to regard no-superusers as a supported configuration, we >> probably need to tighten that up. I think it's kind of hopeless, > > Yeah, I agree. At least, I'm uninterested in spending any of my > own time trying to make that usefully-more-secure than it is today. > If somebody else is interested enough to do the legwork, we can > look at what they come up with. Given the current assumptions the code makes about the bootstrap superuser, I think it makes sense to disallow removing its superuser attribute (at least via ALTER ROLE NOSUPERUSER). It seems like there is much work to do before a no-superuser configuration could be formally supported. If/when such support materializes, it might be possible to remove the restriction that Robert is proposing. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com