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 1k6zpD-0004lA-3O for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Aug 2020 17:18:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k6zpB-0006Lk-Ih for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Aug 2020 17:18:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6zpB-0006LY-Aw for pgsql-hackers@lists.postgresql.org; Sat, 15 Aug 2020 17:18:33 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k6zp4-0008Mb-El for pgsql-hackers@postgresql.org; Sat, 15 Aug 2020 17:18:32 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 10D885F79F; Sat, 15 Aug 2020 13:18:23 -0400 (EDT) Date: Sat, 15 Aug 2020 13:18:22 -0400 From: Stephen Frost To: Kyotaro Horiguchi Cc: pgsql-hackers@postgresql.org Subject: Re: Is it worth accepting multiple CRLs? Message-ID: <20200815171822.GF29590@tamriel.snowman.net> References: <20200731.173911.904649928639357911.horikyota.ntt@gmail.com> <20200731130014.GC12375@tamriel.snowman.net> <20200803.162040.876495006040204008.horikyota.ntt@gmail.com> <20200804.173708.930007886231591254.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mXWEJCq0x1D2MX0F" Content-Disposition: inline In-Reply-To: <20200804.173708.930007886231591254.horikyota.ntt@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --mXWEJCq0x1D2MX0F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Kyotaro Horiguchi (horikyota.ntt@gmail.com) wrote: > At Mon, 03 Aug 2020 16:20:40 +0900 (JST), Kyotaro Horiguchi wrote in=20 > > Thanks for the opinion. I'll continue working on this. >=20 > This is it, but..=20 Thanks! > Looking closer I realized that certificates are verified in each > backend so CRL cache doesn't work at all for the hashed directory > method. Therefore, all CRL files relevant to a certificate to be > verfied are loaded every time a backend starts. >=20 > The only advantage of this is avoiding irrelevant CRLs from being > loaded in exchange of loading relevant CRLs at every session > start. Session startup gets slower by many delta CRLs from the same > CA. >=20 > Seems far from promising. I agree that it's not ideal, but I don't know that this is a reason to not move forward with this feature..? We could certainly have a later patch which improves this in some way (though exactly how isn't clear... if we move the CRL loading into postmaster then we'd have to load *all* of them, and then we'd still need to check if they've changed since we loaded them, and presumably have some way to signal the postmaster to update its set from time to time..), but that can be a future effort. I took a quick look through the patch and it seemed pretty straight forward to me and a good improvement. Would love to hear other thoughts. I hope you'll submit this for the September CF and ping me when you do and I'll see if I can get it committed. Thanks! Stephen --mXWEJCq0x1D2MX0F Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJfOBjeAAoJEO1sijiDR2RVZJoP/1s5LHTI1uDFZGoOx68eK98x KEFKqZjXh1wnNNnB/bVw1sii+lOJOxEYOx4mH3Uno+NUvqBgC1dMGZ2ZowPtq0mE Fz+TpJH8197md8/jxEWxj0zU+qtE0jnQWgTj4vAlLmIa/UpEY2mq++BoXKk7poxM GhQY3MI4r9onrlwcPX7O3pBiX5NDzq/XhwkcK6w36AcwIQv5MfSeg9A/R8f/11sO ocOQJxQ0+5XN0XBwd4cwwRPPBUa49lSjzOce70FPC6HOfgpYS1cC96p8obm8ZI0A 3qAsjz1R+zaaAkdBGlYRC/WdkvtHFQCvTewxFtskSQ7BRV9o9JTlEF6r37wby526 FZzXkRpyn8pOaRXmbQQZWWERWxWUQ7YO8WWT5PiYs9d3je9mJeMuo3MxgDv7uvn7 J/RWxfYs4kBnq9L5IDibprPtkMMjIG/4xJH2LUD6c2dboNHqLlfTZwQ8/CeWygY/ M/UgWI/tuEIkGZX7KKnjT6ywOP374zfYjFwKAT4TGJfaTXJ9vgcR9fqo/znFSJJo Sb19czCIddNVkTvc1lvd6LSh0wkHNYaoBLAN9tXZi1+eYkMusLpbNQFCyu3Ghbte e8gevVZ1YQkODM4HLY0RBWh6SfFwTsFyC+jL33EhD+HT26dnDxrA5WoKVBkhFPqA MP68P/y7/Wq6SsChXHMe =fLUC -----END PGP SIGNATURE----- --mXWEJCq0x1D2MX0F--