-
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
Forbid -
in namespace in reroute processor
#113218
Forbid -
in namespace in reroute processor
#113218
Conversation
`-` character is not allowed in ECS data_stream.namespace spec. Fixes #112936
142d79b
to
7d43ce9
Compare
pr: 113218 | ||
summary: Forbid - in namespace in reroute processor | ||
area: Ingest Node | ||
type: bug |
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.
Not sure if "bug" is the best description. This is going to break use cases where people are using non-compliant namespace with -
in it.
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.
@mattc58 should it be something other than "bug"?
Pinging @elastic/es-data-management (Team:Data Management) |
Thanks @carsonip. Wouldn't this be a breaking change though? If a user has successfully used this in pipelines to create namespaces with the |
Correct. That is also why I left the above comment about breaking use cases where people rely on the bug. There are 2 parts to this change, one part at factory and another at runtime. The factory part does worry me a bit as valid processor will become invalid on upgrade. I don't know whether it will fail the upgrade, stop ingestion, or make ES fail to start. (If you actually have the answer to that, I'll be interested to know.) Now that I think more about the implications, I'm more inclined to ship it in 9.0 with no backports. On the apm-server end, we are likely going to ship it as a bugfix in 8.16 where we change from no sanitization to replacing all invalid chars, but the impact surface will be limited to use cases where user specifically configured data stream routing attributes in OpenTelemetry (see elastic/apm-server#14043), and it will just index documents to a different data stream at max. |
Would be good to get @felixbarny 's eyes on this as it is initially written explicitly in a way that allows |
Closing this PR as we may approach the issue #112936 with an opposite fix. |
-
character is not allowed in ECS data_stream.namespace spec.Fixes #112936
gradle check
?