-
Notifications
You must be signed in to change notification settings - Fork 34
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
removed clientId from userAgent string #277
Conversation
1b101c4
to
f48650f
Compare
Signed-off-by: Shivam Raj <[email protected]>
f48650f
to
962f9b0
Compare
.github/workflows/main.yml
Outdated
if: ${{ matrix.node-version == '14' }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not related to this PR, can you put it in a separated one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes done in PR
Signed-off-by: Shivam Raj <[email protected]>
@jackyhu-db @shivam2680 this fix is probably a mistake. If by any chance you get some unwanted data there - it's not the library who did it, it's whatever that uses the library. So instead of removing this parameter, you had to check the code that uses the library. Upd. Just to clarify: this parameter is a part of library's public interface. You cannot just remove it without incrementing major version number |
Hi @kravets-levko the clientId should not be passed in the user agent as it may also include service principal ID, the user agent is mainly used to track the application/client (e.g node.js driver or some other app that uses the driver) instead of the individual client ID. |
@jackyhu-db |
@kravets-levko this |
@jackyhu-db Yes, I agree. But totally removing it is not an option. Renaming sounds more reasonable |
I agreed. @shivam2680 can you create another change if you agree as well? |
Description
Issue reported: While migrating usage logic metric, userAgent tag sometimes emitted tokens.
This PR removes clientID from userAgent string thus mitigating possibility of such scenarios.
Testing
Unit tests modified to verify correct userAgentString is built.