Skip to content

Feature request: Expand DataMasking utility to encrypt list, set, and tuple data type for better user excperience #3532

Closed
@leandrodamascena

Description

@leandrodamascena

Use case

Currently, the DataMasking utility only supports dict and string fields. We need to add support for encrypt data in list, tuple and set fields.

Solution/User Experience

def lambda_handler(event, context):
    provider = AwsEncryptionSdkProvider(["aaaaa"])
    datamasking = DataMasking(provider=provider)

    data = {
        "payload": {"data": ["a", "b"]}    
	}

    encrypt = datamasking.encrypt(data, fields=["payload.data[0]"])

Alternative solutions

No response

Acknowledgment

Metadata

Metadata

Labels

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions