-
Notifications
You must be signed in to change notification settings - Fork 593
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
Adding support for CloudEvents WebHook Spec #3092
Comments
@n3wscott I don't get where do you plan to support it, can you elaborate it a bit further? |
This would be need to be added in the following locations:
FOLLOWUP: the above list will only be needed if each component is in different clusters talking over https. Basically everywhere that accepts or sends a CloudEvents over http. NOTE: the webhook spec is optional, but it is also optional to send to a consumer that does not implement it. So in strict mode cloudevents, Knative components will not interoperate with other cloudevents implementors that use the webhook spec. |
OK! I am miss-understanding the spec. It seems like the webhook spec is for anything that would like to bridge between two systems, such as HTTP ingress for cloudevents. the proposal for next actions is this:
|
The webhook spec would still apply to any subscriber or sink from a broker or channel that is using an off-cluster url. That off-cluster consumer might implement the webhook spec and reject events and we will not understand how to deal with that. |
So If i understand correctly:
What I'm thinking is: do we really need it on the sender side? The receiver webhook compliant expects always the options dance? Or can we skip that part? |
If we don't implement any auth/rate limiting feature described by the webhook, can we just skip, for now, the implementation of the handshake on sender side? |
The options dance is optional for the producer, but not optional for a consumer to respond to if it would like to accept events from an options-enabled producer if that makes sense. |
Good, I can work on that for https://github.com/knative/eventing/blob/master/pkg/kncloudevents/message_receiver.go as soon as the sdk is enabled for supporting it |
This issue is stale because it has been open for 90 days with no |
/reopen |
@slinkydeveloper: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/unassign I'm not working actively on this anymore |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
It would be nice for Broker/Channel to implement this on both sides:
|
Problem
The CloudEvents WG has defined a webhook spec that we at Knative have mostly overlooked.
Persona:
Knative Developers and Integrators
Exit Criteria
Knative can be subscribers for producers that follow the webhook specification. And we can deliver to subscribers that implement the webhook spec.
Time Estimate (optional):
1 week
Additional context (optional)
Work has started to add support for webhook spec in the GoLang sdk: cloudevents/sdk-go#491
The text was updated successfully, but these errors were encountered: