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 1tDWz3-001Ldk-OQ for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2024 22:46:09 +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 1tDWz1-000Ilv-QD for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2024 22:46:07 +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 1tDWz1-000Ill-Gb for pgsql-hackers@lists.postgresql.org; Tue, 19 Nov 2024 22:46:07 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tDWyw-002p78-SO for pgsql-hackers@lists.postgresql.org; Tue, 19 Nov 2024 22:46:06 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 185DD1140226; Tue, 19 Nov 2024 17:46:00 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Tue, 19 Nov 2024 17:46:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1732056360; x=1732142760; bh=zp16flAzmV X1Qy1h/R9yzF3GaTE2BnUBaGMiVE73Kyc=; b=GuUS593ahbRD5lO2b0r6b5O/ef rNDvhYQ2lTAtlpchxU7N1X1zUcV9HA09dOLtg1irRKMm/gDvt6grPa9RkX+NzQcH Jm3NcLOYeP4Rc72gqY0UVkyqKWswiCtNzvqfdmKtE4rEVJXrcphxQaRh8aRdSQI0 rG5swBGvhrvoNAKETZCM96QlyBk4B5KKqSwuSF212hfww/9s8YV6ihHdUD9GXaVE ouBBMWgtJIOEIfcMLwocr+H1zKQIlDEQTZnmKl7pVFN4KfOHuAhaioX/riP1s56U FWX6jdotVvgKywF2dJtwCJWXM5XoL5CiuQqR3sKihLub+DNhixiWbzVQT3YA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1732056360; x=1732142760; bh=zp16flAzmVX1Qy1h/R9yzF3GaTE2BnUBaGM iVE73Kyc=; b=RfWt1Ksod7K5Wx0ZiBv+ewyjFYVXgVglbPerJShLLHsTF+TyY8U 0UChq86/AGSmyhbla86hqoiAGTxqk6nTMG5TtdPz1IkmVRj3tzrz1CZUK4FnTiLT SIdyPvqur23C+t8Xnn9D/NOVYlpf5w9oVcBTyaTEqw29ixoca1/LJbAtJdSVxlNM w5DZZMZYwI5kEDbs3RPTVTNOQogb8neuefUj3svnpXWzfi7+/dJAVgvDlnqo4P3E NDMhTgCfw7c4gkCiDtzSIh+Wun5ju0yFW0HZjWPJNgQAW5eIqMGBE5t2MpmMfalt fRJxg/58g2VPEoyE00nKoB6IOIMf6JtJnlQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeefucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfurfetoffk rfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculd dquddttddmnegfrhhlucfvnfffucdlvdefmdenucfjughrpeffhffvvefukfhfgggtuggj sehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitg hhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeekkeetgedt hfejfedvffevgefgueduffeiueeifffhueeujeeiieeludevhedtnecuffhomhgrihhnpe hpohhsthhgrhgvshhqlhdrohhrghdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuih gvrhdrgiihiidpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepthhomhgrshesvhhonhgurhgrrdhmvgdprhgtphhtthhopegvmhgrmhhushgvke eisehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhi shhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Nov 2024 17:45:58 -0500 (EST) Date: Wed, 20 Nov 2024 07:45:40 +0900 From: Michael Paquier To: Tomas Vondra Cc: Emanuele Musella , pgsql-hackers@lists.postgresql.org Subject: Re: Parametrization minimum password lenght Message-ID: References: <5702ea42-3599-4062-bd15-3e3c7cc67e6e@vondra.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Uq0bRQmXeTCdc0je" Content-Disposition: inline In-Reply-To: <5702ea42-3599-4062-bd15-3e3c7cc67e6e@vondra.me> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Uq0bRQmXeTCdc0je Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 12, 2024 at 02:48:28PM +0100, Tomas Vondra wrote: > Thanks for the patch, seems like a useful feature. Please add the patch > to the next commitfest (2025-01) at https://commitfest.postgresql.org/ FYI, I have a large set of such things in my own repo with a clone of passwordcheck: https://github.com/michaelpq/pg_plugins/tree/main/passwordcheck_extra Not all of them may be useful, still the minimal length is one of them: - passwordcheck_extra.special_chars, to define a list of special characters with the password needing at least one. Default is "!@#$%^&*()_+{}|<>?=". - passwordcheck_extra.restrict_lower, to enforce the use of at least one lower-case character. - passwordcheck_extra.restrict_upper, to enforce the use of at least one upper-case character. - passwordcheck_extra.restrict_numbers, to enforce the use of at least one number. - passwordcheck_extra.restrict_special, to enforce the use of at least one special character listed in \"passwordcheck_extra.special_chars\". - passwordcheck_extra.minimum_length, minimum length of password allowed. Default is 8, which likely sucks. - passwordcheck_extra.maximum_length, maximum length of password allowed. Default is 15, which definitely sucks, but it is useful for tests. I would not mind if you just copy-paste some of this stuff, and the code is released under the PostgreSQL license. Feel free to not worry about the authorship part as well, I'm fine even if my name is discarded. -- Michael --Uq0bRQmXeTCdc0je Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmc9FRQACgkQnvQgOdby QH3paBAAh1FGy/HcEUrGILiUXLZcowjNWEhYzAMRaAXXIQTOlEpKbvjBiZeXU47N ixR0vX/vef4F8ZFjONunTTk88VAxdicOhPXypFxO2bil+he2hkhIA8EQ80Pb4XD1 ++1h16MPGJwp757oax971UHf2UoMw7qUwgoskQV8Q/OKhmC3IsWljzW+M+YCztjU ej6TmutGT3GlJWrRvaO5O20TKiRli6AiRg8J2D+JeZvWzq+6DnrmxKmMwJqmTIAj pRkPUcYE9ZtD6v2H5aljrS9kT17JBMHPiIEkH7Nm8Fjon8XBfq+bsS6FbLMqvQu+ YT4zWz5Tg1M28DZB27VjBsBAM4zSdbnf9c6wEKSALfcEfjblaWKAYeM00+UaZZSL 6hhzuY0u+fH71OvnNH/ex7gT9SJk5mRdGczT4jXxXe1p4z/kGyS/P+ghD/JT3XLY qKw4MJVbBemp9ccf59fYdt4Rlds8ByLXDZwJu2UmH5sq4S/HtSOVq6M1uiX3VHKy NtSx4n16TFNSZoDn6iH/C+N0qbPoakXdqP4q3Ekw7zWckYlLWEAgFYGrbWgmuFbX Epdkae5GrRdFRWWoHMhsymKTZTFLgsJdTm1dZtALqPR/wlGYpzRspqIZ18Bk43Kw qVMCpZ26Jwp7rA+S7aOZOr/cw01QffcmQv49RKKvZYzE3LwgMs4= =YtuB -----END PGP SIGNATURE----- --Uq0bRQmXeTCdc0je--