Skip to content

fix(event proto): reject malformed internal protobuf instead of panicking - #26292

Open
bruceg wants to merge 5 commits into
masterfrom
bruceg/fallible-event-proto-decode
Open

fix(event proto): reject malformed internal protobuf instead of panicking#26292
bruceg wants to merge 5 commits into
masterfrom
bruceg/fallible-event-proto-decode

Conversation

@bruceg

@bruceg bruceg commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

Decode Vector's native event protobuf through TryFrom so a missing oneof or NaN float drops the record with error telemetry rather than crashing the source, tap, or disk-buffer reader.

References

Vector configuration

N/A

How did you test this PR?

Unit tests included

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

Contributor Guidelines

  • Please read our Vector contributor resources.
  • Do not hesitate to use @vectordotdev/vector to reach out to us regarding this PR.
  • Before pushing, follow our pre-push guidance.
  • After a review is requested, please avoid force pushes to help us review incrementally.
    • Feel free to push as many commits as you want. They will be squashed into one before merging.
    • For example, you can run git merge origin master and git push.

…king

Decode Vector's native event protobuf through `TryFrom` so a missing `oneof` or
NaN float drops the record with error telemetry rather than crashing the source,
tap, or disk-buffer reader.
@bruceg
bruceg requested a review from a team as a code owner September 3, 2026 02:13
@bruceg bruceg added domain: buffers Anything related to Vector's memory/disk buffers sink: vector Anything `vector` sink related source: vector Anything `vector` source related type: bug A bug fix labels Sep 3, 2026
@github-actions github-actions Bot added domain: sources Anything related to the Vector's sources domain: sinks Anything related to the Vector's sinks domain: core Anything related to core crates i.e. vector-core, core-common, etc labels Sep 3, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T22:03:44.422950Z 665cfa0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b2ca337e6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/vector-core/src/event/proto.rs Outdated
Comment thread src/sources/vector/mod.rs Outdated
Comment thread lib/vector-core/src/event/proto.rs
@bruceg
bruceg requested review from pront and tessneau September 3, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: buffers Anything related to Vector's memory/disk buffers domain: core Anything related to core crates i.e. vector-core, core-common, etc domain: sinks Anything related to the Vector's sinks domain: sources Anything related to the Vector's sources sink: vector Anything `vector` sink related source: vector Anything `vector` source related type: bug A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants