mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-16 17:31:58 +00:00
Update messageSensitiveDataCleaner.go
This commit is contained in:
parent
3497dc057b
commit
5473f11215
@ -86,7 +86,7 @@ func filterJsonMap(jsonMap map[string] interface{}) {
|
||||
}
|
||||
}
|
||||
|
||||
// replaces sensitive query params in url string (http://service/api?userId=bob&password=123&type=login -> http://service/api?userId=[REDACTED]&password=[REDACTED]&type=login)
|
||||
// receives string representing url, returns string url without sensitive query param values (http://service/api?userId=bob&password=123&type=login -> http://service/api?userId=[REDACTED]&password=[REDACTED]&type=login)
|
||||
func filterUrl(originalUrl string) string {
|
||||
parsedUrl, err := url.Parse(originalUrl)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user