Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions src/fides/api/models/v3/privacy_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@
)
from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy_utils.types.encrypted.encrypted_type import (
AesGcmEngine,
StringEncryptedType,
)

from fides.api.cryptography.cryptographic_util import hash_value_with_salt
from fides.api.cryptography.identity_salt import get_identity_salt
from fides.api.db.base_class import Base
from fides.api.schemas.redis_cache import MultiValue
from fides.config import CONFIG


class PrivacyPreferences(Base):
Expand All @@ -47,16 +42,8 @@ def __tablename__(self) -> str:
# Searchable/queryable data stored as JSONB
search_data = Column(JSONB, nullable=True)

# Full record data stored as encrypted text (contains PII)
record_data = Column(
StringEncryptedType(
type_in=Text(),
key=CONFIG.security.app_encryption_key,
engine=AesGcmEngine,
padding="pkcs5",
),
nullable=True,
)
# Full record data stored as text (contains PII)
record_data = Column(Text, nullable=True)

# Partition key - determines if record goes to _current or _historic partition
is_latest = Column(
Expand Down
Loading