Skip to content

Commit

Permalink
backport of commit 3e94f2f (#23952)
Browse files Browse the repository at this point in the history
Co-authored-by: divyaac <divya.chandrasekaran@hashicorp.com>
  • Loading branch information
1 parent 5e27af3 commit cf1b5ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http/handler_stubs_oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions http/logical.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf1b5ca

Please sign in to comment.