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

feat(assume-role): Properly handle External ID variable #1128

Merged
merged 1 commit into from May 5, 2022
Merged

feat(assume-role): Properly handle External ID variable #1128

merged 1 commit into from May 5, 2022

Conversation

chrisdlangton
Copy link
Contributor

Context

3.0-dev branch has an alternative patch

for master branch, the external id is simply broken. this quick change of 2 characters keeps all existing code as-is and ensure the master branch functions as was always intended

Description

The fix is that the --external-id just needs to be an treated as argument, not a string literal as it currently is. The only way a literal can work is if the string is run through eval, which it isn't, and using eval for something easily avoided (as this PR shows) is not advisable

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chrisdlangton chrisdlangton requested a review from a team as a code owner May 5, 2022 06:05
@toniblyx toniblyx added status/waiting-for-revision Waiting for maintainer's revision severity/medium Results in some unexpected or undesired behavior. labels May 5, 2022
Copy link
Member

@jfagoagas jfagoagas left a comment

Choose a reason for hiding this comment

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

Good catch @chrisdlangton. Thank you very much for your contribution.

@jfagoagas jfagoagas changed the title patch assume role external id fix(assume-role): External ID variable May 5, 2022
@jfagoagas jfagoagas removed the status/waiting-for-revision Waiting for maintainer's revision label May 5, 2022
@jfagoagas jfagoagas self-assigned this May 5, 2022
@jfagoagas jfagoagas changed the title fix(assume-role): External ID variable feat(assume-role): Properly handle External ID variable May 5, 2022
@jfagoagas jfagoagas merged commit 4146566 into prowler-cloud:master May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/medium Results in some unexpected or undesired behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants