Re: pg16 && GSSAPI && Heimdal/Macos - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg16 && GSSAPI && Heimdal/Macos
Date
Msg-id 1702597.1748469575@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg16 && GSSAPI && Heimdal/Macos  (Jacob Champion <jacob.champion@enterprisedb.com>)
Responses Re: pg16 && GSSAPI && Heimdal/Macos
List pgsql-hackers
Jacob Champion <jacob.champion@enterprisedb.com> writes:
> - I also want to draw attention to the fact that libpq can't claim
> that a credential is delegated if it's not; that breaks the security
> of our FDWs. So pg_store_delegated_credential() cannot be a no-op.

Right.  What I had in mind if we cannot find an alternative
implementation was

void
pg_store_delegated_credential(gss_cred_id_t cred)
{
#ifdef HAVE_GSS_STORE_CRED_INTO
...
    major = gss_store_cred_into(&minor,
...
#else
    elog(ERROR, "credential delegation is not implemented");
#endif
}

combined with a check_hook that prevents the gss_accept_delegation
GUC from being set to "true" if not HAVE_GSS_STORE_CRED_INTO.
(That should make the above-depicted elog unreachable, but
belt and suspenders too isn't a bad plan.)

            regards, tom lane



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: pg16 && GSSAPI && Heimdal/Macos
Next
From: Jacob Champion
Date:
Subject: Re: pg16 && GSSAPI && Heimdal/Macos