Add printable checks to request path and name/desc (#740)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-10-21 13:07:09 -04:00
1 parent 09b865ab28
commit 61e312db47
4 files changed
+153 -8

No files matched your search

+3 -1
View File
@@ -20,6 +20,7 @@ import (
"github.com/hashicorp/boundary/internal/servers/controller/handlers/sessions"
"github.com/hashicorp/boundary/internal/servers/controller/handlers/targets"
"github.com/hashicorp/boundary/sdk/strutil"
"github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/shared-secure-libs/configutil"
"github.com/hashicorp/boundary/internal/servers/controller/handlers"
@@ -53,8 +54,9 @@ func (c *Controller) handler(props HandlerProperties) (http.Handler, error) {
corsWrappedHandler := wrapHandlerWithCors(mux, props)
commonWrappedHandler := wrapHandlerWithCommonFuncs(corsWrappedHandler, c, props)
printablePathCheckHandler := cleanhttp.PrintablePathCheckHandler(commonWrappedHandler, nil)
return commonWrappedHandler, nil
return printablePathCheckHandler, nil
}
func handleGrpcGateway(c *Controller, props HandlerProperties) (http.Handler, error) {