Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Redact Cast pairing request bodies

Neeraj Guptac47a3896e8fa
diff --git a/server/pkg/middleware/request_logger.go b/server/pkg/middleware/request_logger.go
index 7e332ae65e..c7e2e3ec9f 100644
--- a/server/pkg/middleware/request_logger.go
+++ b/server/pkg/middleware/request_logger.go
@@ -92,6 +92,9 @@ func shouldSkipBodyLog(method string, path string) bool {
if method == http.MethodPost && (path == "/users/recover-account" || path == "/users/recover-account/validate") {
return true
}
+ if method == http.MethodPost && (path == "/cast/cast-data" || path == "/cast/cast-data/") {
+ return true
+ }
if !isReadOnly && (strings.HasPrefix(path, "/space") || strings.HasPrefix(path, "/account/space")) {
return true
}