Repository navigation
feat(services): store raw packets in plaintext in iceberg tables - #134
Merged
Merged
Conversation
Iceberg raw rows hold the packet payload as the plugin sent it, in plaintext, together with the pseudonymous player key and the client protocol version of the session. In this layout raw packets are kept permanently (decision of 2026-11-18). The Parquet layout keeps its encrypted, short-retention raw table and its crypto-shredding. - capture.raw is layout version 2: session_id, segment, seq, offset_nanos, direction, state, packet_type, wire_packet_id, protocol_version, player_key, payload_original_size, payload, date. A version 1 table is refused at start-up with a clear message. - capture.events gains player_key (Iceberg only), so every table can be erased per player. - Iceberg ingest neither reads nor unwraps player DEKs. Parquet ingest is unchanged, and the Parquet encoder refuses the Iceberg layout, so plaintext cannot reach a Parquet file. - Orphan sessions (no SessionStart) have a null player_key and protocol_version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raw packets in the Iceberg lake are now stored as plaintext, not encrypted per player. Until now every raw payload
was encrypted with a key that is deleted when a player asks for erasure, so an erasure made the old payloads
unreadable. The Iceberg lake is meant to keep raw packets permanently, which only works if its contents are
reviewed as personal data rather than shredded. The decision behind this is the maintainers' (2026-11-18). This PR
implements it for the Iceberg format only.
capture.rawin Iceberg holds the payload exactly as the plugin sent it, plus the pseudonymous player key and theclient protocol version of the session. Version 2 of the layout; a version 1 table is refused at start-up with a
message that says to drop it (no such table exists in production yet).
capture.eventsgets the player key too, so a later erasure can delete a player's rows in both tables.refuses the plaintext layout, so the two cannot mix by accident.
Not in this PR
documented in
docs/pilot.md. Ingest stores what the plugin sends and filters nothing more.Layout and the privacy notes are in
docs/reference/data-lake.mdsection 2a.Testing
with their columns, player key and protocol version on both tables, orphan frames without them, no key lookup in
Iceberg mode, erased players not written, the Parquet encoder refusing the plaintext layout, and the Parquet
layout still encrypted.