mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
backport of commit 26bae55997 (#23899)
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
75a5ce0da6
commit
c1fc86a66d
3
changelog/23802.txt
Normal file
3
changelog/23802.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
core/mounts: Fix reading an "auth" mount using "sys/internal/ui/mounts/" when filter paths are enforced returns 500 error code from the secondary
|
||||
```
|
||||
@@ -4325,7 +4325,12 @@ func (b *SystemBackend) pathInternalUIMountRead(ctx context.Context, req *logica
|
||||
return errResp, logical.ErrPermissionDenied
|
||||
}
|
||||
|
||||
filtered, err := b.Core.checkReplicatedFiltering(ctx, me, "")
|
||||
var routerPrefix string
|
||||
if strings.HasPrefix(me.APIPathNoNamespace(), credentialRoutePrefix) {
|
||||
routerPrefix = credentialRoutePrefix
|
||||
}
|
||||
|
||||
filtered, err := b.Core.checkReplicatedFiltering(ctx, me, routerPrefix)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user