Skip to content

Migrate to AWS SDK v2#65

Open
phil9909 wants to merge 2 commits intoopenbao:mainfrom
adfinis-forks:migrate-aws-go-sdk-v2
Open

Migrate to AWS SDK v2#65
phil9909 wants to merge 2 commits intoopenbao:mainfrom
adfinis-forks:migrate-aws-go-sdk-v2

Conversation

@phil9909
Copy link
Contributor

In addition to running the acceptance tests, I also tested Decrypt of an value I encrypted with the code in main.

we have to create our own KMSAPI interface, because:

The *iface packages and interfaces therein (e.g. s3iface.S3API) have
been removed. These interface definitions are not stable since they
are broken every time a service adds a new operation.

Usage of *iface should be replaced by scoped caller-defined interfaces
for the service operations being used

https://docs.aws.amazon.com/sdk-for-go/v2/developer-guide/migrate-gosdk.html#mocking-and-iface

@phil9909 phil9909 force-pushed the migrate-aws-go-sdk-v2 branch 3 times, most recently from 6f22fc8 to df0643f Compare January 14, 2026 15:49
Copy link
Member

@satoqz satoqz left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Philipp Stehle <philipp.stehle@secretz.io>
This avoids awsutil trying to autodetect the region based on ec2 metadata
(which will fail, if you don't have proper AWS credentials configured)

Signed-off-by: Philipp Stehle <philipp.stehle@secretz.io>
@phil9909 phil9909 force-pushed the migrate-aws-go-sdk-v2 branch from df0643f to 61882b1 Compare February 18, 2026 09:54
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.

2 participants