Description
openedon Apr 9, 2024
Blocked by elastic/package-spec#684
Today, the Cloud Security Posture Management (CSPM) integration supports agentless deployment through some hardcoded code paths, e.g.
These hardcoded checks need to be replaced with dynamic ones based on the above changes made to package-spec/integration. When creating an integration policy, we need to check whether the selected policy template has deployment_modes.agentless.enabled
set to true
. If a policy template supports agentless, we should show the "setup technology" selector UI that the cloud security team has built for CSPM today.
This logic can assume there will be a single agentless
agent policy onto which these integration policies should be installed. When installing an agentless integration, the agent policy selector UI should not appear at all.
We'll also need to honor the hide_in_deployment_modes
property for variables in order to hide/show certain variables in either the agentless or default UI.
Implementation
- Replace hardcoded checks for agentless support with dynamic ones based on policy template's
deployment_modes.agentless.enabled
value - Ensure agentless integration policies are created on the hardcoded
agentless
policy when saved - Honor
hide_in_deployment_modes
setting for variables that are explicitly hidden/shown in either the default or agentless UI