community icon indicating copy to clipboard operation
community copied to clipboard

CDEvents proposal

Open afrittoli opened this issue 1 year ago • 9 comments

Proposal to implement CDEvents (cdevents.dev) notifications for Harbor.

This proposal is not 100% complete yet, the "Implementation Design" section is TBD, and there are a few open questions.

afrittoli avatar Jun 15 '23 17:06 afrittoli

@chlins can you take a look please

OrlinVasilev avatar Jul 04 '23 12:07 OrlinVasilev

Due to the current limitation of CDEvents, only the "artifact.published" event is supported at the moment. Therefore, I would like to hold on this proposal for now.

In order to introduce a new format of webhook, Harbor requires that there are no disruptive changes to user behavior, both from the UI and API perspectives, and that consistency is maintained.

The dependency here is that either CDEvents should support all types of events defined on the Harbor side or provide a general method for Harbor to define customized events, whether through annotations or attributes.

wy65701436 avatar Aug 31 '23 08:08 wy65701436

It needs to discuss

Thanks @wy65701436 - I'm happy to discuss about this - what is your preferred forum for discussion? Would that be the Harbor working group or here on the proposal or else?

afrittoli avatar Sep 05 '23 12:09 afrittoli

@wy65701436 @afrittoli did you manage to figure out what is needed

OrlinVasilev avatar Oct 23 '23 16:10 OrlinVasilev

@afrittoli what's the progress of this one do you need anything from our side?

OrlinVasilev avatar Feb 20 '24 12:02 OrlinVasilev

@afrittoli what's the progress of this one do you need anything from our side?

Hi @OrlinVasilev, thanks for asking. I've been working with the CDEvents community to add:

  • more artifact events https://github.com/cdevents/spec/pull/172 - Done
  • support for custom events https://hackmd.io/LftfRirGRbKuAcLg9pdOag - In progress

The two features will allow covering all existing Harbor events through CDEvents, as requested.

Feel free to review the custom events proposal https://hackmd.io/LftfRirGRbKuAcLg9pdOag - I used Harbor as a case study for that.

afrittoli avatar Feb 20 '24 13:02 afrittoli

@afrittoli what's the progress of this one do you need anything from our side?

Hi @OrlinVasilev, thanks for asking. I've been working with the CDEvents community to add:

The two features will allow covering all existing Harbor events through CDEvents, as requested.

Feel free to review the custom events proposal https://hackmd.io/LftfRirGRbKuAcLg9pdOag - I used Harbor as a case study for that.

An update on this. Support for custom events was just merged in CDEvents https://github.com/cdevents/spec/tree/main/custom. We'll probably cut a release after KubeCon and then I will be able to update the proposal and implementation with support for all existing Harbor events as requested.

afrittoli avatar Mar 14 '24 11:03 afrittoli

The registry: maintainers of the specifications of CDEvents custom events are encouraged to add their specification to the shared registry

@wy65701436 @chlins @OrlinVasilev can we agree upon supporting or not supporting this feature and let @afrittoli know before more time is wasted?

Vad1mo avatar Apr 09 '24 18:04 Vad1mo

Since Harbor already supports clouddevents, it may already meet the needs of most cloud-native users. For cdevents, it is more likely to be focused on the area of continuous deployment, and the Harbor community hasn't received too many requests for cdevents support yet, so I'm not sure if this is really valuable or or applicable scenarios to harbor users , so I think we can hold it for a while and wait for more user feedback, and at the same time we can monitor whether there are other artifact registries supports the cdevents.

chlins avatar Aug 05 '24 06:08 chlins