Skip to content

Commit

Permalink
feat: added sentinelone integration
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Theuermann <[email protected]>
  • Loading branch information
mati007thm committed Dec 19, 2024
1 parent 4778115 commit e9a66e7
Show file tree
Hide file tree
Showing 6 changed files with 473 additions and 0 deletions.
62 changes: 62 additions & 0 deletions docs/resources/integration_sentinelone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "mondoo_integration_sentinelone Resource - terraform-provider-mondoo"
subcategory: ""
description: |-
Continuously scan Sentinel One subscriptions and resources for misconfigurations and vulnerabilities.
---

# mondoo_integration_sentinelone (Resource)

Continuously scan Sentinel One subscriptions and resources for misconfigurations and vulnerabilities.

## Example Usage

```terraform
variable "client_secret" {
description = "The SentinelOne Client Secret"
type = string
sensitive = true
}
provider "mondoo" {
space = "hungry-poet-123456"
}
# Setup the SentinelOne integration
resource "mondoo_integration_sentinelone" "sentinelone_integration" {
name = "SentinelOne Integration"
host = "https://example.sentinelone.net"
account = "example"
credentials = {
client_secret = var.client_secret
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `account` (String) Sentinel One account.
- `credentials` (Attributes) Credentials for Sentinel One integration. Remote changes will not be detected. (see [below for nested schema](#nestedatt--credentials))
- `host` (String) Sentinel One host.
- `name` (String) Name of the integration.

### Optional

- `space_id` (String) Mondoo space identifier. If there is no space ID, the provider space is used.

### Read-Only

- `mrn` (String) Integration identifier

<a id="nestedatt--credentials"></a>
### Nested Schema for `credentials`

Optional:

- `client_secret` (String, Sensitive) Client secret for Sentinel One integration.
- `pem_file` (String, Sensitive) PEM file for Sentinel One integration.
9 changes: 9 additions & 0 deletions examples/resources/mondoo_integration_sentinelone/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
required_providers {
mondoo = {
source = "mondoohq/mondoo"
version = ">= 0.19"
}
}
}

20 changes: 20 additions & 0 deletions examples/resources/mondoo_integration_sentinelone/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
variable "client_secret" {
description = "The SentinelOne Client Secret"
type = string
sensitive = true
}

provider "mondoo" {
space = "hungry-poet-123456"
}

# Setup the SentinelOne integration
resource "mondoo_integration_sentinelone" "sentinelone_integration" {
name = "SentinelOne Integration"
host = "https://example.sentinelone.net"
account = "example"

credentials = {
client_secret = var.client_secret
}
}
6 changes: 6 additions & 0 deletions internal/provider/gql.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,11 @@ type MicrosoftDefenderConfigurationOptionsInput struct {
SubscriptionsDenylist []string
}

type SentinelOneConfigurationOptions struct {
Host string
Account string
}

type ClientIntegrationConfigurationOptions struct {
AzureConfigurationOptions AzureConfigurationOptions `graphql:"... on AzureConfigurationOptions"`
HostConfigurationOptions HostConfigurationOptions `graphql:"... on HostConfigurationOptions"`
Expand All @@ -672,6 +677,7 @@ type ClientIntegrationConfigurationOptions struct {
EmailConfigurationOptions EmailConfigurationOptions `graphql:"... on EmailConfigurationOptions"`
GitlabConfigurationOptions GitlabConfigurationOptions `graphql:"... on GitlabConfigurationOptions"`
MicrosoftDefenderConfigurationOptionsInput MicrosoftDefenderConfigurationOptionsInput `graphql:"... on MicrosoftDefenderConfigurationOptions"`
SentinelOneConfigurationOptions SentinelOneConfigurationOptions `graphql:"... on SentinelOneConfigurationOptions"`
// Add other configuration options here
}

Expand Down
Loading

0 comments on commit e9a66e7

Please sign in to comment.