replication-manager icon indicating copy to clipboard operation
replication-manager copied to clipboard

authentication errors detection - how it detects authentication is faulty or ok

Open lukasdebaum opened this issue 1 year ago • 2 comments

Hi

I have the problem that when I run the replication-manager-cli several times I get "blocked" for 3 minutes.

root@ha-c1:~# replication-manager-cli status --user root --password xxx
running
root@ha-c1:~# replication-manager-cli status --user root --password xxx
running
root@ha-c1:~# replication-manager-cli status --user root --password xxx
running
root@ha-c1:~# replication-manager-cli status --user root --password xxx
INFO[0000] ERROR in login unexpected end of JSON input  

replication-manager-osc monitor 3 authentication errors for the user root, please try again in 3 minutes

How does the following function (server/api.go) decide if the authentication is faulty or ok? and only count if the authentication is faulty. 565e82b

lukasdebaum avatar Sep 12 '23 19:09 lukasdebaum

Hi thanks for reporting That's a new feature , are you sure that the authentification is valid this feature is anti brut force attack but the login counter should not increase on success

svaroqui avatar Sep 13 '23 07:09 svaroqui

I think so I get data back ("running")

root@ha-c1:~# replication-manager-cli status --password xxx
running
root@ha-c1:~# replication-manager-cli status --password yyy
Cluster not found

Is my problem not reproducible if you check the "status" more than 3 times in a short time?

lukasdebaum avatar Sep 13 '23 08:09 lukasdebaum