fix (events): Only "sign" audit events (#1677)

* chore: Update eventlogger dependency.

We need the latest version, so we can limit the type of events
that are signed.

* fix (events): Only "sign" audit events
This commit is contained in:
Jim authored and GitHub committed 2021-11-08 13:29:16 -05:00
1 parent b0642344b9
commit b96f57ec4e
6 files changed
+12 -9

No files matched your search

@@ -37,9 +37,10 @@ func newCloudEventsFormatterFilter(source *url.URL, format cloudevents.Format, o
opts := getOpts(opt...)
n := cloudEventsFormatterFilter{
FormatterFilter: &cloudevents.FormatterFilter{
Source: source,
Schema: opts.withSchema,
Format: format,
Source: source,
Schema: opts.withSchema,
Format: format,
SignEventTypes: []string{string(AuditType)},
},
}
@@ -134,6 +134,7 @@ func Test_newCloudEventsFormatterFilter(t *testing.T) {
for _, f := range got.deny {
assert.Contains(tt.wantDeny, f.raw)
}
assert.Equal([]string{string(AuditType)}, got.SignEventTypes)
})
}
}