Skip to content

Harden CDC permissions, transactional ACLs, recovery, replication, and group/storage safety - #37

Open
RayElg wants to merge 2 commits into
mainfrom
hardening-safety-security
Open

RayElg wants to merge 2 commits into
mainfrom
hardening-safety-security

Conversation

@RayElg

@RayElg RayElg commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Hardening across CDC permissions, transactional ACLs, crash recovery, replication, and group/storage safety.

  • CDC: mappings record their owner and render as that owner. Only the owner can change or snapshot a mapping.
  • Transactional ACLs: these follow Kafka.
    • Transactional requests check WRITE on TRANSACTIONAL_ID, plus group and topic READ where Kafka checks them.
    • FindCoordinator for a transaction checks DESCRIBE.
    • AddPartitionsToTxn fails as a whole when any topic is denied.
  • Recovery: after the leader-epoch raise, startup repairs abort markers and abort-index rows lost to a crash. It also clamps share-group offsets to the recovered end.
  • Transactions: stale transactions expire on their own timer. A producer at the epoch ceiling moves to a new producer id.
  • Storage:
    • Fetch always makes progress when the aborted-transaction list is cut short.
    • ListOffsets by timestamp respects the log start.
    • Segment drops wait for commit.
    • Recovery trims the index along with the log.
  • Replication: a rejoined old primary truncates its divergent tail. Replicated batches are refused once the node has left recovery.
  • Groups: DeleteGroups covers share groups and consumer groups that use the new KIP-848 protocol.

Known gap: when no topic is denied, AddPartitionsToTxn still skips unknown partitions instead of failing the request as Kafka does. This is left for a follow-up.

Restores decompression in the timestamp lookup and keeps the first batch past the
abort-list cap (CI). Moves the new test file where CI collects it. Narrows the
open-transaction re-stamp to batches that lost their window row, guards the
reconstructed abort ranges, and reconciles after the epoch raise commits (I5).
Drops the inline marker fsync from EndTxn and expiry (I7). AddPartitionsToTxn
fails whole on a denied topic and TxnOffsetCommit checks topic READ (I6).
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.

1 participant