Skip to content

Commit

Permalink
Temporary disable AES256ColumnEncryptionPolicy
Browse files Browse the repository at this point in the history
There was some seriouse issues in policy implementation in `3.27.0`.
We want to inspect the feature before making it available.
  • Loading branch information
dkropachev committed Aug 13, 2024
1 parent df3e5be commit 969c93b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cassandra/column_encryption/_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions tests/unit/column_encryption/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 969c93b

Please sign in to comment.