kapua
kapua copied to clipboard
Account Lockout Policy Max Failures Can Be Set To 0
Describe the bug You can set lockoutPolicy.maxFailures to 0 under accounts credential service and Kapua behaves the same way as if it was set to 1. That means that after one failed login user is locked. I believe the best solution to that would be to not allow 0 value for maxFailures.
To Reproduce Steps to reproduce the behavior:
- Login as kapua-sys
- Create an account, and create one user under that account
- Configure CredentialService of the account: set lockoutPolicy.enabled to TRUE and lockoutPolicy.maxFailures to 0
- Try to login as created user with wrong password
- User will be locked
- Repeat steps 1-5 again but set lockoutPolicy.maxFailures to 1 at step 3 - behavior will be the same
Expected behavior You should not be able to set value 0 for lockoutPolicy.maxFailures
Screenshots /
Version of Kapua 1.2.0
Type of deployment [ ] Local Vagrant deployment [ ] Docker [ ] Openshift (in its variants) [x] Others
Main component affected [ ] Console (in case of console please report info on which browser you encountered the problem) [ ] REST API [ ] Message Broker [x] - Others