Skip to content

fix(connlib): don't attempt to encrypt too large packets#7263

Merged
thomaseizinger merged 3 commits into
mainfrom
fix/no-panic-too-large-packets
Nov 5, 2024
Merged

fix(connlib): don't attempt to encrypt too large packets#7263
thomaseizinger merged 3 commits into
mainfrom
fix/no-panic-too-large-packets

Conversation

@thomaseizinger

@thomaseizinger thomaseizinger commented Nov 5, 2024

Copy link
Copy Markdown
Member

When encrypting packets, we need to reserve a buffer within which boringtun will encrypt the IP packet. Unfortunately, boringtun panics if that buffer is not big enough which essentially brings all of connlib down.

Really, we should never see a packet that is too large and ideally, we enforce this at compile-time by creating different variants of IpPacket that are sized accordingly. That is a large refactoring so until then, we simply discard them instead of panicking.

@vercel

vercel Bot commented Nov 5, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 4:04am

Comment thread website/src/components/Changelog/Android.tsx Outdated
Comment thread website/src/components/Changelog/Apple.tsx Outdated
Comment thread website/src/components/Changelog/GUI.tsx Outdated
Comment thread website/src/components/Changelog/Gateway.tsx Outdated
Comment thread website/src/components/Changelog/Headless.tsx Outdated
@jamilbk jamilbk disabled auto-merge November 5, 2024 03:36
Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
Signed-off-by: Thomas Eizinger <thomas@eizinger.io>
@thomaseizinger thomaseizinger added this pull request to the merge queue Nov 5, 2024
Merged via the queue into main with commit 271c480 Nov 5, 2024
@thomaseizinger thomaseizinger deleted the fix/no-panic-too-large-packets branch November 5, 2024 04:32
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