File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change 1111)
1212from sqlalchemy .dialects .postgresql import JSONB
1313from sqlalchemy .ext .declarative import declared_attr
14- from sqlalchemy_utils .types .encrypted .encrypted_type import (
15- AesGcmEngine ,
16- StringEncryptedType ,
17- )
1814
1915from fides .api .cryptography .cryptographic_util import hash_value_with_salt
2016from fides .api .cryptography .identity_salt import get_identity_salt
2117from fides .api .db .base_class import Base
2218from fides .api .schemas .redis_cache import MultiValue
23- from fides .config import CONFIG
2419
2520
2621class PrivacyPreferences (Base ):
@@ -47,16 +42,8 @@ def __tablename__(self) -> str:
4742 # Searchable/queryable data stored as JSONB
4843 search_data = Column (JSONB , nullable = True )
4944
50- # Full record data stored as encrypted text (contains PII)
51- record_data = Column (
52- StringEncryptedType (
53- type_in = Text (),
54- key = CONFIG .security .app_encryption_key ,
55- engine = AesGcmEngine ,
56- padding = "pkcs5" ,
57- ),
58- nullable = True ,
59- )
45+ # Full record data stored as text (contains PII)
46+ record_data = Column (Text , nullable = True )
6047
6148 # Partition key - determines if record goes to _current or _historic partition
6249 is_latest = Column (
You can’t perform that action at this time.
0 commit comments