Skip to content

Migrate from AWS SDK v2 to v3 - #163

Open
epankaj1 wants to merge 1 commit into
codeceptjs:masterfrom
epankaj1:fix/aws-sdk-v3
Open

Migrate from AWS SDK v2 to v3#163
epankaj1 wants to merge 1 commit into
codeceptjs:masterfrom
epankaj1:fix/aws-sdk-v3

Conversation

@epankaj1

Copy link
Copy Markdown

Summary

Migrate codeceptjs-resemblehelper from AWS SDK v2 to AWS SDK v3.

This addresses the AWS SDK v2 security vulnerability GHSA-j965-2qgj-vjmq.

Changes

  • Removed aws-sdk v2 dependency
  • Added @aws-sdk/client-s3 v3
  • Migrated S3 uploads to PutObjectCommand
  • Migrated S3 downloads to GetObjectCommand
  • Updated S3 response handling for AWS SDK v3
  • Preserved existing S3 bucket/key structure and behavior

Validation

  • npm run build — passed
  • npm test — 7/7 tests passed
  • npm ls aws-sdk --all — no AWS SDK v2 dependency
  • npm ls @aws-sdk/client-s3 — 3.1111.0
  • git diff --check — passed

Security

Removes the AWS SDK v2 dependency associated with:

GHSA-j965-2qgj-vjmq

The remaining npm audit findings are related to existing
image-size and Resemble.js/canvas dependency chains and are
outside the scope of this AWS SDK migration.

@epankaj1 epankaj1 left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good to Me. Approved

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.

1 participant