-
Notifications
You must be signed in to change notification settings - Fork 19
Description
In section 3.2.1 the SSE spec says
All members within a Complex Subject MUST represent attributes of the same Subject Principal. As a whole, the Complex Subject MUST refer to exactly one Subject Principal.
I read this to mean that when examining a new security event to determine whether it matches a subject that a receiver has added to the stream, the rule is that all of the attributes of the Complex Subject must match. That is, if the receiver added this subject:
{
"device": {
"format": "opaque",
"id": "1234"
},
"application": {
"format": "opaque",
"id": "5678"
}
}
Then in order for an event to be delivered on that stream, it must have both device 1234 and application 5678.
I have three questions:
- Is the interpretation above correct? Or would an event that matches any of the attributes be delivered on the stream?
- What happens if the event has more information than the ComplexSubject? That is, would an event with device
1234, application5678, and userfoobe delivered on this stream? - What happens if the event has less information than the ComplexSubject? That is, would an event with device
1234and no application information be delivered on this stream?
We need to come to a consensus about these cases, and then I would suggest we should add enough details to the spec to make the answers clear to readers.