diff --git a/docs/generated/settings/settings-for-tenants.txt b/docs/generated/settings/settings-for-tenants.txt index cd35cd72b138..80c3d3353ff2 100644 --- a/docs/generated/settings/settings-for-tenants.txt +++ b/docs/generated/settings/settings-for-tenants.txt @@ -68,6 +68,7 @@ server.shutdown.drain_wait duration 0s the amount of time a server waits in an u server.shutdown.lease_transfer_wait duration 5s the amount of time a server waits to transfer range leases before proceeding with the rest of the shutdown process (note that the --drain-wait parameter for cockroach node drain may need adjustment after changing this setting) server.shutdown.query_wait duration 10s the server will wait for at least this amount of time for active queries to finish (note that the --drain-wait parameter for cockroach node drain may need adjustment after changing this setting) server.time_until_store_dead duration 5m0s the time after which if there is no new gossiped information about a store, it is considered dead +server.user_login.min_password_length integer 1 the minimum length accepted for passwords set in cleartext via SQL. Note that a value lower than 1 is ignored: passwords cannot be empty in any case. server.user_login.password_hashes.default_cost.crdb_bcrypt integer 10 the hashing cost to use when storing passwords supplied as cleartext by SQL clients with the hashing method crdb-bcrypt (allowed range: 4-31) server.user_login.store_client_pre_hashed_passwords.enabled boolean true whether the server accepts to store passwords pre-hashed by clients server.user_login.timeout duration 10s timeout after which client authentication times out if some system range is unavailable (0 = no timeout) diff --git a/docs/generated/settings/settings.html b/docs/generated/settings/settings.html index 600421b7e298..6d804c80b0e4 100644 --- a/docs/generated/settings/settings.html +++ b/docs/generated/settings/settings.html @@ -74,6 +74,7 @@ server.shutdown.lease_transfer_waitduration5sthe amount of time a server waits to transfer range leases before proceeding with the rest of the shutdown process (note that the --drain-wait parameter for cockroach node drain may need adjustment after changing this setting) server.shutdown.query_waitduration10sthe server will wait for at least this amount of time for active queries to finish (note that the --drain-wait parameter for cockroach node drain may need adjustment after changing this setting) server.time_until_store_deadduration5m0sthe time after which if there is no new gossiped information about a store, it is considered dead +server.user_login.min_password_lengthinteger1the minimum length accepted for passwords set in cleartext via SQL. Note that a value lower than 1 is ignored: passwords cannot be empty in any case. server.user_login.password_hashes.default_cost.crdb_bcryptinteger10the hashing cost to use when storing passwords supplied as cleartext by SQL clients with the hashing method crdb-bcrypt (allowed range: 4-31) server.user_login.store_client_pre_hashed_passwords.enabledbooleantruewhether the server accepts to store passwords pre-hashed by clients server.user_login.timeoutduration10stimeout after which client authentication times out if some system range is unavailable (0 = no timeout) diff --git a/pkg/security/password.go b/pkg/security/password.go index 223f5a5813ff..14a8fd666553 100644 --- a/pkg/security/password.go +++ b/pkg/security/password.go @@ -190,7 +190,7 @@ var MinPasswordLength = settings.RegisterIntSetting( "Note that a value lower than 1 is ignored: passwords cannot be empty in any case.", 1, settings.NonNegativeInt, -) +).WithPublic() // bcryptSemOnce wraps a semaphore that limits the number of concurrent calls // to the bcrypt hash functions. This is needed to avoid the risk of a