Re: [PoC/RFC] Multiple passwords, interval expirations
Gurjeet Singh <gurjeet@singh.im>
From: Gurjeet Singh <gurjeet@singh.im>
To: Jeff Davis <pgsql@j-davis.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Stephen Frost <sfrost@snowman.net>, "Brindle, Joshua" <joshuqbr@amazon.com>
Date: 2023-10-09T19:53:39Z
Lists: pgsql-hackers
Attachments
- v3-0001-Add-new-columns-to-pg_authid.patch (application/x-patch) patch v3-0001
- v3-0002-Update-password-verification-infrastructure-to-ha.patch (application/x-patch) patch v3-0002
- v3-0003-Added-SQL-support-for-ALTER-ROLE-to-manage-two-pa.patch (application/x-patch) patch v3-0003
On Mon, Oct 9, 2023 at 2:31 AM Gurjeet Singh <gurjeet@singh.im> wrote: > > Next steps: > - Break the patch into a series of smaller patches. Please see attached the same v3 patch, but now split into 3 separate patches. Each patch in the series depends on the previous patch to have been applied. I have made sure that each patch passes `make check` individually. First patch adds the two new columns, rolsecondpassword and rolsecondvaliduntil to the pg_authid shared catalog. This patch also updates the corresponding pg_authid.dat file to set these values to null for the rows populated during bootstrap. Finally, it adds code to CreateRole() to set these columns' values to NULL for a role being created. The second patch updates the password extraction, verification functions as well as authentication functions to honor the second password, if any. There is more detailed description in the commit message/body of the patch. The third patch adds the SQL support to the ALTER ROLE command which allows manipulation of both, the rolpassword and rolsecondpassword, columns and their respective expiration timestamps, rol[second]validuntil. This patch also adds regression tests for the new SQL command, demonstrating the use of the new grammar. v3-0001-Add-new-columns-to-pg_authid.patch v3-0002-Update-password-verification-infrastructure-to-ha.patch v3-0003-Added-SQL-support-for-ALTER-ROLE-to-manage-two-pa.patch Best regards, Gurjeet http://Gurje.et
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
MergeAttributes: convert pg_attribute back to ColumnDef before comparing
- 4d969b2f85e1 17.0 cited