Skip to content

CAS: Reject encrypted disks wrapping a content-addressed disk at creation - #2982

Open
lizardoluis wants to merge 1 commit into
antalya-26.6from
lizardo/encrypted-cas-create-reject
Open

lizardoluis wants to merge 1 commit into
antalya-26.6from
lizardo/encrypted-cas-create-reject

Conversation

@lizardoluis

@lizardoluis lizardoluis commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

An encrypted disk wrapping a metadata_type = cas disk was accepted by CREATE TABLE and only failed on the first INSERT. It is now rejected with NOT_IMPLEMENTED when the disk is created. The integration test test_cas_encrypted_disk checks that CREATE TABLE on an inline encrypted over cas disk fails. The XML encrypted CAS disk and policy were removed from its config, since they would now fail at server start.

Closes: #2213

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

An encrypted disk wrapping a content-addressed (CAS) disk is now rejected when the disk is created, instead of failing on the first INSERT.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

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)

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [80ecf1e]

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the change to reject encrypted-over-CAS disks at creation time.

No open issues 🎉

What changed in this PR

This PR moves rejection of unsupported encrypted disks wrapping content-addressed (CAS) disks from the first INSERT to disk creation, addressing issue #2213.

Changes:

  • Reject the unsupported composition with NOT_IMPLEMENTED and recommend object-store server-side encryption.
  • Update the integration test to verify that inline disk creation fails and leaves no table; remove the now-invalid XML disk and policy.
  • Update the CAS roadmap to describe the earlier rejection.
File Description
tests/​integration/​test_cas_encrypted_disk/​test.py Verify rejection during CREATE TABLE and absence of the table afterward.
tests/​integration/​test_cas_encrypted_disk/​configs/​storage.xml Remove the encrypted CAS disk and policy that would prevent startup.
src/​Disks/​DiskEncrypted.cpp Reject content-addressed wrapped disks during configuration validation.
docs/​en/​antalya/​cas/​roadmap.md Document rejection at disk creation rather than first insert.

Review effort: Balanced

…eation

An `encrypted` disk over a `metadata_type = cas` disk was accepted by
`CREATE TABLE` and only failed on the first `INSERT`. Throw `NOT_IMPLEMENTED`
from `getDiskAndPathFromConfig` when the wrapped disk is content-addressed, so
the combination is refused when the disk is created.

Replace the `INSERT`-time integration test with one that checks `CREATE TABLE`
on an inline `encrypted` over `cas` disk is rejected, and drop the XML
encrypted CAS disk and policy, which would now fail at server start.

Signed-off-by: Luís Lizardo <[email protected]>
@k-morozov

Copy link
Copy Markdown
Collaborator

Related: #2773

@k-morozov

k-morozov commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Regression CI jobs were run: CAS (content-addressed storage; Antalya only)

@lizardoluis
lizardoluis marked this pull request as ready for review December 1, 2026 14:04
@lizardoluis
lizardoluis requested a review from filimonov December 1, 2026 15:14

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.

CAS: type=encrypted wrapping a CAS disk — CREATE succeeds, INSERT fails with Autocommit writes are not supported

3 participants