Skip to content

CAS: Reject content part writes through encrypted CAS disks - #2773

Merged
filimonov merged 2 commits into
antalya-26.8from
cas/reject-encrypted-part-writes
Nov 5, 2026
Merged

filimonov merged 2 commits into
antalya-26.8from
cas/reject-encrypted-part-writes

Conversation

@k-morozov

@k-morozov k-morozov commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

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
k-morozov marked this pull request as ready for review November 4, 2026 12:34
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [307f553]

@filimonov
filimonov merged commit 95544a2 into antalya-26.8 Nov 5, 2026
348 of 361 checks passed
@DimensionWieldr

Copy link
Copy Markdown
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

  • No PR-caused failures

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.

4 participants