You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In talking with @schmidtw, we have reason to believe some consumers are using the device ID header, and we should probably keep that accurate. The part of the webhook struct that provides regex to apply against the device ID was more intended as a way to provide regex against the wrp.Source, so perhaps we could change the api to reflect that better without changing the Caduceus logic.
In our discussion, we didn't think Caduceus should be responsible for parsing the device ID from the event. Talaria knows the device ID already, so if it passes it to Caduceus, Caduceus could forward it - either as an http header or a new field in the wrp.
These are just options we discussed; further discussion is needed.
Update:
Given our discussion, these are the changes needed in Caduceus:
Remove webhook.Matcher regex logic
Remove adding specific Device ID headers in Caduceus (wrphttp package will add any needed headers)
Discussion with the team today led to these decisions:
Caduceus will not do anything to parse or determine the Device ID.
We will remove the Matcher field in the webhook struct for the webhook registration API, and remove logic in Caduceus that uses it.
Add a new required field in the WRP SimpleEvent that indicates the DeviceID. Caduceus will no longer have a special header for the Device ID specifically and instead will have a header for it that matches the other fields.
Most of these decisions affect other repos. The main change needed for this issue is for Caduceus to no longer use the webhook Matcher field for anything, and to only use the wrphttp package to add the wrp headers.
Currently, caduceus parses the device ID in two places:
caduceus/outboundSender.go
Line 582 in 453f141
caduceus/outboundSender.go
Line 391 in b2866f4
In talking with @schmidtw, we have reason to believe some consumers are using the device ID header, and we should probably keep that accurate. The part of the webhook struct that provides regex to apply against the device ID was more intended as a way to provide regex against the wrp.Source, so perhaps we could change the api to reflect that better without changing the Caduceus logic.
In our discussion, we didn't think Caduceus should be responsible for parsing the device ID from the event. Talaria knows the device ID already, so if it passes it to Caduceus, Caduceus could forward it - either as an http header or a new field in the wrp.
These are just options we discussed; further discussion is needed.
Update:
Given our discussion, these are the changes needed in Caduceus:
This is dependent on xmidt-org/wrp-go#53 and https://github.com/xmidt-org/webpa-common/issues/514.
The text was updated successfully, but these errors were encountered: