forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding user account expiration and user/role login privilege.
Release note (sql change): Added LOGIN option to enable login for roles/users. When using CREATE USER syntax, LOGIN is enabled by default whereas when using CREATE ROLE, LOGIN is not enabled by default. Release note (sql change): Added VALID UNTIL option to indicate passwords are only valid until a given timestamp. VALID UNTIL only affects PASSWORDS - if passwords are disabled, VALID UNTIL has no effect. (Can login even with expired password if passwords are not required to login - same as PG) Release note (sql change): SHOW USERS now shows all roles/users that have LOGIN enabled. Release note (security update): User and role principals can now be prevented from logging in using the NOLOGIN attribute which can be set using ALTER USER/ROLE. Release note (security update): The password field (used exclusively for password-based authentication) can now be configured to have an expiry date using the VALID UNTIL attribute, which can be set with ALTER USER/ROLE. Note that the attribute sets an expiry date for the password, not the user account. This is consistent with PostgreSQL. Release note (security update): Any role created prior to 20.1 will be able to log in into clusters started with --insecure, unless/until they are granted the NOLOGIN privilege. Fixes cockroachdb#41396
- Loading branch information
1 parent
6108aba
commit 8ddd724
Showing
21 changed files
with
445 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.