MCPcopy Create free account
hub / github.com/bytebase/bytebase / redactExportRequest

Function redactExportRequest

backend/api/v1/audit.go:534–543  ·  view source on GitHub ↗
(r *v1pb.ExportRequest)

Source from the content-addressed store, hash-verified

532}
533
534func redactExportRequest(r *v1pb.ExportRequest) *v1pb.ExportRequest {
535 if r == nil {
536 return nil
537 }
538 r = proto.CloneOf(r)
539 if r.Password != "" {
540 r.Password = maskedString
541 }
542 return r
543}
544
545// redactExportResponse drops the exported file content but keeps the applied
546// access grant so audit logs record which grant authorized the export.

Callers 1

getRequestStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected