Skip to content

feat: add hot CVE topic constants (SUB-7201)#101

Merged
kooomix merged 1 commit into
mainfrom
feat/hot-cve-topics
Apr 15, 2026
Merged

feat: add hot CVE topic constants (SUB-7201)#101
kooomix merged 1 commit into
mainfrom
feat/hot-cve-topics

Conversation

@kooomix
Copy link
Copy Markdown
Contributor

@kooomix kooomix commented Apr 15, 2026

Summary

Add shared Pulsar topic constants for hot CVE feature:

  • HotCVEDefinitionsTopic (hot-cve-definitions-v1) — admin API publishes hot CVE definitions, k8s-object ingester consumes
  • HotCVEOnFinishPulsarTopic (hot-cve-on-finish-v1) — ingester publishes after processing, UNS consumes for notifications

These replace hardcoded string literals in cadashboardbe and event-ingester-service.

SUB-7201

Summary by CodeRabbit

  • New Features
    • Added support for hot CVE definitions and event notifications.

- HotCVEDefinitionsTopic: hot-cve-definitions-v1 (admin API → ingester)
- HotCVEOnFinishPulsarTopic: hot-cve-on-finish-v1 (ingester → UNS)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 15, 2026

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a7b2d826-6c31-4dca-a3c0-12a1a4fa9bcf

📥 Commits

Reviewing files that changed from the base of the PR and between 943bf45 and 895856b.

📒 Files selected for processing (1)
  • pulsar/common/topics.go

📝 Walkthrough

Walkthrough

Two new exported string constants were added to the Pulsar topics configuration file: HotCVEDefinitionsTopic and HotCVEOnFinishPulsarTopic. These define topic names for hot CVE-related messaging within the Pulsar event system.

Changes

Cohort / File(s) Summary
Pulsar Topic Constants
pulsar/common/topics.go
Added two new exported string constants for hot CVE messaging: HotCVEDefinitionsTopic and HotCVEOnFinishPulsarTopic with corresponding topic names.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • YakirOren
  • BenMic5

Poem

🐰 Hot CVEs need channels true,
New topics defined, just two!
Definitions and finish, now they flow,
Through Pulsar's streams, a constant glow! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding two new hot CVE topic constants to support the hot CVE feature messaging infrastructure.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/hot-cve-topics

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kooomix kooomix merged commit 90d313f into main Apr 15, 2026
5 of 6 checks passed
@github-actions
Copy link
Copy Markdown

Summary:

  • License scan: failure
  • Credentials scan: skipped
  • Vulnerabilities scan: skipped
  • Unit test: success
  • Go linting: success

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.

2 participants