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

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

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

Othrwise there is a security risk.

Discussion: https://postgr.es/m/20200109103014.GA4192@msg.df7cb.de

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(-)