Conversation
|
CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to |
|
Additional criteria that were not reported by OSSF scorecard
|
Signed-off-by: Sunil Narasimhamurthy <sunnrs@amazon.com>
Signed-off-by: Sunil Narasimhamurthy <sunnrs@amazon.com>
phlax
left a comment
There was a problem hiding this comment.
@suniltheta no objections to adding this but would be good to hear from @htuch and @moderation
| envoy_cmake( | ||
| name = "pugixml", | ||
| cache_entries = { | ||
| "CMAKE_BUILD_TYPE": "Release", |
There was a problem hiding this comment.
im wondering if this builds anything unwanted - often these cmake builds build everything by default, not just the lib/etc that we need
There was a problem hiding this comment.
Looks like a better option than the prior option - thanks for researching this
There was a problem hiding this comment.
Let me look into more about how we can avoid unwanted stuff getting included.
|
No major objection, the dependency seems to meet the rubric from the policy. @suniltheta can I verify that there is no other way to solve this problem? I.e. we can't get JSON equivalent and deal with that on the Envoy side? If that was an option, it would be strictly better in terms of deps. |
|
The solution was based on XML response from AWS documentation https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html#API_AssumeRoleWithWebIdentity_Examples Let me try to dig more if json response is possible. I see this aws cli call getting json response https://docs.aws.amazon.com/cli/latest/reference/sts/assume-role-with-web-identity.html (not sure if xml to json is done by aws cli itself), need to confirm if same is possible by including additional headers. |
|
ok, so simply specifying I will update my STS WebIdentity code to adopt to parse the json instead of xml. Thanks @htuch , @moderation, @phlax for the review. |
Commit Message: aws: add pugixml dependency
Additional Description: We would like to introduce pugixml dependency into Envoy to parse the xml content. The example usecase is shown in one of the unmerged PR 23408 (note: tinyxml show in code will be replaced with pugixml). This external library let's us parse the
AssumeRoleWithWebIdentityResponseprovided by AWS STS service https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html#API_AssumeRoleWithWebIdentity_Examples to fetch the AWS credentials for some of the AWS extensions such as AWS Lambda filter, AWS Request Signer filter etc.Risk Level: -
Testing: NA
Docs Changes: NA
Release Notes: NA
Platform Specific Features: NA
The PR adds a new dependency on https://github.com/zeux/pugixml.