Skip to content

Commit a6283fd

Browse files
committed
Disable privacy preference encryption
1 parent cfbf98a commit a6283fd

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/fides/api/models/v3/privacy_preferences.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@
1111
)
1212
from sqlalchemy.dialects.postgresql import JSONB
1313
from sqlalchemy.ext.declarative import declared_attr
14-
from sqlalchemy_utils.types.encrypted.encrypted_type import (
15-
AesGcmEngine,
16-
StringEncryptedType,
17-
)
1814

1915
from fides.api.cryptography.cryptographic_util import hash_value_with_salt
2016
from fides.api.cryptography.identity_salt import get_identity_salt
2117
from fides.api.db.base_class import Base
2218
from fides.api.schemas.redis_cache import MultiValue
23-
from fides.config import CONFIG
2419

2520

2621
class 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(

0 commit comments

Comments
 (0)