Added OSS changes (#23951)

This commit is contained in:
divyaac 2023-11-01 16:12:51 -07:00 committed by GitHub
parent 934efb9177
commit 3e94f2fcb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -17,3 +17,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
}

View file

@ -361,6 +361,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