Events: Add outbound detail protobufs, request status code, and update event encrypt filter. (#1569)

* feat (events): Add status code to audit events

* feat (events): Add the resp proto msg to every audit event

* chore (events): Update eventlogger dep

This latest version will redact any map and/or map field which isn't
explicitly classified via a Taggable interface

* feat (events): Begin to add tagging to response proto msgs
This commit is contained in:
Jim authored and GitHub committed 2021-09-30 12:55:47 -04:00
1 parent 8d6dee09a9
commit c8b29ded1c
23 files changed
+914 -129

No files matched your search

+3 -3
View File
@@ -332,9 +332,9 @@ func Test_WrapWithEventsHandler(t *testing.T) {
Id: got.Data.(map[string]interface{})["request_info"].(map[string]interface{})["id"].(string),
}
hdr := map[string]interface{}{
"id": got.Data.(map[string]interface{})["id"].(string),
"timestamp": got.Data.(map[string]interface{})["timestamp"].(string),
"serialized_hmac": got.Data.(map[string]interface{})["serialized_hmac"].(string),
"id": got.Data.(map[string]interface{})["id"].(string),
"timestamp": got.Data.(map[string]interface{})["timestamp"].(string),
"response": got.Data.(map[string]interface{})["response"].(map[string]interface{}),
}
wantJson := testJson(t, event.AuditType, &info, event.Op(tt.name), got, hdr, nil)
assert.JSONEq(string(wantJson), string(actualJson))