-
Notifications
You must be signed in to change notification settings - Fork 164
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
feat: Support publishing new log entries to Pub/Sub topics #1580
Conversation
5f1c40a
to
c0f2d85
Compare
@bobcallaway Please note the build will fail as-is due to dependency on sigstore/protobuf-specs#86 which hasn't been merged yet. All tests pass running locally when using the not-yet-merged dependency: https://gist.github.com/jalseth/ebf866def89661d31fd87c93eed80ed2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic work on this!
15c34c1
to
7624f62
Compare
f83b1b3
to
7a161df
Compare
Codecov Report
@@ Coverage Diff @@
## main #1580 +/- ##
==========================================
- Coverage 67.04% 66.94% -0.10%
==========================================
Files 83 88 +5
Lines 8490 8804 +314
==========================================
+ Hits 5692 5894 +202
- Misses 2120 2213 +93
- Partials 678 697 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm overall, a couple questions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with just a few nits
771eccc
to
ffa4537
Compare
Adds initial support publishing new log entries to Pub/Sub topics. Interested parties can subscribe to the topic in order to receive notifications when new entries are added. Signed-off-by: James Alseth <james@jalseth.me>
Summary
Adds initial support publishing new log entries to Pub/Sub topics. Interested parties can subscribe to the topic in order to receive notifications when new entries are added.
This relates to #191. Requires sigstore/protobuf-specs#86 to be merged.
Release Note
rekor_server.new_entry_publisher
flag to configure the Pub/Sub topic to send notifications to when a new log entry is added. This flag is optional.rekor_server.publish_events_protobuf
flag to configure whether events are published using the CloudEvents protobuf format.rekor_server.publish_events_json
flag to configure whether events are published using the CloudEvents JSON format.Documentation
This is a TODO still. I would like feedback on the PR before writing the docs.