Skip to content

Vortex, Spark: Support Iceberg table encryption - #51

Draft
robert3005 wants to merge 1 commit into
mainfrom
rk/vortex-encryption
Draft

robert3005 wants to merge 1 commit into
mainfrom
rk/vortex-encryption

Conversation

@robert3005

Copy link
Copy Markdown

Vortex data and delete files could not be written to or read from encrypted Iceberg tables, nor inspected by RepairTable metrics repair. Wire Iceberg's per-file NativeEncryptionOutputFile and NativeEncryptionInputFile keys and AAD prefixes into Vortex's native segment-level AES-GCM encryption across writes, scans, split planning, metadata reads, and footer metrics extraction, while recording PositionOutputStream.storedLength() so AesGcmOutputFile stream encryption also reports physical ciphertext sizes. Enable Vortex file metrics in RepairMetrics across Spark 3.5–4.2, preserving exact single-file position delete path bounds when Vortex's footer widens long string bounds. Draft until vortex-data/vortex PRs apache#10968, apache#11257, apache#11258, and apache#11259 merge and release vortex-jni (0.95.0-213-gd8e461c is local).

Test plan:

  • Verify native AES-128/192/256 + AAD prefix round-trip, key/AAD rejection, field-id schema evolution, footer metrics parity, and AesGcmOutputFile stream fallback in iceberg-vortex.
  • Enable Vortex native and stream encryption in FormatModel tests and parameterize TestGenericReaderEncryption over Parquet and Vortex with encrypted equality deletes and DVs.
  • Verify Spark 3.5–4.2 SQL reads/writes, deletes, CTAS, RewriteManifests, RepairTable metrics repair, and keyless file-read rejection on encrypted Vortex tables.

AI Disclosure

  • Model: Gemini 3.1 Pro (Antigravity)
  • Platform/Tool: Antigravity CLI
  • Human Oversight: unreviewed (all Vortex encryption wiring, footer metrics support, Spark RepairMetrics integration, and tests were generated by the agent)
  • Prompt Summary: Integrate Vortex with Iceberg table encryption across iceberg-vortex, iceberg-data, and Spark 3.5–4.2 including RepairTable metrics support

Support native per-file AES-GCM encryption and AAD prefixes as well as AES-GCM stream encryption for Vortex data and delete files, and support Vortex footer metrics in Spark RepairTable across Spark 3.5–4.2.

Generated-by: Antigravity

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant