mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
backport of commit 3e94f2fcb5 (#23952)
Co-authored-by: divyaac <divya.chandrasekaran@hashicorp.com>
This commit is contained in:
committed by
GitHub
parent
5e27af3a54
commit
cf1b5cafa0
@@ -14,3 +14,7 @@ import (
|
||||
func adjustRequest(c *vault.Core, listener *configutil.Listener, r *http.Request) (*http.Request, int, error) {
|
||||
return r, 0, nil
|
||||
}
|
||||
|
||||
func handleEntPaths(nsPath string, core *vault.Core, r *http.Request) http.Handler {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -366,6 +366,11 @@ func handleLogicalInternal(core *vault.Core, injectDataIntoTopLevel bool, noForw
|
||||
handler.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
handler := handleEntPaths(nsPath, core, r)
|
||||
if handler != nil {
|
||||
handler.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
|
||||
// Make the internal request. We attach the connection info
|
||||
// as well in case this is an authentication request that requires
|
||||
|
||||
Reference in New Issue
Block a user