Time travel is not an escalation if masks apply to the old snapshot too
source: Apache Iceberg docs — Spark queries, time travel
Snapshot ids leaking to analysts sounds like a data breach in waiting: take an id, write SELECT email FROM customer_pii VERSION AS OF <id>, read the table as it was before the masking policy existed. I tested exactly that on the Kyuubi path, where the AuthZ plugin lets analysts read .snapshots.
It is not an escalation, for a reason that is obvious in hindsight: time travel changes which files are read, not which relation is authorised. The plan still resolves to silver.customer_pii, the Ranger row filter is still injected at analysis, the column masks still wrap the projection, and the privilege check still names the table. An analyst with no grant was denied on email at the old snapshot and got 0 for COUNT(*); a restricted analyst got the same masked e-mail and the same opted-in-only rows as on the current snapshot. Trino behaves the same way, and additionally hides the metadata tables so the ids are not discoverable there.
What time travel can expose is data that a policy change later restricted, if the old rows contain values the new mask would hide and the mask is value-based rather than column-based. Column masks and row filters are evaluated against the rows returned, whatever their age, so this only bites policies that depend on columns added after the snapshot.
The rule I took from it: when you assess a snapshot-id leak, ask what the engine authorises (the relation) rather than what it reads (the files). Then write the test that proves it, because the next engine version may not keep the invariant.