[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 Jul 11, 2025
Conversation
Contributor
|
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
Contributor
|
Pinging @elastic/fleet (Team:Fleet) |
Contributor
Author
|
/ci |
Contributor
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
cc @seanrathier |
jen-huang
approved these changes
Jul 10, 2025
Contributor
|
Starting backport for target branches: 9.1 https://github.com/elastic/kibana/actions/runs/16221073778 |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jul 11, 2025
…mplate instructions for AWS, GCP and Azure (elastic#227461) (cherry picked from commit d080256)
Contributor
💚 All backports created successfully
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
…mplate instructions for AWS, GCP and Azure (elastic#227461)
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.
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:
FLEET_CLOUD_SECURITY_ASSET_PACKAGEandFLEET_CLOUD_SECURITY_POSTURE_ASSET_INVENTORY_POLICY_TEMPLATEconstants inepm.tsto represent the new cloud asset inventory package and its policy template.Modifications to Hooks:
hooks.tsxto includeFLEET_CLOUD_SECURITY_ASSET_PACKAGEin the imports and modified theuseCloudSecurityIntegrationfunction to dynamically determine the package name based on the package policy. [1] [2]getCloudSecurityPackagePolicyFromAgentPolicyfunction to handle bothFLEET_CLOUD_SECURITY_POSTURE_PACKAGEandFLEET_CLOUD_SECURITY_ASSET_PACKAGEwhen identifying package policies.## SummaryChecklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.