[Fleet] [Cloud Security Posture] Add CloudFormation agent install method#155045
[Fleet] [Cloud Security Posture] Add CloudFormation agent install method#155045opauloh merged 43 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
|
Pinging @elastic/fleet (Team:Fleet) |
kpollich
left a comment
There was a problem hiding this comment.
Thanks for the PR here. The Fleet team wasn't aware of these incoming changes as far as I know, so please forgive me as I try to get some context here.
Is there any documentation or writing around why we only present CloudFormation here compared to other orchestration tools? Fleet hasn't necessarily coalesced on a single cloud platform or orchestration tool anywhere else in the docs/UI (yet), so it does seem a little jarring to present an AWS product in our UI like this.
Also, this is limited via a UI extension, right? So only CSP policies will ever display the CF interface in the policy selector, correct?
Few minor changes suggested in the diff.
x-pack/plugins/fleet/public/components/agent_enrollment_flyout/cloud_formation_instructions.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/fleet/public/components/agent_enrollment_flyout/cloud_formation_instructions.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/fleet/public/components/agent_enrollment_flyout/cloud_formation_instructions.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/fleet/public/components/agent_enrollment_flyout/cloud_formation_instructions.tsx
Outdated
Show resolved
Hide resolved
...plugins/fleet/public/components/agent_enrollment_flyout/steps/install_managed_agent_step.tsx
Outdated
Show resolved
Hide resolved
|
Thanks for reviewing it @kpollich
After chatting with @kfirpeled, we realized it's better not to add CloudFormation in the
There will be public documentation for deploying Elastic Agent with CloudFormation. Still, for now, it will be related to the CSP integration that supports it, so that is one more reason why it was better to remove it from the Agent Policy as a generally available feature.
Thanks for those! I addressed the suggestions and would appreciate it if you could review them again. |
kpollich
left a comment
There was a problem hiding this comment.
A few more React specific things to clean up in the UI here. Thanks for addressing the previous comments!
x-pack/plugins/fleet/public/components/agent_enrollment_flyout/cloud_formation_instructions.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/fleet/public/components/agent_enrollment_flyout/cloud_formation_instructions.tsx
Show resolved
Hide resolved
kpollich
left a comment
There was a problem hiding this comment.
LGTM 🚀 - thanks for making those changes! Appreciate the contributions 🙏
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
* main: (1294 commits) [SecuritySolution] Refactor security packages (elastic#155365) [Discover] Show "Temporary" badge for ad-hoc data views in Alerts flyout (elastic#155717) [RAM] Conditional actions feedback on pr review (elastic#155804) [Files] Adds bulk delete method (elastic#155628) [Lens] Use proper way to generate absolute short URL (elastic#155512) [Guided onboarding] Use Kibana features to grant access (elastic#155065) [Index Management] Fix duped mock (elastic#155844) [Lens] Enhance visualization modifier popup with layer palette (elastic#155280) Fix flaky combobox tests on role management screen (elastic#155711) [Infrastructure UI] Create InventoryViewsService and InventoryViewsClient (elastic#155126) [Fleet] always create agent upload write indices (elastic#155729) [Fleet] [Cloud Security Posture] Add CloudFormation agent install method (elastic#155045) Add tech preview label for search applications (elastic#155649) [ML] AIOps: Stabilize flaky functional tests. (elastic#155710) [ES UI Shared] Migrate JsonEditor to monaco (elastic#155610) [Security Solution] Fixes security_solution storybooks always rendering in a flyout (elastic#155814) [Synthetics] Make error popover disappear `onMouseLeave` of metric item card (elastic#155800) Remove Exploratory View components from Observability (elastic#155629) [Discover] Remove redundant "Filter was added" toast (elastic#155645) [RAM][Security Solution][Alerts] Support the ability to trigger a rule action per alert generated (elastic#153611) (elastic#155384) ...
Summary
It solves: #153067
This PR introduces the new CloudFormation method to install the elastic agent.
Changes Summary
Fleet
Addedcloud_formation_template_urlto the AgentPolicy schema.Added theonChangeAgentPolicymethod to the fleet UI Extension of typepackage-policy-replace-define-stepCloud Security Posture
cloud_formation_template_urlin the PackagePolicy for the Vulnerability Management integration, it fetches the CloudFormation template from the @elastic/integrations repositoryScreenshots
Add Agent Flyout when CloudFormation is provided
The Launch CloudFormation button opens the Launch CloudFormation Stack