password_profile
password_profile: Advanced password security and policy enforcement
password_profile · password_profile: Advanced password security and policy enforcement
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101503 | password_profile | password_profile | 1.0.0 | SEC | GPL-3.0 | Rust |
Usage
Sources:
- Official upstream README
- Official extension control file (password_profile.control)
- Official implementation source
password_profile — Enterprise‑grade password policy and authentication hardening for PostgreSQL. Built with Rust + pgrx (v0.16.1). Tested on PostgreSQL 16-18. Use it when implementing the corresponding security, audit, or access-control workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
add_to_blacklistis an extension function.check_passwordis an extension function.check_password_expiryis an extension function.check_user_accessis an extension function.clear_login_attemptsis an extension function.get_lock_cache_stats()is an extension function.get_password_statsis an extension function.init_login_attempts_table()is an extension function.is_user_lockedis an extension function.load_blacklist_from_fileis an extension function.record_failed_loginis an extension function.record_password_changeis an extension function.remove_from_blacklistis an extension function.
Requirements and Caveats
- The reviewed control file declares default version
1.0.0. - The control file marks the extension as non-relocatable.
- The control file requires a superuser for installation.
- The control file marks the extension as not trusted.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.