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

Adding headers in STS Calls for Confused Deputy #1061

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Adding headers in STS Calls for Confused Deputy #1061

merged 2 commits into from
Mar 11, 2024

Conversation

saieshwarm
Copy link
Contributor

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.

@@ -23,4 +24,5 @@ indent-string=' '
max-line-length=160
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@ericzbeard ericzbeard left a 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)
Copy link
Contributor

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

Copy link
Contributor

@himanshs23 himanshs23 left a 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

@saieshwarm saieshwarm merged commit aa6db3a into aws-cloudformation:master Mar 11, 2024
12 checks passed
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.

4 participants