Auditable for sensitive object classes, consider implementing Auditable and include whatever the AuditableObject returns. For example: it's likely OK to write a user object to the audit logs, but not the user password in cleartext or hashed form
| 66 | // AuditableObject returns. For example: it's likely OK to write a user object to the |
| 67 | // audit logs, but not the user password in cleartext or hashed form |
| 68 | type Auditable interface { |
| 69 | Auditable() map[string]any |
| 70 | } |
| 71 | |
| 72 | // Success marks the audit record status as successful. |
| 73 | func (rec *AuditRecord) Success() { |
no outgoing calls
no test coverage detected
searching dependent graphs…