dblink: SCRAM authentication pass-through
Peter Eisentraut <peter@eisentraut.org>
dblink: SCRAM authentication pass-through This enables SCRAM authentication for dblink (using dblink_fdw) when connecting to a foreign server without having to store a plain-text password on user mapping options This uses the same approach as it was implemented for postgres_fdw in commit 761c79508e7. (It also contains the equivalent of the subsequent fixes 76563f88cfb and d2028e9bbc1.) Author: Matheus Alcantara <mths.dev@pm.me> Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/CAFY6G8ercA1KES%3DE_0__R9QCTR805TTyYr1No8qF8ZxmMg8z2Q%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/dblink/dblink.c | modified | +177 −7 |
| contrib/dblink/Makefile | modified | +1 −0 |
| contrib/dblink/meson.build | modified | +5 −0 |
| contrib/dblink/t/001_auth_scram.pl | added | +254 −0 |
| doc/src/sgml/dblink.sgml | modified | +18 −3 |
| doc/src/sgml/postgres-fdw.sgml | modified | +2 −2 |
Documentation touched
Discussion
- dblink: Add SCRAM pass-through authentication 34 messages · 2025-01-22 → 2025-03-26