aws-powertools / powertools-lambda-python

A developer toolkit to implement Serverless best practices and increase developer velocity.
https://docs.powertools.aws.dev/lambda/python/latest/
MIT No Attribution
2.88k stars 397 forks source link

Feature request: Add support to mask/encrypt/decrypt Pydantic models, Dataclasses, and standard Python classes in the DataMasking utility #3473

Open leandrodamascena opened 11 months ago

leandrodamascena commented 11 months ago

Use case

Currently, the DataMasking utility only supports operations with traversable types in Python, for example: Lists, Dict, str, and others. It is a limitation for customers who want to integrate DataMasking utility with their existing Pydantic models, data classes, or standard Python classes.

Solution/User Experience

Add support for mask, encrypt and decrypt Pydantic models, Dataclasses, and standard Python classes.

Alternative solutions

No response

Acknowledgment

rubenfonseca commented 11 months ago

We've added this to our backlog, and we intend to work on this early next year.