Skip to content

[Cloud Security] [Bug] Fix Cloud Asset Discovery not showing cloud template instructions for AWS, GCP and Azure#227461

Merged
seanrathier merged 1 commit intoelastic:mainfrom
seanrathier:asset-cloud-flyout
Jul 11, 2025
Merged

[Cloud Security] [Bug] Fix Cloud Asset Discovery not showing cloud template instructions for AWS, GCP and Azure#227461
seanrathier merged 1 commit intoelastic:mainfrom
seanrathier:asset-cloud-flyout

Conversation

@seanrathier
Copy link
Contributor

@seanrathier seanrathier commented Jul 10, 2025

This pull request introduces support for Cloud Asset Discovery showing the cloud template instructions in the Add Agent flyout in Fleet.

Additions to Cloud Security Packages:

  • Added FLEET_CLOUD_SECURITY_ASSET_PACKAGE and FLEET_CLOUD_SECURITY_POSTURE_ASSET_INVENTORY_POLICY_TEMPLATE constants in epm.ts to represent the new cloud asset inventory package and its policy template.

Modifications to Hooks:

  • Updated hooks.tsx to include FLEET_CLOUD_SECURITY_ASSET_PACKAGE in the imports and modified the useCloudSecurityIntegration function to dynamically determine the package name based on the package policy. [1] [2]
  • Enhanced the getCloudSecurityPackagePolicyFromAgentPolicy function to handle both FLEET_CLOUD_SECURITY_POSTURE_PACKAGE and FLEET_CLOUD_SECURITY_ASSET_PACKAGE when identifying package policies.## Summary

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@seanrathier seanrathier requested a review from a team July 10, 2025 14:27
@seanrathier seanrathier self-assigned this Jul 10, 2025
@seanrathier seanrathier requested a review from a team as a code owner July 10, 2025 14:27
@seanrathier seanrathier added release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related backport:prev-minor labels Jul 10, 2025
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Jul 10, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)

@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@seanrathier seanrathier added the ci:cloud-deploy Create or update a Cloud deployment label Jul 10, 2025
@seanrathier
Copy link
Contributor Author

/ci

@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 10, 2025

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1431 1433 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 2.1MB 2.1MB +233.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fleet 166.6KB 166.8KB +208.0B
Unknown metric groups

API count

id before after diff
fleet 1562 1564 +2

History

cc @seanrathier

@seanrathier seanrathier removed the request for review from a team July 10, 2025 19:59
@seanrathier seanrathier merged commit d080256 into elastic:main Jul 11, 2025
24 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.1

https://github.com/elastic/kibana/actions/runs/16221073778

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.1

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 Jul 11, 2025
…oud template instructions for AWS, GCP and Azure (#227461) (#227659)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Cloud Security] [Bug] Fix Cloud Asset Discovery not showing cloud
template instructions for AWS, GCP and Azure
(#227461)](#227461)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT
[{"author":{"name":"seanrathier","email":"sean.rathier@gmail.com"},"sourceCommit":{"committedDate":"2025-07-11T13:21:04Z","message":"[Cloud
Security] [Bug] Fix Cloud Asset Discovery not showing cloud template
instructions for AWS, GCP and Azure
(#227461)","sha":"d080256c1959fd302a59b2d94d76d3f92f2235b2","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:Cloud
Security","backport:prev-minor","ci:cloud-deploy","v9.2.0"],"title":"[Cloud
Security] [Bug] Fix Cloud Asset Discovery not showing cloud template
instructions for AWS, GCP and
Azure","number":227461,"url":"https://github.com/elastic/kibana/pull/227461","mergeCommit":{"message":"[Cloud
Security] [Bug] Fix Cloud Asset Discovery not showing cloud template
instructions for AWS, GCP and Azure
(#227461)","sha":"d080256c1959fd302a59b2d94d76d3f92f2235b2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227461","number":227461,"mergeCommit":{"message":"[Cloud
Security] [Bug] Fix Cloud Asset Discovery not showing cloud template
instructions for AWS, GCP and Azure
(#227461)","sha":"d080256c1959fd302a59b2d94d76d3f92f2235b2"}}]}]
BACKPORT-->

Co-authored-by: seanrathier <sean.rathier@gmail.com>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
@seanrathier seanrathier deleted the asset-cloud-flyout branch March 6, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:cloud-deploy Create or update a Cloud deployment release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related Team:Fleet Team label for Observability Data Collection Fleet team v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Cloud Security] [Cloud Asset Inventory] Missing cloud formation installation info in add agent flyout

4 participants