-
Notifications
You must be signed in to change notification settings - Fork 766
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
Prebid Server Version Info #1172
Comments
Hey @SyntaxNode I think there is already a Original issue and PR. This can be extended if needed though :) Cheers |
Thank you for posting the original issue. The existing endpoint is exclusive to the admin port which the users of the service cannot access. I don't personally see the need to keep this information restricted. The original argument against making it publicly available is two fold:
That is certainly true, but that logic applies to any open source project. I don't view this as a deal breaker.
I'm not worried about the level of effort needed to support a public version endpoint. I'll update the proposal to consider the existing admin only endpoint. For the sake of compatibility, we may wish to leave it alone. I don't want to break anyone and I have no idea if any other hosts are making use of that endpoint for reporting. |
I agree with you, this one should be accessible not only from admin port. Maybe we can consider moving it to non admin and redirect admin to the non admin /version not to break existing usages? |
Cool. Let's expand the current endpoint to include the tag version. I think it's best to keep the admin version to maximize compatibility. How do you feel about...?
|
Hey @SyntaxNode ! I think both 1 and 2 sound great ;) |
@SyntaxNode - what's the version for PBS-Go? Tried https://prebid.adnxs.com/pbs/v1/version This is what PBS-Java returns -- https://prebid-server.rubiconproject.com/version
|
@SyntaxNode Bumping Bret's question, will the PBS Go version support the /version endpoint? |
@ncolletti Yes. We absolutely plan to support the public version endpoint. It's on our list for this year, but it's not on the top of the list so I can't offer an ETA. We welcome community contributions and can provide guidance for folks who would like to implement this sooner. |
Implemented in PBS-Go 0.179.0. I opened a separate ticket #2010 to track the response header. |
We have received several requests to add the ability to retrieve the version number of Prebid Server. There is an existing version endpoint today which contains the truncated commit hash, but this is only available on the admin port which users cannot access. It also does not provide information as to exactly which version of Prebid Server handeled the request.
Question:
We discussed extending the existing
/status
endpoint, but the response is not json and thus would require a breaking change to extend. I propose we add a new '/version' endpoint which will respond with the following json including both the friendly version number and the git hash:The default values would be "0.0.0" for the version and an empty string for the hash for local builds.
Questions:
It may also be worthwhile to include the version information in the http response headers, so in the case of a mixed deploy scenario you would know exactly which version handled the request, such as:
Questions:
The text was updated successfully, but these errors were encountered: