Currently, the execution of one "docker push" command on the Docker client side is distributed on the Artifactory side for several operations. First, layers of images are loaded, then the manifest is loaded and finally labels with dockerfile are loaded as properties. The order of these operations is variable, depending on the Dockerfile content. For this reason, it is currently not possible to implement a plugin that, for example, would support the upload of the Docker image to the DTR in Artifactory. There is no event that would trigger execution of such a plugin.
It is necessary to create a special event, a transaction completion flag or any other mechanism that will enable the development of a user plugin to handle the event of introducing a new image to the DTR.
Such a plugin in our institution is necessary to check the correctness of image delivery by external providers (for example using Xray) and to free the webhook for further image processing.