-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store Partner IDs associated with webhook #16
Comments
Related to: |
More details on this....
Remaining questions:
|
Probably configurable gives us the most flexibility unless that's a challenge. |
Yeah we can definitely make it configurable or match the behavior from services like Tr1d1um https://github.com/xmidt-org/tr1d1um/blob/683f4c0f20bc86be8bf43d5d7ee9ef187078f40a/translation/transport.go#L74 |
Do we want partner ID filtering to be configurable for our services? This would mean:
|
For 1), this would essentially control whether the field is required, right? If we end up adding this option, we might want to update Tr1d1um with a similar option since today the partners are left as nil when not defined -> https://github.com/xmidt-org/tr1d1um/blob/683f4c0f20bc86be8bf43d5d7ee9ef187078f40a/translation/transport.go#L76 For 2) we could follow the monitor/enforce pattern we have for some of our other checks (ex: https://github.com/xmidt-org/talaria/blob/6cd8ee52a0a29bcb601a6cff7bd0cec460bddeee/talaria.yaml#L189) Side question: what should caduceus do when enforcement of 2) is enabled and the |
If caduceus was enforcing partner ID checks and had a webhook with no partners, that webhook would never receive any events. |
^ that def makes sense under the assumption the WRP |
Oops, I misread your original question. Ideally I think talaria would add the partner ID information to every event, and there would be at least partner there. I believe if the partner ID isn't there currently, talaria or themis set it to a default, don't they? If we can't ensure there is a partner ID from upstream of caduceus, I think we might as well consider no partner as can be sent to any webhook. The alternative is not send the event anywhere, which doesn't seem as backwards compatible. @schmidtw, what do you think? |
If the
This should give folks upgrade options as well as a fair bit of control. In all cases, we should make sure a metric accounts for the presence of empty and the mechanism of dispatch. |
Create a new struct that is stored in sns/argus. It should look something like this:
Then we store the webhook registered as well as the partner IDs associated with it, allowing us to only send wrp Messages given a partner ID match.
The partner ID can be determined in two ways:
The text was updated successfully, but these errors were encountered: