Skip to content

Add AWS Comprehend PII redaction utility#465

Open
alceops wants to merge 1 commit intoarakoodev:tsfrom
alceops:alceops/aws-comprehend-redaction
Open

Add AWS Comprehend PII redaction utility#465
alceops wants to merge 1 commit intoarakoodev:tsfrom
alceops:alceops/aws-comprehend-redaction

Conversation

@alceops
Copy link
Copy Markdown

@alceops alceops commented Apr 25, 2026

Closes #290

Summary

  • add AwsComprehendRedactor utility for AWS Comprehend DetectPiiEntities
  • support AWS SDK v2-style detectPiiEntities() clients and SDK v3 send() clients via a command factory
  • add score/type filtering, custom replacement tokens, entity metadata return, README usage, and Jest coverage

Verification

  • npm run build
  • npx jest src/ai/src/tests/awsComprehendRedactor.test.ts --runInBand

@alceops
Copy link
Copy Markdown
Author

alceops commented Apr 26, 2026

Quick verification/update: this PR is still mergeable and the visible checks are green. Local verification from JS/edgechains/arakoodev was npm run build plus npx jest src/ai/src/tests/awsComprehendRedactor.test.ts --runInBand passing. If there are style/API-shape changes you want for the AWS Comprehend redactor before review, I can turn them around quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BOUNTY: integrate AWS Comprehend as a utility to redact data

1 participant