Skip to content

fix: Migrate from deprecated dependencies (AWS SDK v1, ioutil)#163

Open
adiyaar24 wants to merge 3 commits intodrone-plugins:masterfrom
adiyaar24:fix/update-deprecated-dependencies
Open

fix: Migrate from deprecated dependencies (AWS SDK v1, ioutil)#163
adiyaar24 wants to merge 3 commits intodrone-plugins:masterfrom
adiyaar24:fix/update-deprecated-dependencies

Conversation

@adiyaar24
Copy link

Summary

This PR migrates the codebase from deprecated dependencies to their modern equivalents.

Changes

🔴 Critical - AWS SDK Go v1 → v2

  • AWS SDK Go v1 is in maintenance mode and ends support on 2025-07-31
  • Migrated all S3 operations to use aws-sdk-go-v2
  • Updated credential handling to use v2 patterns
  • Updated STS and assume role logic

🟡 Medium - Deprecated Packages

  • Replaced io/ioutil with os and io packages (deprecated since Go 1.16)
    • ioutil.ReadFileos.ReadFile
    • ioutil.WriteFileos.WriteFile
    • ioutil.ReadAllio.ReadAll
    • ioutil.TempFileos.CreateTemp
    • ioutil.TempDiros.MkdirTemp

🔵 Other

  • Updated Go version in go.mod
  • Updated go.sum with new dependencies

Testing

  • ✅ Code compiles successfully
  • ✅ Unit tests pass

Related Issues


This PR was generated as part of a security audit to identify and fix EOL dependencies.

- Migrate AWS SDK Go v1 to v2
- Replace deprecated io/ioutil with os and io packages
- Update Go version to 1.23+
- Update go.mod dependencies

This addresses:
- AWS SDK Go v1 maintenance mode ending 2025-07-31
- Deprecated ioutil package (deprecated since Go 1.16)
- Various other deprecated packages

Signed-off-by: Aditya Kashyap <aditya@security-fix.dev>
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