mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-15 15:51:13 +01:00
Tolerate NamespaceByID returning (nil,nil) when looking up an mfa enforcement's ns (#17562)
This commit is contained in:
parent
b48b38346f
commit
d02ed76ba6
3
changelog/17562.txt
Normal file
3
changelog/17562.txt
Normal file
@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
core: prevent panic during mfa after enforcement's namespace is deleted
|
||||
```
|
||||
@ -1693,7 +1693,7 @@ ECONFIG_LOOP:
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to find the MFAEnforcementConfig namespace")
|
||||
}
|
||||
if eConfigNS.ID != ns.ID && !ns.HasParent(eConfigNS) {
|
||||
if eConfig == nil || (eConfigNS.ID != ns.ID && !ns.HasParent(eConfigNS)) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user