Skip to content

Conversation

@unmultimedio
Copy link
Member

@unmultimedio unmultimedio commented Apr 2, 2025

Add some events that the plugins don’t have but repositories do, for consistency:

  • plugin deprecated
  • plugin undeprecated
  • plugin visibility changed

Add missing field visibility for plugins events to match the ones we’re already logging for repositories events.

Add the same events, with the same fields, for policies.

@unmultimedio unmultimedio requested a review from bufdev as a code owner April 2, 2025 21:29
@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2025

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 3, 2025, 3:59 PM

Comment on lines 430 to 433
// visibility is the visibility of the policy.
buf.alpha.registry.v1alpha1.Visibility visibility = 3;
// description of the policy.
string description = 4;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are visibility and description set?

Copy link
Member Author

@unmultimedio unmultimedio Apr 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's additional useful fields in the payload. We already track visibility in other events like the CreateRepository payload, and I'd be inclined to add it to the CreatePlugin event too.

Probably description is not necessary, but I think we need to chat about which fields we want to audit for all of the upcoming policy events, and if we need to add/remove fields in some of the payloads we already have for plugins.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These shared fields should be the same between these entities.

Copy link
Member

@bufdev bufdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I defer to @emcfarlane

@unmultimedio unmultimedio changed the title Add CreatePolicy audit event Add Policy audit events, and missing Plugin events and fields Apr 3, 2025
@unmultimedio unmultimedio requested a review from emcfarlane April 3, 2025 16:03
@unmultimedio unmultimedio merged commit 87643e3 into main Apr 3, 2025
12 checks passed
@unmultimedio unmultimedio deleted the jfigueroa/create-policy-event branch April 3, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants