pgwire,auth: support pg's auth username maps #47196
Labels
A-authentication
Pertains to authn subsystems
A-cc-enablement
Pertains to current CC production issues or short-term projects
A-security
A-sql-pgwire
pgwire protocol issues.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-server-and-security
DB Server & Security
X-server-triaged-202105
In crdb 19.1, we have introduced support for PostgreSQL's (obsolete!)
include_realm
option for GSSAPI authentication, which maps Kerberos usernames to database usernames by stripping the realm suffix.In crdb 20.1, we have introduced
--cert-principal-map
to satisfy some Amazon IAM (ACM) UX issues.It turns out that PostgreSQL already has a common, uniform protocol to do this: https://www.postgresql.org/docs/12/auth-username-maps.html (we didn't know about this when we did the work for v19.1/v20.1).
How the pg thing would translate to crdb:
server.host_based_authentication.configuration
to hold the equivalent of pg'spg_ident.conf
include_realm
for GSSAPI (like it is already deprecated in postgres) and replace it by uniform use of name mappings.The text was updated successfully, but these errors were encountered: