-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
reroute processor sanitization inconsistent with spec #112936
Comments
Pinging @elastic/es-data-management (Team:Data Management) |
elastic/ecs#2384 now clarifies that it should be 100 bytes, not 100 unicode characters. There is no problem with the existing ES implementation in truncating to 100 bytes. |
Seems like there's a discrepancy between the allowed characters for @ebeahan do you remember why there's a discrepancy about whether or not the |
I don't know of any discussion and suspect it's an oversight. The discrepancy appeared in the earliest version of the eventual ECS field descriptions here. |
@ebeahan Since it would be a breaking change for the reroute processor to disallow namespaces that have been configured contained a dash, do you think we could change the ECS definition to allow dashes in the namespace? |
@felixbarny I opened elastic/ecs#2388. Since removing the restriction makes the field more permissive, I don't see it as a breaking ECS change. |
Elasticsearch Version
confirmed on 8.15.1. Affects current main.
Installed Plugins
No response
Java Version
bundled
OS Version
Linux carson-elastic 6.8.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Tue Aug 13 13:35:26 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Problem Description
2 issues:
reroute
processor allows-
in namespace while it is said to be forbidden in ecs docs, but not in reroute docssubstring usage in code gets the first 100 chars (as in bytes, not in unicode chars /unicode code points). This may result in invalid unicode after sanitization. Fleet docs says it should be 100 bytes, not 100 unicode chars, while in reroute doc it just says "100 characters". Clarify whether "100 characters" refers to unicode characters. If so, the code needs to be updated to be consistent with doc.Steps to Reproduce
Resulting doc:
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: