-
Notifications
You must be signed in to change notification settings - Fork 29
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
Improve definition of x-correlator header #352
Comments
It is already recommended that It was originally mandated to be a UUID, but some participants wanted that requirement relaxed. See #168 and associated issue. |
Eric, thank you but the topic you linked is not answering to my issue. In #168 Someone asked to remove the UUID format check and some other people answered LGTM. No reasons, no discussion. Maybe you are referring to #166 ? Anyway, for me It is not sufficient to ONLY recommend UUID, but as I said, we need to add at least the maximum length and allowed set of characters. Is that something we can discuss about? |
Hi @StefanoFalsetto-CKHIOD, I agree with you that an open string format is not a good thing for security reason. Since the x-correlator is meant to correlate request and response, maybe we could consider usage of open telemetry for the next release. |
Thank you @patrice-conil for your nice answer. |
We had a discussion with @patrice-conil - We should probably split in 3 parts:
|
Thank you @bigludo7, here my feedback:
|
Also note the W3C Recommendation Trace Context , worth considering as a long-term replacement for |
Yes, that pattern is fine with me. The only test client implementation I've seen that this change would beak was one that was obviously trying to generate UUIDs but failing badly! |
Also fine with adding that pattern |
A pattern looks fine for me as well, but the length of 36 might be unnessary restrictive. The current version of
Maybe it make sense to take the definition for
With this definition we should be on the safe side to not restrict any tracing tool and therefore don't need to declare a breaking change with the restriction of the x-correlator format. |
Problem description
For security reasons it is advisable to know the format of any exchanged data. The x-correlator header is just defined as "string". There is no clear definition of how this string is composed, hence it is not possible to perform any check on this header.
That's a something the security teams are trying to avoid.
Possible evolution
My proposal is to define this header in a more detailed way. My first choice is to completely define a format for this header.
We can decide to use UUID, hence checks can be performed verifying the compliancy of the received string to UUID format
Alternative solution
Another solution could be let the liberty to the developer to choose whatever string it wants, maybe jut suggesting to use UUID. But in that case it is needed to at least define a standard maximum length and set of allowed characters.
I am interested in your feedback.
The text was updated successfully, but these errors were encountered: