Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Custom CA Bundle configuration #122

Merged
merged 5 commits into from
Feb 17, 2022
Merged

Add Custom CA Bundle configuration #122

merged 5 commits into from
Feb 17, 2022

Conversation

gdavison
Copy link
Contributor

@gdavison gdavison commented Feb 17, 2022

Adds CustomCABundle configuration parameter and adds tests for configuring with environment variable.

The AWS SDK v1 shim now creates its own HTTP client with equivalent configuration, since wrappers used in the V2 client cause an error.

Closes #119
Relates hashicorp/terraform-provider-aws#23224

@gdavison gdavison requested a review from a team as a code owner February 17, 2022 00:22
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% make test
go test -timeout=30s -parallel=4 ./...
ok  	github.com/hashicorp/aws-sdk-go-base/v2	2.681s
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/awsconfig	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/config	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/constants	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/endpoints	[no test files]
ok  	github.com/hashicorp/aws-sdk-go-base/v2/internal/expand	1.381s
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/test	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/mockdata	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/servicemocks	[no test files]
cd v2/awsv1shim && go test -timeout=30s -parallel=4 ./...
ok  	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2	1.721s
?   	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/mockdata	[no test files]
ok  	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/tfawserr	(cached)

@gdavison gdavison merged commit ec08b43 into main Feb 17, 2022
@gdavison gdavison deleted the custom-ca-bundle branch February 17, 2022 19:03
gdavison added a commit that referenced this pull request Feb 17, 2022
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.

Support setting Custom CA Bundle directly
2 participants