Skip to content

Conversation

@barkbay
Copy link
Contributor

@barkbay barkbay commented Mar 7, 2025

This PR allows users to escape dots in paths, similar to what Kibana supports since elastic/kibana#178841

Relates to #8499

@barkbay barkbay added >enhancement Enhancement of existing functionality v3.0.0 labels Mar 7, 2025
@barkbay
Copy link
Contributor Author

barkbay commented Mar 7, 2025

buildkite test this -f p=gke,s=8.17.3,t=TestFleet


// Options are config options for the YAML file. Currently contains only support for dotted keys.
var Options = []ucfg.Option{ucfg.PathSep("."), ucfg.AppendValues}
var Options = []ucfg.Option{ucfg.PathSep("."), ucfg.AppendValues, ucfg.EscapePath()}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this generally be enabed or only in Kibana that supports the escape syntax?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how to make this specific to Kibana tbh, this Options is used in a lot of places, including receivers like MergeWith or HasKeys ... I can change all these functions so they accept an "optional Options". On the other hand I think it should be fine to enable this for other applications, even if they are not compatible with this syntax?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe you are right.

@barkbay barkbay merged commit f0529b3 into elastic:main Mar 7, 2025
6 checks passed
@barkbay barkbay deleted the 8499 branch March 7, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement Enhancement of existing functionality v3.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants