postgresql/src/backend
Nathan Bossart db6a4a985b Deprecate MD5 passwords.
MD5 has been considered to be unsuitable for use as a cryptographic
hash algorithm for some time.  Furthermore, MD5 password hashes in
PostgreSQL are vulnerable to pass-the-hash attacks, i.e., knowing
the username and hashed password is sufficient to authenticate.
The SCRAM-SHA-256 method added in v10 is not subject to these
problems and is considered to be superior to MD5.

This commit marks MD5 password support in PostgreSQL as deprecated
and to be removed in a future release.  The documentation now
contains several deprecation notices, and CREATE ROLE and ALTER
ROLE now emit deprecation warnings when setting MD5 passwords.  The
warnings can be disabled by setting the md5_password_warnings
parameter to "off".

Reviewed-by: Greg Sabino Mullane, Jim Nasby
Discussion: https://postgr.es/m/ZwbfpJJol7lDWajL%40nathan
2024-12-02 13:30:07 -06:00
..
access Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
archive Apply more quoting to GUC names in messages 2024-09-04 13:50:44 +09:00
backup Clean up newlines following left parentheses 2024-11-26 17:10:07 +01:00
bootstrap Assign a child slot to every postmaster child process 2024-11-14 16:12:28 +02:00
catalog Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
commands Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
executor Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
foreign Improve style of two code paths 2024-10-08 10:51:20 +09:00
jit Require sizeof(bool) == 1. 2024-11-28 12:01:14 +13:00
lib Revert pg_wal_replay_wait() stored procedure 2024-11-04 22:47:57 +02:00
libpq Deprecate MD5 passwords. 2024-12-02 13:30:07 -06:00
main Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
nodes Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
optimizer Avoid mislabeling of lateral references, redux. 2024-11-30 12:42:19 -05:00
parser Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
partitioning Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
po Translation updates 2024-06-24 13:11:27 +02:00
port Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
postmaster postmaster: Reduce verbosity of environment dump debug message 2024-11-27 11:17:23 -05:00
regex Avoid assertion due to disconnected NFA sub-graphs in regex parsing. 2024-11-15 18:23:38 -05:00
replication Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
rewrite Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
snowball Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
statistics Disallow modifying statistics on system columns. 2024-11-22 12:40:24 -08:00
storage Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
tcop Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
tsearch Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
utils Deprecate MD5 passwords. 2024-12-02 13:30:07 -06:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Fix make build on MinGW 2024-06-21 08:17:23 +02:00
meson.build meson: Fix import library name in Windows 2024-06-20 09:08:36 +02:00
nls.mk Add missing gettext triggers 2024-05-14 12:57:22 +02:00