From 969c93b1c61d2d50d50ced131b5502e16ff9d437 Mon Sep 17 00:00:00 2001 From: Dmitry Kropachev Date: Tue, 13 Aug 2024 06:17:04 -0400 Subject: [PATCH] Temporary disable AES256ColumnEncryptionPolicy There was some seriouse issues in policy implementation in `3.27.0`. We want to inspect the feature before making it available. --- cassandra/column_encryption/_policies.py | 1 + tests/integration/standard/column_encryption/test_policies.py | 1 + tests/unit/column_encryption/test_policies.py | 1 + 3 files changed, 3 insertions(+) diff --git a/cassandra/column_encryption/_policies.py b/cassandra/column_encryption/_policies.py index ef8097bfbd..9f1b30b8fd 100644 --- a/cassandra/column_encryption/_policies.py +++ b/cassandra/column_encryption/_policies.py @@ -45,6 +45,7 @@ class AES256ColumnEncryptionPolicy(ColumnEncryptionPolicy): # preserved or else you will not be able to decrypt any data encrypted by this # policy. def __init__(self, iv=None): + raise Exception("AES256ColumnEncryptionPolicy is temporary disabled, until https://github.com/scylladb/python-driver/issues/365 is sorted out") # CBC uses an IV that's the same size as the block size # diff --git a/tests/integration/standard/column_encryption/test_policies.py b/tests/integration/standard/column_encryption/test_policies.py index dea6b6d39e..8af27ab87a 100644 --- a/tests/integration/standard/column_encryption/test_policies.py +++ b/tests/integration/standard/column_encryption/test_policies.py @@ -25,6 +25,7 @@ def setup_module(): use_singledc() +@unittest.skip("Skip until https://github.com/scylladb/python-driver/issues/365 is sorted out") class ColumnEncryptionPolicyTest(unittest.TestCase): def _recreate_keyspace(self, session): diff --git a/tests/unit/column_encryption/test_policies.py b/tests/unit/column_encryption/test_policies.py index 38136c69d4..27e7c62ce7 100644 --- a/tests/unit/column_encryption/test_policies.py +++ b/tests/unit/column_encryption/test_policies.py @@ -19,6 +19,7 @@ from cassandra.column_encryption.policies import AES256ColumnEncryptionPolicy, \ AES256_BLOCK_SIZE_BYTES, AES256_KEY_SIZE_BYTES +@unittest.skip("Skip until https://github.com/scylladb/python-driver/issues/365 is sorted out") class AES256ColumnEncryptionPolicyTest(unittest.TestCase): def _random_block(self):