-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Fix cloudflare template error #182645
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/fleet (Team:Fleet) |
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.
LGTM
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
To update your PR or re-run it, just comment with: cc @criamico |
## Summary Cloudflare 8.24 doesn't install properly and the config tab also fails with the same error. This PR fixes this error and also fixes a small UI issue with max width not sets in configs tab. The integration defines two possible options for auth (auth key or token) but only one should be used. When both are set the [compile template](https://github.com/elastic/kibana/blob/be3f66fd45db4001b9437281a2cb075e817fa25f/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L27) fails with an error ## Before ![Screenshot 2024-05-03 at 16 16 35](https://github.com/elastic/kibana/assets/16084106/cb90e72a-7cef-46eb-8542-324cce45ac37) ![Screenshot 2024-05-03 at 16 20 01](https://github.com/elastic/kibana/assets/16084106/4ffacea4-ffa7-4a1a-bf81-24213fee48f3) ## After ![Screenshot 2024-05-06 at 10 58 57](https://github.com/elastic/kibana/assets/16084106/36ca8bea-87d7-4d01-8fda-50190feb9fbb) (cherry picked from commit 1a3ff70)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.14`: - [[Fleet] Fix cloudflare template error (#182645)](#182645) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Cristina Amico","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-05-06T10:19:13Z","message":"[Fleet] Fix cloudflare template error (#182645)\n\n## Summary\r\n\r\nCloudflare 8.24 doesn't install properly and the config tab also fails\r\nwith the same error. This PR fixes this error and also fixes a small UI\r\nissue with max width not sets in configs tab.\r\n\r\nThe integration defines two possible options for auth (auth key or\r\ntoken) but only one should be used. When both are set the [compile\r\ntemplate](https://github.com/elastic/kibana/blob/be3f66fd45db4001b9437281a2cb075e817fa25f/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L27)\r\nfails with an error\r\n\r\n## Before\r\n![Screenshot 2024-05-03 at 16 16\r\n35](https://github.com/elastic/kibana/assets/16084106/cb90e72a-7cef-46eb-8542-324cce45ac37)\r\n![Screenshot 2024-05-03 at 16 20\r\n01](https://github.com/elastic/kibana/assets/16084106/4ffacea4-ffa7-4a1a-bf81-24213fee48f3)\r\n\r\n## After\r\n![Screenshot 2024-05-06 at 10 58\r\n57](https://github.com/elastic/kibana/assets/16084106/36ca8bea-87d7-4d01-8fda-50190feb9fbb)","sha":"1a3ff70c5e7ebdc308fe5022acee178a43302dc5","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","backport:prev-minor","v8.15.0"],"title":"[Fleet] Fix cloudflare template error","number":182645,"url":"https://github.com/elastic/kibana/pull/182645","mergeCommit":{"message":"[Fleet] Fix cloudflare template error (#182645)\n\n## Summary\r\n\r\nCloudflare 8.24 doesn't install properly and the config tab also fails\r\nwith the same error. This PR fixes this error and also fixes a small UI\r\nissue with max width not sets in configs tab.\r\n\r\nThe integration defines two possible options for auth (auth key or\r\ntoken) but only one should be used. When both are set the [compile\r\ntemplate](https://github.com/elastic/kibana/blob/be3f66fd45db4001b9437281a2cb075e817fa25f/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L27)\r\nfails with an error\r\n\r\n## Before\r\n![Screenshot 2024-05-03 at 16 16\r\n35](https://github.com/elastic/kibana/assets/16084106/cb90e72a-7cef-46eb-8542-324cce45ac37)\r\n![Screenshot 2024-05-03 at 16 20\r\n01](https://github.com/elastic/kibana/assets/16084106/4ffacea4-ffa7-4a1a-bf81-24213fee48f3)\r\n\r\n## After\r\n![Screenshot 2024-05-06 at 10 58\r\n57](https://github.com/elastic/kibana/assets/16084106/36ca8bea-87d7-4d01-8fda-50190feb9fbb)","sha":"1a3ff70c5e7ebdc308fe5022acee178a43302dc5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182645","number":182645,"mergeCommit":{"message":"[Fleet] Fix cloudflare template error (#182645)\n\n## Summary\r\n\r\nCloudflare 8.24 doesn't install properly and the config tab also fails\r\nwith the same error. This PR fixes this error and also fixes a small UI\r\nissue with max width not sets in configs tab.\r\n\r\nThe integration defines two possible options for auth (auth key or\r\ntoken) but only one should be used. When both are set the [compile\r\ntemplate](https://github.com/elastic/kibana/blob/be3f66fd45db4001b9437281a2cb075e817fa25f/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L27)\r\nfails with an error\r\n\r\n## Before\r\n![Screenshot 2024-05-03 at 16 16\r\n35](https://github.com/elastic/kibana/assets/16084106/cb90e72a-7cef-46eb-8542-324cce45ac37)\r\n![Screenshot 2024-05-03 at 16 20\r\n01](https://github.com/elastic/kibana/assets/16084106/4ffacea4-ffa7-4a1a-bf81-24213fee48f3)\r\n\r\n## After\r\n![Screenshot 2024-05-06 at 10 58\r\n57](https://github.com/elastic/kibana/assets/16084106/36ca8bea-87d7-4d01-8fda-50190feb9fbb)","sha":"1a3ff70c5e7ebdc308fe5022acee178a43302dc5"}}]}] BACKPORT--> Co-authored-by: Cristina Amico <[email protected]>
Summary
Cloudflare 8.24 doesn't install properly and the config tab also fails with the same error. This PR fixes this error and also fixes a small UI issue with max width not sets in configs tab.
The integration defines two possible options for auth (auth key or token) but only one should be used. When both are set the compile template fails with an error
Before
After