pgsql: Only superuser can set sslcert/sslkey in postgres_fdw user mappi

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Only superuser can set sslcert/sslkey in postgres_fdw user mappi

Andrew Dunstan
Only superuser can set sslcert/sslkey in postgres_fdw user mappings

Othrwise there is a security risk.

Discussion: https://postgr.es/m/20200109103014.GA4192@...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cebf9d6e6ee13cbf9f1a91ec633cf96780ffc985

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out |  9 +++++++++
contrib/postgres_fdw/option.c                  | 10 ++++++++++
contrib/postgres_fdw/sql/postgres_fdw.sql      |  7 +++++++
doc/src/sgml/postgres-fdw.sgml                 |  6 +++++-
4 files changed, 31 insertions(+), 1 deletion(-)