-
Notifications
You must be signed in to change notification settings - Fork 620
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
[Pending manual FIPS testing] Fix ECR Client Migration to V2 #4550
base: dev
Are you sure you want to change the base?
Conversation
8cf4edb
to
d672034
Compare
) | ||
|
||
const httpsPrefix = "https://" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Do we also need to consider http
as well?
Looks like in AWS SDK Go V1, it takes that into consideration when appending the prefixes -> https://github.com/aws/aws-sdk-go/blob/8d203ccff393340d080be0417d091cc60354449b/aws/endpoints/endpoints.go#L324-L339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we don't need to consider http
.
We currently (in v1) do not instantiate a new client with Config.DisableSSL
set to true
. This flag is passed to AddScheme
to determine whether the HTTP or HTTPS schemes should be added.
In short, we only prepend https
prefix, if it's needed.
d672034
to
8f62fed
Compare
48399a7
to
5fd8b89
Compare
Summary
A fix on PR #4512 by adding HTTPS prefix.
Implementation details
HTTPS/HTTP prefix is automatically added to
endpoint
in sdk v1 but not in v2.Adding HTTPS prefix to endpoint override if it's not already so.
Testing
New tests cover the changes: no, but adapting the existing test.
Description for the changelog
Additional Information
Does this PR include breaking model changes? If so, Have you added transformation functions?
Does this PR include the addition of new environment variables in the README?
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.