v.22.6New Feature
Explicit SALT Specification for CREATE USER with sha256_hash
ExplicitSALTspecification is allowed forCREATE USER <user> IDENTIFIED WITH sha256_hash. #37377 (Yakov Olkhovskiy).
Why it matters
This feature enables administrators to define a customSALT value for users authenticated with the sha256_hash method, improving security control and flexibility over password hashing.How to use it
When creating a user with thesha256_hash authentication method, utilize the SALT clause in the CREATE USER statement as follows:CREATE USER <user> IDENTIFIED WITH sha256_hash BY '<password_hash>' SALT '<custom_salt_value>'