Skip to content
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

Add flag to ignore commas when parsing. #192

Merged
merged 4 commits into from
May 11, 2022

Conversation

cmacknz
Copy link
Member

@cmacknz cmacknz commented May 2, 2022

The new flag stops the parser from building arrays automatically when
top level elements are separated with commas. This flag converts parsing
into an actual no-op, passing through the input unmodified. This mode is
necessary when parsing values that may legitimately contain special
characters, like secrets.

This is the first step in fixing elastic/beats#29789. A follow up change in beats will follow to start ignoring commas when loading from the keystore.

Draft beats PR with a failing test that will pass with these changes: elastic/beats#31487

The new flag stops the parser from building arrays automatically when
top level elements are separated with commas. This flag converts parsing
into an actual no-op, passing through the input unmodified. This mode is
necessary when parsing values that may legitimately contain special
characters, like secrets.
@cmacknz cmacknz added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label May 2, 2022
@cmacknz cmacknz self-assigned this May 2, 2022
@cmacknz cmacknz requested review from blakerouse and kvch May 2, 2022 20:12
@elasticmachine
Copy link

elasticmachine commented May 2, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-05-11T18:38:29.052+0000

  • Duration: 4 min 51 sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants