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:
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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user