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

omit URL's password when stringifying URL for segment name #422

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

aloababa
Copy link
Contributor

Issue #421

Description of changes:

Stripping basic auth password from url to avoid leak in xray traces.

@aloababa aloababa requested a review from a team as a code owner October 10, 2023 10:15
@atshaw43
Copy link
Contributor

atshaw43 commented Oct 17, 2023

Can you add some unit tests for this?
Some on the function level, and some at the segment level. By segment level I mean setting a URL on a segment and checking the JSON output when we convert it.

@aloababa
Copy link
Contributor Author

I've added TestRoundTripWithBasicAuth unit test.

xray/client_test.go Outdated Show resolved Hide resolved
@aloababa
Copy link
Contributor Author

I've updated the pull request.

Thanks for the response.

@atshaw43
Copy link
Contributor

You will need to rebase with the upstream to merge this.

@aloababa
Copy link
Contributor Author

I rebased on master.

@atshaw43 atshaw43 merged commit 92cbece into aws:master Oct 27, 2023
11 checks passed
Copy link
Contributor

@wangzlei wangzlei left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants