-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Webhook notifications #42
Comments
This was referenced Jan 17, 2015
First real event coming through after a push:
There are some problems to work out, but starting to get somewhere. cc @jlhawn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We need quite soon an asynchronous way to notify (remote) third-party code that "events" are happening (pull, push start, push end? pretty much).
One use case is to notify the docker hub and index of events from the registry. Other use cases are enumerated in docker-archive/docker-registry#689, which is superseded by this issue.
Proposal
To implement this feature, we will notify listeners via http messages when a given event happens. Reliable, at-least-once delivery will be attempted until a 2xx response is received.
Notification listeners will be configured in the registry configuration file. Authenticity for a listener can be controlled by TLS certificates if an https endpoint is defined. The configuration may support other sinks besides http/https.
A summary of events in the initial version are the following:
The following sections cover some of the proposed events and an example of what that data might look like. The protocol is subject to change and we are unlikely to lock it down for the beta release.
Actor and Source
The event notifications should include a source and actor, created from the request and authorization context of the request. The actor should indicate which authorized user initiated the event action and any request context (request id, etc.). The source should identify the registry system and node from which the event originated.
Registry Notification Types
Manifests
Manifest Pushed
Example
Manifest Pulled
Example
Manifest Deleted
Example
Blobs
Blob Pushed (Upon conclusion)
Example
Blob Pulled (Upon conclusion)
Example
Originally proposed by @jlhawn from https://gist.github.com/jlhawn/1c177252d343ae042e09.
The text was updated successfully, but these errors were encountered: