Repository navigation
CAS: Reject encrypted disks wrapping a content-addressed disk at creation - #2982
Draft
lizardoluis wants to merge 1 commit into
Draft
lizardoluis wants to merge 1 commit into
lizardoluis wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 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_IMPLEMENTEDand 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 <luis.lizardo@enterprisedb.com>
lizardoluis
force-pushed
the
lizardo/encrypted-cas-create-reject
branch
from
December 1, 2026 13:05
f9b2050 to
80ecf1e
Compare
Collaborator
|
Related: #2773 |
This branch has not been deployed
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.
An
encrypteddisk wrapping ametadata_type = casdisk was accepted byCREATE TABLEand only failed on the firstINSERT. It is now rejected withNOT_IMPLEMENTEDwhen the disk is created. The integration testtest_cas_encrypted_diskchecks thatCREATE TABLEon an inlineencryptedovercasdisk 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):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
An
encrypteddisk wrapping a content-addressed (CAS) disk is now rejected when the disk is created, instead of failing on the firstINSERT.Documentation entry for user-facing changes
CI/CD Options
Exclude tests:
Regression jobs to run: