You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standalone function that takes a JSON Path and does an in-place editing to mask data using masking of my choice (e.g. ***, ###)
A more complex operation would be for data depersonalization where I'd want to encrypt and store the correct data somewhere, in which a separate actor would have permission to decrypt it.
Describe alternatives you've considered
Mask data on my own with a function that walks through a graph and recursively change it.
Use Amazon Comprehend Medical to detect PHI data, convert it to a str, and run a string replacement to mask any sensitive data encountered
Is this something you'd like to contribute if you had guidance?
Additional context
Reacted by Michael Brewer, Devendra Suthar, Michael Walmsley, Dani Comnea, deric4, Michael Warkentin, yu-havrylko, Russell Whelan, Tiago Oliveira, Leonard Zou and 1 more
I couldn't block time to speak to a few Security experts on the best way to do this. One thing I know for sure is that not only you want to mask data, but there are times you want to encrypt it from one party and decrypt only from another party -- it could be optional.
Recursion works, AST also works, JMESPath wouldn't work as you can't do an in-place edit nor know the nodes you travelled.
Let me ping some Security experts to get their opinion on it.
That's a similar UX we would be looking at. I've pinged two security experts I trust at AWS to help brainstorm this, but here's essentially the problem space we're looking at.
As a customer, I'd like to mask sensitive data my function is receiving so that downstream systems will not need any additional work on handling PII data.
As a customer, I'd like to recover sensitive data masked into its original form so that I can handle sensitive requests around that data on a as-needed basis.
We can handle 1 without any tokenization process, however if we ever want to support 2 we would need tokenization to obfuscate and de-obfuscate data in separate operations, and the latter being done only by authorised personnel.
There could be simpler ways to do it without bringing a heavy dependency but given tokenisation is serious thing and must be uniquely random we need to be careful, hence some Security experts opinion first.... or else we might end up with 1 only that's similar to what you did @keithrozario
True, my understanding of tokenization is that it requires a store of data (unlike encryption). It'll be quite difficult to execute either tokenization or encryption without some external service providing that functionality.
Hi @faboulaye, please see #1076 for info on the current status of AWS Lambda Powertools for Python.
For the TypeScript version we have a similar feature request (#728) but at the moment we are focused on refining the experience for the core utilities (Logger, Tracer, Metrics) before considering new feature requests.
I have implemented this before in Java and my thoughts are not to mention path because it will be very messy for larger projects, just mentioned the fields which needs masking, my idea is:
Activity
michaelbrewer commentedon Jul 28, 2021
@heitorlessa - would you be able to help put more details on how this could be implemented? It might be something i can have a look into.
keithrozario commentedon Aug 11, 2021
My idea was something like this:
thoughts?
heitorlessa commentedon Aug 11, 2021
I couldn't block time to speak to a few Security experts on the best way to do this. One thing I know for sure is that not only you want to mask data, but there are times you want to encrypt it from one party and decrypt only from another party -- it could be optional.
Recursion works, AST also works, JMESPath wouldn't work as you can't do an in-place edit nor know the nodes you travelled.
Let me ping some Security experts to get their opinion on it.
heitorlessa commentedon Aug 11, 2021
That's a similar UX we would be looking at. I've pinged two security experts I trust at AWS to help brainstorm this, but here's essentially the problem space we're looking at.
We can handle 1 without any tokenization process, however if we ever want to support 2 we would need tokenization to obfuscate and de-obfuscate data in separate operations, and the latter being done only by authorised personnel.
There could be simpler ways to do it without bringing a heavy dependency but given tokenisation is serious thing and must be uniquely random we need to be careful, hence some Security experts opinion first.... or else we might end up with 1 only that's similar to what you did @keithrozario
keithrozario commentedon Aug 12, 2021
True, my understanding of tokenization is that it requires a store of data (unlike encryption). It'll be quite difficult to execute either tokenization or encryption without some external service providing that functionality.
michaelbrewer commentedon Dec 4, 2021
I might look a little more into this. Especially once we feel like the UX it there for this.
faboulaye commentedon Apr 21, 2022
Any update about this issue ?
dreamorosi commentedon Apr 21, 2022
Hi @faboulaye, please see #1076 for info on the current status of AWS Lambda Powertools for Python.
For the TypeScript version we have a similar feature request (#728) but at the moment we are focused on refining the experience for the core utilities (Logger, Tracer, Metrics) before considering new feature requests.
ammar-khan-cultureamp commentedon Jul 6, 2022
I have implemented this before in Java and my thoughts are not to mention path because it will be very messy for larger projects, just mentioned the fields which needs masking, my idea is:
8 remaining items
justinhauer commentedon Jul 31, 2023
@heitorlessa is still set to be added?
heitorlessa commentedon Jul 31, 2023
Yea @justinhauer - I had to prioritise supply chain security work so it slipped. I spoke with Seshu (author) last week, and I'm reviewing this week.
github-actions commentedon Sep 27, 2023
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.