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 Nov 18, 2024
1 parent 1c5edd7 commit 569271f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 113 deletions.
2 changes: 2 additions & 0 deletions cassandra/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2696,6 +2696,8 @@ def __init__(self, cluster, hosts, keyspace=None):
{"column_encryption_policy": self.cluster.column_encryption_policy})
except AttributeError:
log.info("Unable to set column encryption policy for session")
raise Exception(
"column_encryption_policy is temporary disabled, until https://github.com/scylladb/python-driver/issues/365 is sorted out")

if self.cluster.monitor_reporting_enabled:
cc_host = self.cluster.get_control_connection_host()
Expand Down
109 changes: 0 additions & 109 deletions docs/column_encryption.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ Contents
:doc:`scylla-cloud-serverless`
Connect to ScyllaDB Cloud Serverless

:doc:`column_encryption`
Transparent client-side per-column encryption and decryption

:doc:`faq`
A collection of Frequently Asked Questions

Expand All @@ -83,7 +80,6 @@ Contents
dates-and-times
scylla-cloud
scylla-cloud-serverless
column-encryption
faq

Getting Help
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 569271f

Please sign in to comment.