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

voucher-client: send User-Agent #52

Merged
merged 3 commits into from
Dec 20, 2021

Conversation

thepwagner
Copy link
Collaborator

Modify the voucher client to send a customizable User-Agent header. This is easily spoofed, but helps a voucher-server to understand the distribution of its clients.

When voucher client is included as a library, the string voucher-client/2 is used. There's a method for clients to customize (e.g. my-awesome-builder/1.0).
When voucher_client is used as a binary, the tagged version (e.g. voucher-client/2.6.2) is used.

Related

@lynnsh
Copy link
Collaborator

lynnsh commented Dec 16, 2021

Is this PR already merged in #54?

@thepwagner
Copy link
Collaborator Author

Is this PR already merged in #54?

Yep, #54 targets this as a base branch so we'd have to merge this before it.
That's because #54 is a refactor to client construction, so we wanted to include all the "current" usage.

I think we can consider this feature independently from #54 , as all it does is refactor the method of customization.

Copy link
Collaborator

@lynnsh lynnsh left a comment

Choose a reason for hiding this comment

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

LGTM!

@thepwagner thepwagner merged commit b91fddf into grafeas:main Dec 20, 2021
@thepwagner thepwagner deleted the voucher-client-user-agent branch December 20, 2021 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants