postgresql/src/backend/catalog
Stephen Frost b0b39f72b9 GSSAPI encryption support
On both the frontend and backend, prepare for GSSAPI encryption
support by moving common code for error handling into a separate file.
Fix a TODO for handling multiple status messages in the process.
Eliminate the OIDs, which have not been needed for some time.

Add frontend and backend encryption support functions.  Keep the
context initiation for authentication-only separate on both the
frontend and backend in order to avoid concerns about changing the
requested flags to include encryption support.

In postmaster, pull GSSAPI authorization checking into a shared
function.  Also share the initiator name between the encryption and
non-encryption codepaths.

For HBA, add "hostgssenc" and "hostnogssenc" entries that behave
similarly to their SSL counterparts.  "hostgssenc" requires either
"gss", "trust", or "reject" for its authentication.

Similarly, add a "gssencmode" parameter to libpq.  Supported values are
"disable", "require", and "prefer".  Notably, negotiation will only be
attempted if credentials can be acquired.  Move credential acquisition
into its own function to support this behavior.

Add a simple pg_stat_gssapi view similar to pg_stat_ssl, for monitoring
if GSSAPI authentication was used, what principal was used, and if
encryption is being used on the connection.

Finally, add documentation for everything new, and update existing
documentation on connection security.

Thanks to Michael Paquier for the Windows fixes.

Author: Robbie Harwood, with changes to the read/write functions by me.
Reviewed in various forms and at different times by: Michael Paquier,
   Andres Freund, David Steele.
Discussion: https://www.postgresql.org/message-id/flat/jlg1tgq1ktm.fsf@thriss.redhat.com
2019-04-03 15:02:33 -04:00
..
.gitignore Replace our traditional initial-catalog-data format with a better design. 2018-04-08 13:17:27 -04:00
Catalog.pm Create a script that can renumber manually-assigned OIDs. 2019-03-12 10:50:48 -04:00
Makefile Use Getopt::Long for catalog scripts 2019-02-12 12:22:08 -03:00
aclchk.c tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
catalog.c Move generic snapshot related code from tqual.h to snapmgr.h. 2019-01-21 17:06:41 -08:00
dependency.c REINDEX CONCURRENTLY 2019-03-29 08:26:33 +01:00
genbki.pl Sync commentary in transam.h and bki.sgml. 2019-03-14 00:23:40 -04:00
heap.c Generated columns 2019-03-30 08:15:57 +01:00
index.c Report progress of CREATE INDEX operations 2019-04-02 15:18:08 -03:00
indexing.c Don't include genam.h from execnodes.h and relscan.h anymore. 2019-01-14 17:02:12 -08:00
information_schema.sql Generated columns 2019-03-30 08:15:57 +01:00
namespace.c Restrict the use of temporary namespace in two-phase transactions 2019-01-18 09:21:44 +09:00
objectaccess.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
objectaddress.c Make object address handling more robust 2019-02-20 11:26:08 -03:00
partition.c Add index_get_partition convenience function 2019-03-20 18:18:50 -03:00
pg_aggregate.c Implement OR REPLACE option for CREATE AGGREGATE. 2019-03-19 01:16:50 +00:00
pg_collation.c Collations with nondeterministic comparison 2019-03-22 12:12:43 +01:00
pg_constraint.c Move code for managing PartitionDescs into a new file, partdesc.c 2019-02-21 11:45:02 -05:00
pg_conversion.c tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
pg_db_role_setting.c tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
pg_depend.c REINDEX CONCURRENTLY 2019-03-29 08:26:33 +01:00
pg_enum.c Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
pg_inherits.c Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
pg_largeobject.c Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
pg_namespace.c Replace uses of heap_open et al with the corresponding table_* function. 2019-01-21 10:51:37 -08:00
pg_operator.c Replace uses of heap_open et al with the corresponding table_* function. 2019-01-21 10:51:37 -08:00
pg_proc.c Implement OR REPLACE option for CREATE AGGREGATE. 2019-03-19 01:16:50 +00:00
pg_publication.c tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
pg_range.c Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
pg_shdepend.c Sort dependent objects before reporting them in DROP ROLE. 2019-03-24 18:17:53 -04:00
pg_subscription.c tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
pg_type.c Replace uses of heap_open et al with the corresponding table_* function. 2019-01-21 10:51:37 -08:00
sql_feature_packages.txt > I have installed your patch and adjusted the names of the standards 2004-12-02 22:51:28 +00:00
sql_features.txt Improve documentation about our XML functionality. 2019-04-01 16:20:22 -04:00
storage.c tableam: relation creation, VACUUM FULL/CLUSTER, SET TABLESPACE. 2019-03-28 20:01:43 -07:00
system_views.sql GSSAPI encryption support 2019-04-03 15:02:33 -04:00
toasting.c Ignore attempts to add TOAST table to shared or catalog tables 2019-03-19 11:15:50 +01:00