Skip to content

Add AWS Comprehend PII redaction utility#458

Closed
l8888888 wants to merge 1 commit intoarakoodev:tsfrom
l8888888:bounty-290-comprehend-redaction
Closed

Add AWS Comprehend PII redaction utility#458
l8888888 wants to merge 1 commit intoarakoodev:tsfrom
l8888888:bounty-290-comprehend-redaction

Conversation

@l8888888
Copy link
Copy Markdown

Closes #290

Summary

  • Add ComprehendPiiRedactor to the JavaScript SDK AI exports.
  • Support direct string redaction, masking mode, custom placeholders, min confidence filtering, and wrapping existing chat() endpoints so prompts/messages are redacted before forwarding.
  • Add unit tests with a mocked Comprehend client and a working example under JS/edgechains/examples/comprehend-redaction.

Validation

  • npm test -- --run src/ai/src/lib/comprehend/comprehend-redactor.test.ts
  • npm run build

The example avoids real AWS calls by default and shows where to plug in an AWS Comprehend client.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@l8888888 l8888888 force-pushed the bounty-290-comprehend-redaction branch from 00f8f85 to de9ce48 Compare April 21, 2026 18:06
@l8888888
Copy link
Copy Markdown
Author

recheck

@l8888888
Copy link
Copy Markdown
Author

I have read the Arakoo CLA Document and I hereby sign the CLA

@l8888888
Copy link
Copy Markdown
Author

recheck

@l8888888
Copy link
Copy Markdown
Author

Closing this duplicate PR in favor of #459, which contains the more complete AWS Comprehend PII redaction implementation and demo details.

@l8888888
Copy link
Copy Markdown
Author

Superseded by #459.

@l8888888 l8888888 closed this Apr 22, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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