By documenting few examples of how our current event sources are sending cloud events into the eventing mesh, we might be able to better understand what we actually need for a first cut of Registry (and also some of the filtering for Broker/Trigger)
Below there are few dumps from the message_dumper. Only the HTTP headers are included. Most of the events below were sent using cloud events spec v0.1. Since then, most of the sources in eventing-sources repo have been changed to send cloud events v0.2. Note how the HTTP header names (Ce-*) change.
GitHub Event Source
pull_request
Host: message-dumper.default.svc.cluster.local
Accept-Encoding: gzip
Ce-Cloudeventsversion: 0.1
Ce-Eventid: 95481390-3bbc-11e9-9399-36e044325046
Ce-Eventtime: 2019-03-01T00:54:45.218614027Z
Ce-Eventtype: dev.knative.source.github.pull_request
Ce-Knativehistory: t.default.triggers.cluster.local
Ce-Knativehistory: default-broker.default.svc.cluster.local
Ce-Source: https://github.com/nachocano/eventing/pull/2
Ce-X-Github-Delivery: "95481390-3bbc-11e9-9399-36e044325046"
Ce-X-Github-Event: "pull_request"
Content-Length: 19741
Content-Type: application/json
User-Agent: Go-http-client/1.1
X-B3-Parentspanid: 15c7392dc989d476
X-B3-Sampled: 1
X-B3-Spanid: fe270d91f8c7b851
X-B3-Traceid: 80d46a89f5060f1a
X-Envoy-Expected-Rq-Timeout-Ms: 600000
X-Envoy-Internal: true
X-Forwarded-For: 127.0.0.1, 127.0.0.1
X-Forwarded-Proto: http
X-Request-Id: 98ed55ab-6f50-9d8f-898d-5ce800ab7a8b
BitBucket Event Source
repo:push
Host: message-dumper.default.svc.cluster.local
Accept-Encoding: gzip
Ce-Event-Key: "repo:push"
Ce-Id: d65b2f88-11b6-4588-b1ba-d5095a160235
Ce-Knativehistory: default-broker-x46lv.default.channels.cluster.local
Ce-Knativehistory: t.default.triggers.cluster.local
Ce-Request-Uuid: "d65b2f88-11b6-4588-b1ba-d5095a160235"
Ce-Source: https://api.bitbucket.org/2.0/repositories/nachocano/eventing-test/commits?include=3f909319ef2732dd86c448947a7d396faf6917af&exclude=b8d1aded3b8c3d6c32b563113a1388d7c99cc35a
Ce-Specversion: 0.2
Ce-Time: 2019-03-06T01:16:40.667029098Z
Ce-Type: dev.knative.source.bitbucket.repo:push
Content-Length: 4437
Content-Type: application/json
User-Agent: Go-http-client/1.1
X-B3-Parentspanid: 36c826a98b911016
X-B3-Sampled: 1
X-B3-Spanid: 1fe8b6975b2b6c2d
X-B3-Traceid: 0573724c260219df
X-Envoy-Expected-Rq-Timeout-Ms: 600000
X-Envoy-Internal: true
X-Forwarded-For: 127.0.0.1, 127.0.0.1
X-Forwarded-Proto: http
X-Request-Id: 81b4603c-3f2b-9e0b-ace4-fe3a7aeb2047
GCP PubSub source
publish message to new_testing topic
Host: message-dumper.default.svc.cluster.local
Accept-Encoding: gzip
Ce-Cloudeventsversion: 0.1
Ce-Eventid: 414566320791303
Ce-Eventtime: 2019-02-28T23:04:45.406Z
Ce-Eventtype: google.pubsub.topic.publish
Ce-Knativehistory: t.default.triggers.cluster.local
Ce-Knativehistory: default-broker.default.svc.cluster.local
Ce-Source: //pubsub.googleapis.com/knative-project-228222/topics/new_testing
Content-Length: 121
Content-Type: application/json
User-Agent: Go-http-client/1.1
X-B3-Parentspanid: 3270f8840314fa7d
X-B3-Sampled: 1
X-B3-Spanid: 5fdd60dab6d58725
X-B3-Traceid: 18f61c3161ef8df2
X-Envoy-Expected-Rq-Timeout-Ms: 600000
X-Envoy-Internal: true
X-Forwarded-For: 127.0.0.1, 127.0.0.1
X-Forwarded-Proto: http
X-Request-Id: bcb0b147-22e0-9a0d-86ce-f475d2ba151d
Kubernetes Event Source
busybox
Host: message-dumper.default.svc.cluster.local
Accept-Encoding: gzip
Ce-Cloudeventsversion: 0.1
Ce-Eventid: 7270f0c7-3ba0-11e9-842c-42010a8a0103
Ce-Eventtime: 2019-02-28T21:33:11Z
Ce-Eventtype: dev.knative.k8s.event
Ce-Knativehistory: t.default.triggers.cluster.local
Ce-Knativehistory: default-broker.default.svc.cluster.local
Ce-Source: /apis/v1/namespaces/default/pods/busybox
Content-Length: 745
Content-Type: application/json
User-Agent: Go-http-client/1.1
X-B3-Parentspanid: 9849ef63f21db180
X-B3-Sampled: 1
X-B3-Spanid: e94380a55e480ae4
X-B3-Traceid: 55ea296f18e053c8
X-Envoy-Expected-Rq-Timeout-Ms: 600000
X-Envoy-Internal: true
X-Forwarded-For: 127.0.0.1, 127.0.0.1
X-Forwarded-Proto: http
X-Request-Id: 70fc878d-006f-9ec4-9c94-fa92b30c9747
CronJob Event Source
schedule = "*/2 * * * *"
Host: message-dumper.default.svc.cluster.local
Accept-Encoding: gzip
Ce-Cloudeventsversion: 0.1
Ce-Eventid: f6aa3f90-3ba0-11e9-842c-42010a8a0103
Ce-Eventtime: 2019-02-28T21:36:53Z
Ce-Eventtype: dev.knative.k8s.event
Ce-Knativehistory: default-broker.default.svc.cluster.local
Ce-Knativehistory: t.default.triggers.cluster.local
Ce-Source: /apis/v1/namespaces/default/pods/cronjob-test-cronjob-source-gq9xb-58fd74f85c-dfbp6
Content-Length: 891
Content-Type: application/json
User-Agent: Go-http-client/1.1
X-B3-Parentspanid: 4de786ce3dad7798
X-B3-Sampled: 1
X-B3-Spanid: bc907c9fd868dd27
X-B3-Traceid: d6b4c733c2fcc30f
X-Forwarded-For: 127.0.0.1
X-Forwarded-Proto: http
X-Request-Id: e1ea514e-d7e0-9e14-8189-4cb6f05a8885
By documenting few examples of how our current event sources are sending cloud events into the eventing mesh, we might be able to better understand what we actually need for a first cut of Registry (and also some of the filtering for Broker/Trigger)
Below there are few dumps from the message_dumper. Only the HTTP headers are included. Most of the events below were sent using cloud events spec v0.1. Since then, most of the sources in eventing-sources repo have been changed to send cloud events v0.2. Note how the HTTP header names (Ce-*) change.
GitHub Event Source
pull_request
BitBucket Event Source
repo:push
GCP PubSub source
publish message to new_testing topic
Kubernetes Event Source
busybox
CronJob Event Source
schedule = "*/2 * * * *"