diff --git a/api/pkg/sensitiveDataFiltering/consts.go b/api/pkg/sensitiveDataFiltering/consts.go index 8cd0cacf0..e5624de73 100644 --- a/api/pkg/sensitiveDataFiltering/consts.go +++ b/api/pkg/sensitiveDataFiltering/consts.go @@ -7,4 +7,4 @@ var personallyIdentifiableDataFields = []string{"token", "authorization", "authe "username", "user", "key", "passcode", "pass", "auth", "authtoken", "jwt", "bearer", "clientid", "clientsecret", "redirecturi", "phonenumber", "zip", "zipcode", "address", "country", "firstname", "lastname", - "middlename", "fname", "lname", "birthdate", "title"} + "middlename", "fname", "lname", "birthdate"} diff --git a/api/pkg/sensitiveDataFiltering/messageSensitiveDataCleaner.go b/api/pkg/sensitiveDataFiltering/messageSensitiveDataCleaner.go index 2d881a5ad..baa46e3e6 100644 --- a/api/pkg/sensitiveDataFiltering/messageSensitiveDataCleaner.go +++ b/api/pkg/sensitiveDataFiltering/messageSensitiveDataCleaner.go @@ -3,13 +3,13 @@ package sensitiveDataFiltering import ( "encoding/json" "fmt" - "github.com/up9inc/mizu/shared" "mizuserver/pkg/tap" "net/url" "strings" "github.com/beevik/etree" "github.com/google/martian/har" + "github.com/up9inc/mizu/shared" ) func FilterSensitiveInfoFromHarRequest(harOutputItem *tap.OutputChannelItem, options *shared.TrafficFilteringOptions) { diff --git a/cli/cmd/tap.go b/cli/cmd/tap.go index ba6bcc0d0..b597d0ea9 100644 --- a/cli/cmd/tap.go +++ b/cli/cmd/tap.go @@ -51,5 +51,5 @@ func init() { tapCmd.Flags().StringVarP(&mizuTapOptions.KubeConfigPath, "kube-config", "k", "", "Path to kube-config file") tapCmd.Flags().StringVarP(&mizuTapOptions.MizuImage, "mizu-image", "", fmt.Sprintf("gcr.io/up9-docker-hub/mizu/%s:latest", mizu.Branch), "Custom image for mizu collector") tapCmd.Flags().Uint16VarP(&mizuTapOptions.MizuPodPort, "mizu-port", "", 8899, "Port which mizu cli will attempt to forward from the mizu collector pod") - tapCmd.Flags().StringArrayVarP(&mizuTapOptions.PlainTextFilterRegexes, "text-value-filter-regex", "", nil, "List of regex expressions that are used to filter matching values from text/plain http bodies") + tapCmd.Flags().StringArrayVarP(&mizuTapOptions.PlainTextFilterRegexes, "http-text-body-filter-regex", "", nil, "List of regex expressions that are used to filter matching values from text/plain http bodies") }