Repository navigation
CAS: Reject content part writes through encrypted CAS disks - #2773
Merged
Merged
Conversation
After the transaction changes, `DiskEncrypted` uses the underlying disk transaction, so CAS no longer rejects these writes through its autocommit restriction. Reject blob-backed part file writes explicitly in `DiskEncryptedTransaction::writeFileImpl`, while keeping metadata writes and real disk transactions. Add an integration test for `NOT_IMPLEMENTED` on the first `INSERT`, with controls for ordinary CAS and encrypted S3 disks. Context: https://gist.github.com/k-morozov/e07552a7d407d91883a7a6bc10d3a386 Related: ClickHouse#89658 Signed-off-by: Konstantin Morozov <[email protected]>
k-morozov
marked this pull request as ready for review
November 4, 2026 12:34
10 of 30 tasks
20 of 30 tasks
filimonov
approved these changes
Nov 5, 2026
This was referenced Nov 5, 2026
11 of 31 tasks
Collaborator
|
No CI fails caused by this PR. No AI audit defects found. Ran CAS checks: https://github.com/Altinity/clickhouse-regression/actions/runs/43384033929
|
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.
After the transaction changes,
DiskEncrypteduses the underlying disk transaction, so CAS no longer rejects these writes through its autocommit restriction. Reject blob-backed part file writes explicitly inDiskEncryptedTransaction::writeFileImpl, while keeping metadata writes and real disk transactions.Add an integration test for
NOT_IMPLEMENTEDon the firstINSERT, with controls for ordinary CAS and encrypted S3 disks.Context: https://gist.github.com/k-morozov/e07552a7d407d91883a7a6bc10d3a386
Related: ClickHouse#89658
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Restore the NOT_IMPLEMENTED error for INSERT into tables on encrypted content-addressed disks.
Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: