wip: sidecar for trivy #3012
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!3012
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/3012/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #2988
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2988
Original created: 2026-03-03T16:44:14Z
Original updated: 2026-03-04T05:50:20Z
Original head: carverauto/serviceradar:2987-feat-trivy-support
Original base: staging
Original merged: 2026-03-04T05:50:10Z by @mfreeman451
IMPORTANT: Please sign the Developer Certificate of Origin
Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2988#issuecomment-3992267467
Original created: 2026-03-03T16:44:56Z
Review Summary by Qodo
Add Trivy Operator NATS sidecar service with CRD watching and JetStream publishing
✨ Enhancement🧪 Tests📝 DocumentationWalkthroughs
Description
Diagram
File Changes
1. go/pkg/trivysidecar/metrics.go
✨ Enhancement+181/-02. go/pkg/trivysidecar/service.go
✨ Enhancement+225/-03. go/pkg/trivysidecar/config.go
⚙️ Configuration changes+191/-0View more (21)
4. go/pkg/trivysidecar/publisher.go
✨ Enhancement+168/-05. go/pkg/trivysidecar/envelope.go
✨ Enhancement+164/-06. go/pkg/trivysidecar/kinds.go
✨ Enhancement+102/-07. go/pkg/trivysidecar/service_test.go
🧪 Tests+101/-08. go/pkg/trivysidecar/publisher_integration_test.go
🧪 Tests+105/-09. go/pkg/trivysidecar/health.go
✨ Enhancement+92/-010. go/pkg/trivysidecar/envelope_test.go
🧪 Tests+69/-011. go/pkg/trivysidecar/runtime.go
✨ Enhancement+89/-012. go/cmd/tools/trivy-sidecar/main.go
✨ Enhancement+39/-013. go/pkg/trivysidecar/deduper.go
✨ Enhancement+31/-014. go/pkg/trivysidecar/kinds_test.go
🧪 Tests+12/-015. go/pkg/trivysidecar/utils.go
Miscellaneous+13/-016. go.sum
Dependencies+96/-117. k8s/demo/base/serviceradar-trivy-sidecar.yaml
⚙️ Configuration changes+156/-018. docs/docs/trivy-integration.md
📝 Documentation+135/-019. openspec/changes/add-trivy-operator-nats-sidecar/design.md
📝 Documentation+100/-020. openspec/changes/add-trivy-operator-nats-sidecar/specs/trivy-nats-ingestion/spec.md
📝 Documentation+83/-021. go.mod
Dependencies+30/-022. docs/sidebars.ts
📝 Documentation+1/-023. openspec/changes/add-trivy-operator-nats-sidecar/proposal.md
📝 Documentation+40/-024. openspec/changes/add-trivy-operator-nats-sidecar/tasks.md
📝 Documentation+33/-0Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2988#issuecomment-3992267565
Original created: 2026-03-03T16:44:58Z
Code Review by Qodo
🐞 Bugs (5)📘 Rule violations (1)📎 Requirement gaps (0)1. MODULE.bazel missing k8s repos
📘 Rule violation⛯ Reliability2. Broken doc link path
🐞 Bug✓ Correctness3. Readiness before informer sync
🐞 Bug⛯ Reliability4. managedFields not removed
🐞 Bug➹ Performance5. Deduper grows unbounded
🐞 Bug⛯ Reliability6.
Stream config unused☑🐞 Bug✓ CorrectnessImported GitHub PR review comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2988#discussion_r2879381746
Original created: 2026-03-03T16:49:13Z
Original path: go.mod
Original line: 42
1. module.bazel missing k8s repos
📘 Rule violation⛯ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsImported GitHub PR review comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2988#discussion_r2879381750
Original created: 2026-03-03T16:49:13Z
Original path: docs/docs/trivy-integration.md
Original line: 38
2. Broken doc link path
🐞 Bug✓ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsImported GitHub PR review comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2988#discussion_r2879381752
Original created: 2026-03-03T16:49:13Z
Original path: go/pkg/trivysidecar/service.go
Original line: 69
3. Readiness before informer sync
🐞 Bug⛯ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools