Skip to content

Add AWS Comprehend PII redaction support#598

Open
alejandrorivas-pixel wants to merge 2 commits into
arakoodev:tsfrom
alejandrorivas-pixel:codex/aws-comprehend-pii-redaction
Open

Add AWS Comprehend PII redaction support#598
alejandrorivas-pixel wants to merge 2 commits into
arakoodev:tsfrom
alejandrorivas-pixel:codex/aws-comprehend-pii-redaction

Conversation

@alejandrorivas-pixel

@alejandrorivas-pixel alejandrorivas-pixel commented Jun 4, 2026

Copy link
Copy Markdown

Summary

  • add an AWSComprehend utility to @arakoodev/edgechains.js/ai using the official AWS Comprehend client
  • support PII detection, score/entity filtering, custom redaction replacements, containsPii(), and redactPrompt()
  • add redactPromptOptions() and asPromptMiddleware() so prompt/message options can be redacted before existing endpoint calls
  • keep ComprehendPIIRedactor as a compatibility alias
  • add Vitest coverage for default redaction, filtered custom replacement behavior, prompt-option redaction, and the alias
  • add an aws-comprehend-redaction Jsonnet example with prompt/config outside TypeScript

/claim #290

Closes #290.

Validation

  • npx vitest run src/ai/src/tests/comprehendPIIRedactor.test.ts
  • npm run build in JS/edgechains/arakoodev
  • npm run build in JS/edgechains/examples/aws-comprehend-redaction after building the local package

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Before we can accept your contribution, we ask that you sign the Arakoo Contributor License Agreement. You can sign the CLA by adding a new comment to this pull request and pasting exactly the following text.


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


You can retrigger this bot by commenting recheck in this Pull Request

Copy link
Copy Markdown
Author

/claim #290

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BOUNTY: integrate AWS Comprehend as a utility to redact data

2 participants