mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user