Internship - Secrets & PII Obfuscation
Explanation
For the second project of my internship, my goal was to create a Lambda function that detects secrets and PII (Personal Identifiable Information) in a given string of text to avoid leaks to an external API. After a potential secret or PII is detected, it is replaced with a placeholder to hide the original value.
The company wanted to create a chatbot in Slack that works with OpenAIs API. In order to prevent leaks of sensitive information to the API, I designed this Lambda function to be used as a middleware for the chatbot.
To create the function, I used AWS SAM to easily deploy and make changes to the project. It runs Python code and I wrote my own class to filter PII.
View the full documentation here
Key techologies:
- Lambda function
- AWS SAM
- Python
- detect-secrets Python module
Applied skills:
- Working autonomous
- Learning new technologies
- Communication in English
![test-event](https://milansterkens.com/wp-content/uploads/2023/05/testevent-1-768x285.png)
![event-response](https://milansterkens.com/wp-content/uploads/2023/05/function_execution-1-768x297.png)
Previous image
Next image