Skip to content

feat(js-sdk): integrate AWS Comprehend utility to detect and redact PII data (#290) - #756

Closed
thinhnx128 wants to merge 1 commit into
arakoodev:tsfrom
thinhnx128:feat/aws-comprehend-pii-redaction-290
Closed

thinhnx128 wants to merge 1 commit into
arakoodev:tsfrom
thinhnx128:feat/aws-comprehend-pii-redaction-290

Conversation

@thinhnx128

Copy link
Copy Markdown

Summary

Implements AwsComprehendClient in the EdgeChains TypeScript/JavaScript SDK (JS/edgechains/lib/src/lib/clients/AwsComprehendClient.ts) to detect and redact sensitive PII data using AWS Comprehend (#290):

  • AWS Comprehend Integration (Comprehend_20171127.DetectPiiEntities):
    • Zero-dependency AWS Signature V4 signing (buildSigV4Headers) for https://comprehend.<region>.amazonaws.com/.
    • Configurable region, languageCode, minConfidence, maskMode ("REPLACE_WITH_PII_ENTITY_TYPE" or "MASK"), and maskCharacter.
    • Built-in deterministic fallback PII detection (EMAIL, SSN, PHONE, AWS_ACCESS_KEY, IP_ADDRESS) for offline/local test environments.
  • Unit Tests:
    • Added JS/edgechains/lib/src/lib/clients/__tests__/AwsComprehendClient.test.ts covering label replacement, character masking, selective entity filtering, and AWS SigV4 header signing.

Closes #290
/claim #290

@thinhnx128

Copy link
Copy Markdown
Author

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

@thinhnx128

Copy link
Copy Markdown
Author

Closing this to reduce review load — it wasn't requested by the maintainers. Thanks for your time; happy to reopen if it's useful.

@thinhnx128 thinhnx128 closed this Nov 12, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 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