From 2be3aecfc7b3e099829f89fb7853ea216b7c6f6e Mon Sep 17 00:00:00 2001 From: Egor Ivkov <e.o.ivkov@gmail.com> Date: Wed, 6 Dec 2023 19:21:54 +0300 Subject: [PATCH] fix: set default value of max login attempts to 4 --- CHANGELOG.md | 2 +- src/storage.rs | 2 +- test/int/test_acl.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b471eb8575..26c920edf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ with the `YY.0M.MICRO` scheme. console communication occurs in plain text and always operates under the admin account. - Restrict the number of login attempts through `picodata connect`. The limit can be set - through `max_login_attempts` property. The default value is `5`. + through `max_login_attempts` property. The default value is `4`. - _Clusterwide SQL_ now available via `\set language sql` in interactive console. diff --git a/src/storage.rs b/src/storage.rs index 6330ce6237..a9d313b613 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -1201,7 +1201,7 @@ pub const DEFAULT_AUTO_OFFLINE_TIMEOUT: f64 = 5.0; pub const DEFAULT_MAX_HEARTBEAT_PERIOD: f64 = 5.0; pub const DEFAULT_SNAPSHOT_CHUNK_MAX_SIZE: usize = 16 * 1024 * 1024; pub const DEFAULT_SNAPSHOT_READ_VIEW_CLOSE_TIMEOUT: f64 = (24 * 3600) as _; -pub const DEFAULT_MAX_LOGIN_ATTEMPTS: usize = 5; +pub const DEFAULT_MAX_LOGIN_ATTEMPTS: usize = 4; impl Properties { pub fn new() -> tarantool::Result<Self> { diff --git a/test/int/test_acl.py b/test/int/test_acl.py index 503b8f55df..3c80452266 100644 --- a/test/int/test_acl.py +++ b/test/int/test_acl.py @@ -5,7 +5,7 @@ from tarantool.connection import Connection # type: ignore VALID_PASSWORD = "long enough" PASSWORD_MIN_LENGTH_KEY = "password_min_length" -MAX_LOGIN_ATTEMPTS = 5 +MAX_LOGIN_ATTEMPTS = 4 def expected_min_password_violation_error(min_length: int): -- GitLab