-
Notifications
You must be signed in to change notification settings - Fork 163
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
Adding headers in STS Calls for Confused Deputy #1061
Conversation
@@ -23,4 +24,5 @@ indent-string=' ' | |||
max-line-length=160 |
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.
Can we add an exception to just the one line if it's not possible to break it down? 160 is very long.
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.
This exception is from a different PR(PR No:663).
https://github.com/aws-cloudformation/cloudformation-cli/pull/663/files#diff-ba293004ae8f18975051e825bd8d5c70137a8b5d42d16e0f7c9354aa634c446c
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.
Looks good, just one question about pylintrc
params["headers"]["x-amz-source-arn"] = headers["source_arn"] | ||
|
||
sts_client.meta.events.register("before-call", inject_confused_deputy_headers) | ||
LOG.info(headers) |
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.
do we need to still log it
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.
Minor comment only, else looks good
Adding headers in STS Calls for Confused Deputy to accept account id and the source ARN
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.