Skip to content

[Fleet] Replace all references to unsafe YML load/dump methods in Fleet codebase#190659

Merged
kpollich merged 2 commits intoelastic:mainfrom
kpollich:fleet/more-unsafe-yml-operations
Aug 19, 2024
Merged

[Fleet] Replace all references to unsafe YML load/dump methods in Fleet codebase#190659
kpollich merged 2 commits intoelastic:mainfrom
kpollich:fleet/more-unsafe-yml-operations

Conversation

@kpollich
Copy link
Copy Markdown
Member

@kpollich kpollich commented Aug 16, 2024

Summary

Replaces any unsafe YML operations with their safe alternatives.

load -> safeLoad
dump -> safeDump

@kpollich kpollich added release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team labels Aug 16, 2024
@kpollich kpollich self-assigned this Aug 16, 2024
@kpollich kpollich requested a review from a team as a code owner August 16, 2024 10:58
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@obltmachine
Copy link
Copy Markdown

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@kpollich kpollich enabled auto-merge (squash) August 16, 2024 10:58
Copy link
Copy Markdown
Member

@nchaulet nchaulet left a comment

Choose a reason for hiding this comment

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

🚀

@kpollich
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

@kpollich kpollich merged commit 439c7fa into elastic:main Aug 19, 2024
@kibana-ci
Copy link
Copy Markdown

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #11 / managed content Managed Content preventing the user from overwriting managed content maps

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @kpollich

@kibanamachine kibanamachine added v8.16.0 backport:skip This PR does not require backporting labels Aug 19, 2024
@kpollich kpollich added backport:prev-minor and removed backport:skip This PR does not require backporting labels Aug 21, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 21, 2024
…et codebase (elastic#190659)

## Summary

Replaces any unsafe YML operations with their safe alternatives.

`load` -> `safeLoad`
`dump` -> `safeDump`

(cherry picked from commit 439c7fa)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.15

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Aug 21, 2024
… in Fleet codebase (#190659) (#191015)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[Fleet] Replace all references to unsafe YML load/dump methods in
Fleet codebase (#190659)](#190659)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kyle
Pollich","email":"kyle.pollich@elastic.co"},"sourceCommit":{"committedDate":"2024-08-19T15:35:25Z","message":"[Fleet]
Replace all references to unsafe YML load/dump methods in Fleet codebase
(#190659)\n\n## Summary\r\n\r\nReplaces any unsafe YML operations with
their safe alternatives.\r\n\r\n`load` -> `safeLoad`\r\n`dump` ->
`safeDump`","sha":"439c7fa84c45b3c632193ce0ffd16b437ea21e08","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:prev-minor","v8.16.0"],"title":"[Fleet]
Replace all references to unsafe YML load/dump methods in Fleet
codebase","number":190659,"url":"https://github.com/elastic/kibana/pull/190659","mergeCommit":{"message":"[Fleet]
Replace all references to unsafe YML load/dump methods in Fleet codebase
(#190659)\n\n## Summary\r\n\r\nReplaces any unsafe YML operations with
their safe alternatives.\r\n\r\n`load` -> `safeLoad`\r\n`dump` ->
`safeDump`","sha":"439c7fa84c45b3c632193ce0ffd16b437ea21e08"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/190659","number":190659,"mergeCommit":{"message":"[Fleet]
Replace all references to unsafe YML load/dump methods in Fleet codebase
(#190659)\n\n## Summary\r\n\r\nReplaces any unsafe YML operations with
their safe alternatives.\r\n\r\n`load` -> `safeLoad`\r\n`dump` ->
`safeDump`","sha":"439c7fa84c45b3c632193ce0ffd16b437ea21e08"}}]}]
BACKPORT-->

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.15.1 v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants