From 3e94f2fcb5d4b52d61cf1f732e1d9766461e06f3 Mon Sep 17 00:00:00 2001 From: divyaac Date: Wed, 1 Nov 2023 16:12:51 -0700 Subject: [PATCH] Added OSS changes (#23951) --- http/handler_stubs_oss.go | 4 ++++ http/logical.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/http/handler_stubs_oss.go b/http/handler_stubs_oss.go index 768d7161ed..f59a637eb5 100644 --- a/http/handler_stubs_oss.go +++ b/http/handler_stubs_oss.go @@ -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 +} diff --git a/http/logical.go b/http/logical.go index d3fff23519..c76c0462c0 100644 --- a/http/logical.go +++ b/http/logical.go @@ -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