Why is PII detection important?
- Data privacy and security: Detecting PII helps organizations protect sensitive information and comply with regulations such as GDPR and CCPA.
- Risk mitigation: Identifying and securing PII can prevent data breaches and other security incidents.
- Compliance: Many regulations require organizations to protect PII, and detection is the first step toward achieving compliance.
Truefoundry’s PII detection solutions
-
AWS Bedrock Guardrails
You can use the Bedrock integration on Truefoundry to achieve PII detection. A brief tutorial for setting this up is provided at the end of this page. -
Open-source Presidio
You can also implement PII detection using the custom guardrail integration option on Truefoundry Gateway. As a starting point, refer to the Truefoundry Guardrail Template Repository, which already includes PII redaction using Presidio. This template can be extended to suit your specific requirements. -
Guardrails.io
Similarly, Guardrails.io functionality can be achieved by building a custom guardrail using the same template repository. The template provides a foundation for integrating additional PII detection or redaction logic as needed.
Link to the Truefoundry Guardrail Template Repository
How to setup PII detection using Bedrock Guardrails on Truefoundry?
- Create guardrail on Bedrock, with sensitive information filter with Input & Ouput action as
Block

- Create a new or Add to an existing guardrail group on Truefoundry Gateway (AI Gateway -> Guardrails -> Add New Guardrail Group or Add/Edit Guardrails)
- Add bedrock guardrail and fill the details such as:
- Name
- GuardrailID
- Version
- Region
- Auth Data (AWS Access Key ID and Secret Access Key or ARN Based Credentials)
- Create a new or Edit existing guardrail configuration on Truefoundry Gateway (AI Gateway -> Config -> Guardrail -> Create/Edit)
- Test out the guardrail in playground (AI Gateway -> Playground)