(r *v1pb.ExportRequest)
| 532 | } |
| 533 | |
| 534 | func 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. |