Skip to content

sql: enable clearing user password #6605

@jseldess

Description

@jseldess

PR: cockroachdb/cockroach#43892

From release notes:

CREATE USER and ALTER USER now accept the parameter [WITH] PASSWORD NULL to indicate the user's password should be removed, thus preventing them from using password authentication. This is compatible with PostgreSQL. [#43892][#43892] {% comment %}doc{% endcomment %}

Previously, when setting a user's password to enable password authentication for the user, it was not possible to revert this choice. The only way to disable password authentication was to either drop the user or add a specific per-user HBA rule. This has been fixed and the PostgreSQL-compatible ALTER USER WITH PASSWORD NULL statement can now be used to clear the user's password. [#43892][#43892] {% comment %}doc{% endcomment %}

Metadata

Metadata

Assignees

Labels

C-product-changeP-1High priority; must be done this release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions