Skip to content

Conversation

@pulimsr
Copy link
Contributor

@pulimsr pulimsr commented Nov 5, 2025

Description of changes: validating credential urls for sso and sts

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

}
ss.str();

Aws::Http::URI uri(ss.str());
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of validating the the URI in the constructor, validate it when we make the call like how we currently do it in AwsClient, i.e. in AWSHttpResourceClient::GetResourceWithAWSWebServiceResult we should validate there before making any calls

using namespace Aws::Auth;
using namespace Aws::Client;

class SSRFValidationTest : public Aws::Testing::AwsCppSdkGTestSuite {
Copy link
Contributor

Choose a reason for hiding this comment

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

lets not make this its own test, AWSCredentialsProviderTest has tests for both SSO and STS, lets place tests there that validate this behavor

@pulimsr pulimsr merged commit 091a493 into main Nov 6, 2025
4 of 5 checks passed
@pulimsr pulimsr deleted the sso-sts--url-validation branch November 6, 2025 15:17
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.

2 participants