[Cloud Security][Fleet] Add cloud connector var group policy effects and UI hookup changes #251488
Merged
seanrathier merged 67 commits intoelastic:mainfrom Feb 24, 2026
Merged
Conversation
…er/kibana into cloud-connector-policy-effects
6365d35 to
afad9af
Compare
This reverts commit 746d8d1.
…er/kibana into cloud-connector-policy-effects
| const { enableCloudConnectorVarGroups } = ExperimentalFeaturesService.get(); | ||
| const { enableVarGroups, enableCloudConnectorVarGroups } = ExperimentalFeaturesService.get(); | ||
|
|
||
| const varGroups = enableVarGroups ? packageInfo.var_groups : undefined; |
Contributor
There was a problem hiding this comment.
can we check if package has groups as enabledVarGroups && packageInfo.var_groups?
| return ( | ||
| <> | ||
| {/* Account type selector - shown when accountType prop is not provided */} | ||
| {showAccountTypeSelector && ( |
Contributor
There was a problem hiding this comment.
It's safe to remove account type selector for now from Cloud connector. Multi-account types are only supported CSPM and Asset Inventory and there is an existing UX there. We should default account type to single-account when package input stream var account-type isn't being used. When time comes, we handle UI later especially since there will be a re-design on Fleet Default UX and AWS integrations don't support multi-account.
Contributor
⏳ Build in-progress
History
cc @seanrathier |
Omolola-Akinleye
approved these changes
Feb 24, 2026
Contributor
Omolola-Akinleye
left a comment
There was a problem hiding this comment.
🥇 LGTM! Thanks for all the changes and your patience!
qn895
pushed a commit
to qn895/kibana
that referenced
this pull request
Mar 11, 2026
…and UI hookup changes (elastic#251488)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cloud Connector Policy Effects Implementation
Note: There are currently no integrations that support var_groups/cloud connectors until
Major Changes
Fleet Cloud Connector
Policy Effects System: Introduced automatic policy updates based on
var_groupselections. When users select a cloud connector option, the system automatically setssupports_cloud_connectorand clearscloud_connector_id. When deselected, these flags are properly cleared.Code Migration: Moved cloud connector utility code from CSP plugin to Fleet plugin (
common/services/cloud_connectors/) for better reusability across the codebase.Var Group Helpers: Added comprehensive helper functions to detect cloud connector selections from
var_groupconfigurations, extract cloud connector variables, and determine target CSP.Account Type Support: Implemented account type selector in the cloud connector UI (
single-accountvsorganization-account) for cloud connector creation, selection and existing connector filtering.IaC Template URL Handling: Integrated IaC template URL resolution from
var_groupselections.Access Scope Fixes: Fixed credential access scope resolution for cloud connectors. Removed all code referring to input.stream and change to use
access_vars. When not possible added a fallback to theinput.streamfor legacy handlingCSPM Package
Screen.Recording.2026-02-05.at.10.47.27.AM.mov
Checklist
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.This PR was created with the assistance of Cursor
Related Issues