-
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.
- Loading branch information
Showing
4 changed files
with
212 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: blackstork/misp | ||
weight: 20 | ||
plugin: | ||
name: blackstork/misp | ||
description: "" | ||
tags: [] | ||
version: "v0.4.2" | ||
source_github: "https://github.com/blackstork-io/fabric/tree/main/internal/misp/" | ||
type: docs | ||
hideInMenu: true | ||
--- | ||
|
||
{{< plugin-header "blackstork/misp" "misp" "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/misp" = ">= v0.4.2" | ||
} | ||
} | ||
``` | ||
|
||
|
||
## Data sources | ||
|
||
{{< plugin-resources "misp" "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,143 @@ | ||
--- | ||
title: "`misp_events` data source" | ||
plugin: | ||
name: blackstork/misp | ||
description: "The `misp_events` data source fetches MISP events" | ||
tags: [] | ||
version: "v0.4.2" | ||
source_github: "https://github.com/blackstork-io/fabric/tree/main/internal/misp/" | ||
resource: | ||
type: data-source | ||
type: docs | ||
--- | ||
|
||
{{< breadcrumbs 2 >}} | ||
|
||
{{< plugin-resource-header "blackstork/misp" "misp" "v0.4.2" "misp_events" "data source" >}} | ||
|
||
## Description | ||
The `misp_events` data source fetches MISP events | ||
|
||
## Installation | ||
|
||
To use `misp_events` data source, you must install the plugin `blackstork/misp`. | ||
|
||
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/misp" = ">= v0.4.2" | ||
} | ||
} | ||
``` | ||
|
||
Note the version constraint set for the plugin. | ||
|
||
## Configuration | ||
|
||
The data source supports the following configuration arguments: | ||
|
||
```hcl | ||
config data misp_events { | ||
# misp api key | ||
# | ||
# Required string. | ||
# Must be non-empty | ||
# For example: | ||
api_key = "some string" | ||
# misp base url | ||
# | ||
# Required string. | ||
# Must be non-empty | ||
# For example: | ||
base_url = "some string" | ||
# skip ssl verification | ||
# | ||
# Optional bool. | ||
# Default value: | ||
skip_ssl = false | ||
} | ||
``` | ||
|
||
## Usage | ||
|
||
The data source supports the following execution arguments: | ||
|
||
```hcl | ||
data misp_events { | ||
# Required string. | ||
# For example: | ||
value = "some string" | ||
# Optional string. | ||
# Default value: | ||
type = null | ||
# Optional string. | ||
# Default value: | ||
category = null | ||
# Optional string. | ||
# Default value: | ||
org = null | ||
# Optional list of string. | ||
# Default value: | ||
tags = null | ||
# Optional list of string. | ||
# Default value: | ||
event_tags = null | ||
# Optional string. | ||
# Default value: | ||
searchall = null | ||
# Optional string. | ||
# Default value: | ||
from = null | ||
# Optional string. | ||
# Default value: | ||
to = null | ||
# Optional string. | ||
# Default value: | ||
last = null | ||
# Optional number. | ||
# Default value: | ||
event_id = null | ||
# Optional bool. | ||
# Default value: | ||
with_attachments = null | ||
# Optional list of string. | ||
# Default value: | ||
sharing_groups = null | ||
# Optional bool. | ||
# Default value: | ||
only_metadata = null | ||
# Optional string. | ||
# Default value: | ||
uuid = null | ||
# Optional bool. | ||
# Default value: | ||
include_sightings = null | ||
# Optional number. | ||
# Default value: | ||
threat_level_id = null | ||
# Optional number. | ||
# Default value: | ||
limit = 10 | ||
} | ||
``` |
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