-
Notifications
You must be signed in to change notification settings - Fork 29
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
Provides specific CAMARA OAS for notification event #8
Comments
@bigludo7 : For a generic Camara wide event structure, cloudevents spec (https://github.com/cloudevents/spec/tree/main) and https://github.com/cloudevents/spec/blob/main/subscriptions/spec.md#33-http-binding-for-the-subscription-api could be worth a look |
Hi @shilpa-padgaonkar, BR, |
For those not familiar with CloudEvents might want to look here : https://github.com/cloudevents/spec/blob/main/cloudevents/primer.md |
Add generic notification OAS file linked to issue camaraproject#8
@shilpa-padgaonkar @patrice-conil To make progress on this topic I've contributed a proposal for a generic notification OAS (#41 ). I keep aligned with the API design guideline document. |
Please considere this message as a formal inclusion of the GSMA OGW Product WS request to include Subscription/notification mechanism as part of OGW services. Some examples of those are attached, and will be also requested when and if affected. The request includes both the formalization of the creation in Commonalities of a subscription/notification mechanism generic for OGW services, as agreed by GSMA OGW Product WS, and also the inclusion of each spscific funcionality in each already existing API. Others may be applied, and others may apply in future drops/releases. Additional context |
@jgarciahospital few suggestions:
|
Thanks for the feedbacks. @gregory1g BTW, I recommend that we stick to the original topic of this conversation: the format of the notification send back to the listener once event occurred to avoid mixing different topic. Of course new issue are awelcome. |
Hi all, @bigludo7 |
@PedroDiez Yes ! |
Thanks Ludovic, we've already openned or commented to confirm the request per API. |
I had a closer look into CloudEvent primer and was impressed by the design thoughts which went into it and the wide adoption – it kept stable since 2019, and there is a complete eco-system of SDKs etc around. It' a CNCF incubated project, so already a kind of de-facto standard. So, yes, we should definitely evaluate and follow this spec instead of spending further time to improve and formalize ( our own and being just another [incompatible webhook] (https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/primer.md#normalizing-webhooks) format into the world. The differences of CloudEvent to our current guideline are not significant, but subtle, and there are also some points which should be reconsidered. E.g. the three layers of eventNotification, event and eventDetails. Also the subscriptionId on level of transport outside the event does not make sense for me (and does not fit what we need for implicit subscriptions in QoD). And as they are so similar, there is no reason why we should have a different definition for events and its metadata in CAMARA – it wouldn’t be developer friendly to don’t allow developers to use the existing implementations, SDKs, bindings etc of CloudEvents. Also we would jeopardize any attempt to get “Cloud Native” in the sense of LF/CNCF. Therefore I propose to do first a short evaluation before we rush forward with our "proprietary one". And I hope that we can conclude on this existing standard. It is now the time to do it, before the APIs are leaving the pre-production stage. |
… specifications fix camaraproject#8 Signed-off-by: Patrice Conil <[email protected]>
@patrice-conil : I see that the PR #41 has in its heading WIP but is not created as a draft PR. If the PR is not ready to be reviewed, would you mind changing it to draft PR instead? |
Sorry @shilpa-padgaonkar, |
As there seems to be now an agreement, for evaluation, I can see this issue include several PRs:
This evaluation will help us decide if our approach is sustainable long term ( where we can imagine messages being delivered not just using http protocol but may be even kafka or other standards). |
There is dedicated guideline document for delivering notifications with Cloudevents: Web Hooks for Event Delivery. Regardless results of evaluation section 4. Abuse Protection provides important security recommendations that should be considered in CAMARA. |
Hi all, Think missing some part of the context. The point here is for everybody to comment about the preference of which model to follow? Whether based in PR#41 or PR#43? |
Hi @PedroDiez, |
Feedback from TEF:
Then, if there is a preference to go for CloudEvents Model, it is also OK from our side. |
Prepared with @patrice-conil
As we are offering “notification event” for a lot of our API we need to clarify the technical assets. As of today, we are defining the notification event in the same OAS than the ‘nominal’ API resource itself. It could trigger confusion as it mixes endpoint provided by server from the notification endpoint that must be on client listener side.
Our proposal is
The text was updated successfully, but these errors were encountered: