redactExportResponse drops the exported file content but keeps the applied access grant so audit logs record which grant authorized the export.
(r *v1pb.ExportResponse)
| 545 | // redactExportResponse drops the exported file content but keeps the applied |
| 546 | // access grant so audit logs record which grant authorized the export. |
| 547 | func redactExportResponse(r *v1pb.ExportResponse) *v1pb.ExportResponse { |
| 548 | if r == nil || r.AppliedAccessGrant == "" { |
| 549 | return nil |
| 550 | } |
| 551 | return &v1pb.ExportResponse{ |
| 552 | AppliedAccessGrant: r.AppliedAccessGrant, |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | func redactLoginRequest(r *v1pb.LoginRequest) *v1pb.LoginRequest { |
| 557 | if r == nil { |