-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: crowdstrike falcon_cspm_ioms datasource (#245)
- Loading branch information
Showing
15 changed files
with
834 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: blackstork/crowdstrike | ||
weight: 20 | ||
plugin: | ||
name: blackstork/crowdstrike | ||
description: "" | ||
tags: [] | ||
version: "v0.4.2" | ||
source_github: "https://github.com/blackstork-io/fabric/tree/main/internal/crowdstrike/" | ||
type: docs | ||
hideInMenu: true | ||
--- | ||
|
||
{{< plugin-header "blackstork/crowdstrike" "crowdstrike" "v0.4.2" >}} | ||
|
||
## Installation | ||
|
||
To install the plugin, add it to `plugin_versions` map in the Fabric global configuration block (see [Global configuration]({{< ref "configs.md#global-configuration" >}}) for more details), with a version constraint restricting which available versions of the plugin the codebase is compatible with: | ||
|
||
```hcl | ||
fabric { | ||
plugin_versions = { | ||
"blackstork/crowdstrike" = ">= v0.4.2" | ||
} | ||
} | ||
``` | ||
|
||
|
||
## Data sources | ||
|
||
{{< plugin-resources "crowdstrike" "data-source" >}} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
title: "`falcon_cspm_ioms` data source" | ||
plugin: | ||
name: blackstork/crowdstrike | ||
description: "The `falcon_cspm_ioms` data source fetches cloud indicators of misconfigurations (IOMs) from the Falcon security posture management (CSPM) feature" | ||
tags: [] | ||
version: "v0.4.2" | ||
source_github: "https://github.com/blackstork-io/fabric/tree/main/internal/crowdstrike/" | ||
resource: | ||
type: data-source | ||
type: docs | ||
--- | ||
|
||
{{< breadcrumbs 2 >}} | ||
|
||
{{< plugin-resource-header "blackstork/crowdstrike" "crowdstrike" "v0.4.2" "falcon_cspm_ioms" "data source" >}} | ||
|
||
## Description | ||
The `falcon_cspm_ioms` data source fetches cloud indicators of misconfigurations (IOMs) from the Falcon security posture management (CSPM) feature | ||
|
||
## Installation | ||
|
||
To use `falcon_cspm_ioms` data source, you must install the plugin `blackstork/crowdstrike`. | ||
|
||
To install the plugin, add the full plugin name to the `plugin_versions` map in the Fabric global configuration block (see [Global configuration]({{< ref "configs.md#global-configuration" >}}) for more details), as shown below: | ||
|
||
```hcl | ||
fabric { | ||
plugin_versions = { | ||
"blackstork/crowdstrike" = ">= v0.4.2" | ||
} | ||
} | ||
``` | ||
|
||
Note the version constraint set for the plugin. | ||
|
||
## Configuration | ||
|
||
The data source supports the following configuration arguments: | ||
|
||
```hcl | ||
config data falcon_cspm_ioms { | ||
# Client ID for accessing CrowdStrike Falcon Platform | ||
# | ||
# Required string. | ||
# Must be non-empty | ||
# For example: | ||
client_id = "some string" | ||
# Client Secret for accessing CrowdStrike Falcon Platform | ||
# | ||
# Required string. | ||
# Must be non-empty | ||
# For example: | ||
client_secret = "some string" | ||
# Member CID for MSSP | ||
# | ||
# Optional string. | ||
# Default value: | ||
member_cid = null | ||
# Falcon cloud abbreviation | ||
# | ||
# Optional string. | ||
# Must be one of: "autodiscover", "us-1", "us-2", "eu-1", "us-gov-1", "gov1" | ||
# For example: | ||
# client_cloud = "us-1" | ||
# | ||
# Default value: | ||
client_cloud = null | ||
} | ||
``` | ||
|
||
## Usage | ||
|
||
The data source supports the following execution arguments: | ||
|
||
```hcl | ||
data falcon_cspm_ioms { | ||
# limit the number of queried items | ||
# | ||
# Required integer. | ||
# For example: | ||
size = 42 | ||
} | ||
``` |
This file contains 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
38 changes: 38 additions & 0 deletions
38
examples/templates/crowdstrike/data_falcon_cspm_ioms.fabric
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
fabric { | ||
plugin_versions = { | ||
"blackstork/crowdstrike" = ">= 0.4 < 1.0 || 0.4.0-rev0" | ||
} | ||
} | ||
|
||
document "cspm_ioms" { | ||
meta { | ||
name = "example_document" | ||
} | ||
|
||
data falcon_cspm_ioms "cspm" { | ||
config { | ||
client_id = "" | ||
client_secret = "" | ||
client_cloud = "eu-1" | ||
} | ||
size = 100 | ||
} | ||
|
||
title = "List of CSPM IOMS" | ||
|
||
content table { | ||
rows = query_jq(".data.falcon_cspm_ioms.cspm") | ||
columns = [ | ||
{ | ||
"header" = "Account Id" | ||
"value" = "{{.row.value.account_id}}" | ||
}, | ||
{ | ||
"header" = "Cloud Provider" | ||
"value" = "{{.row.value.cloud_provider}}" | ||
} | ||
] | ||
} | ||
|
||
} | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.