Only superuser can set sslcert/sslkey in postgres_fdw user mappings
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 13 Jan 2020 07:38:09 +0000 (18:08 +1030)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 13 Jan 2020 07:38:09 +0000 (18:08 +1030)
commitcebf9d6e6ee13cbf9f1a91ec633cf96780ffc985
tree1726435c36284b74889b59ca3bb8c50abc669e6d
parent4e514c6180fbf71cf7a0171867c828c63afd1c37
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
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/option.c
contrib/postgres_fdw/sql/postgres_fdw.sql
doc/src/sgml/postgres-fdw.sgml