Vault 8307 user lockout workflow oss (#17951)

* adding oss file changes

* check disabled and read values from config

* isUserLocked, getUserLockout Configurations, check user lock before login and return error

* remove stale entry from storage during read

* added failed login process workflow

* success workflow updated

* user lockouts external tests

* changing update to support delete

* provide access to alias look ahead function

* adding path alias lookahead

* adding tests

* added changelog

* added comments

* adding changes from ent branch

* adding lock to UpdateUserFailedLoginInfo

* fix return default bug
This commit is contained in:
akshya96
2022-12-06 17:22:46 -08:00
committed by GitHub
parent 7b837edb1e
commit e1f7a7eac3
6 changed files with 720 additions and 10 deletions

View File

@@ -32,6 +32,10 @@ type UserLockout struct {
DisableLockoutRaw interface{} `hcl:"disable_lockout"`
}
func GetSupportedUserLockoutsAuthMethods() []string {
return []string{"userpass", "approle", "ldap"}
}
func ParseUserLockouts(result *SharedConfig, list *ast.ObjectList) error {
var err error
result.UserLockouts = make([]*UserLockout, 0, len(list.Items))