You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* First implementation draft
* Enable AuditLogs for org case, refactor
* Create organizational template file and refactor
* Remove unnecessary output declaration
* Update documentation for the organizational case
* Remove unused google_project declaration
* Update README files
* Use organization domain instead of organization id as module input
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Provides unified threat-detection, compliance, forensics and analysis through th
8
8
9
9
***[CIEM](https://docs.sysdig.com/en/docs/sysdig-secure/posture/identity-and-access/)**: Permissions and Entitlements management. Managed through `service-principal` module. <br/>
10
10
11
-
***CDR (Cloud Detection and Response)**: It send periodically the Audit Logs collected from a GCP project to Sysdig's systems, this by collecting them in a PubSub topic through a Sink and then sending them through a `PUSH` integration. Managed through `webhook-datasource` module. <br/>
11
+
***CDR (Cloud Detection and Response)**: It sends periodically the Audit Logs collected from a GCP project/organization to Sysdig's systems, this by collecting them in a PubSub topic through a Sink and then sending them through a `PUSH` integration. Managed through `webhook-datasource` module. <br/>
12
12
13
13
For other Cloud providers check: [AWS](https://github.com/draios/terraform-aws-secure-for-cloud)
Copy file name to clipboardExpand all lines: modules/services/webhook-datasource/README.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
# GCP Webhook Datasource Module
2
2
3
-
This Module creates the resources required to send Project-specific AuditLogs to Sysdig by creating a dedicated Push Subscription tied to a ingestion PubSub topic.
3
+
This Module creates the resources required to send Project or Organization-specific AuditLogs to Sysdig by creating a dedicated Push Subscription tied to a ingestion PubSub topic.
4
4
5
5
6
6
The following resources will be created in each instrumented account:
7
-
- A Sink to direct the AuditLogs towards a dedicated PubSub topic
8
-
- A PubSub ingestion topic that will hold all the AuditLogs coming from the specified project
9
-
- A Push Subscription that will POST the AuditLogs collected from the project towards Sysdig's backend
10
-
- All the necessary Service Accounts and Policies to enable the AuditLogs publishing operation
7
+
- A Project/Organization `Sink` to direct the AuditLogs towards a dedicated PubSub topic
8
+
- A `PubSub` ingestion topic that will hold all the AuditLogs coming from the specified project
9
+
- A `Push` Subscription that will POST the AuditLogs collected from the project towards Sysdig's backend
10
+
- All the necessary `Service Accounts` and `Policies` to enable the `AuditLogs` publishing operation
11
11
12
12
## Requirements
13
13
@@ -20,7 +20,7 @@ The following resources will be created in each instrumented account:
| <aname="input_ack_deadline_seconds"></a> [ack\_deadline\_seconds](#input\_ack\_deadline\_seconds)| (Optional) Maximum time in seconds after Sysdig's subscriber receives a message before the subscriber should acknowledge the message |`number`|`60`| no |
47
-
| <aname="input_labels"></a> [labels](#input\_labels)| (Optional) Labels to be associated with Sysdig-originated resources |`map(string)`| <pre>{<br> "originator": "Sysdig"<br>}</pre> | no |
50
+
| <aname="input_is_organizational"></a> [is\_organizational](#input\_is\_organizational)| (Optional) Set this field to 'true' to deploy secure-for-cloud to a GCP Organization. |`bool`|`false`| no |
51
+
| <aname="input_labels"></a> [labels](#input\_labels)| (Optional) Labels to be associated with Sysdig-originated resources |`map(string)`| <pre>{<br> "originator": "sysdig"<br>}</pre> | no |
48
52
| <aname="input_max_delivery_attempts"></a> [max\_delivery\_attempts](#input\_max\_delivery\_attempts)| (Optional) Number of attempts redelivering missed messages from the deadletter topic to the main one |`number`|`5`| no |
49
53
| <aname="input_maximum_backoff"></a> [maximum\_backoff](#input\_maximum\_backoff)| (Optional) Maximum backoff time for exponential backoff of the push subscription retry policy |`string`|`"600s"`| no |
50
54
| <aname="input_message_retention_duration"></a> [message\_retention\_duration](#input\_message\_retention\_duration)| (Optional) How long unacknowledged messages are retained in Sysdig's subscription backlog, from the moment a message is published |`string`|`"604800s"`| no |
51
55
| <aname="input_minimum_backoff"></a> [minimum\_backoff](#input\_minimum\_backoff)| (Optional) Minimum backoff time for exponential backoff of the push subscription retry policy |`string`|`"10s"`| no |
56
+
| <aname="input_organization_domain"></a> [organization\_domain](#input\_organization\_domain)| Organization domain. e.g. sysdig.com |`string`|`""`| no |
52
57
| <aname="input_project_id"></a> [project\_id](#input\_project\_id)| (Required) Target Project identifier provided by the customer |`string`| n/a | yes |
53
58
| <aname="input_push_endpoint"></a> [push\_endpoint](#input\_push\_endpoint)| (Required) Final endpoint towards which audit logs POST calls will be directed |`string`| n/a | yes |
| <aname="output_push_endpoint"></a> [push\_endpoint](#output\_push\_endpoint)| Push endpoint towards which the POST request will be directed |
61
-
| <aname="output_push_subscription_service_account"></a> [push\_subscription\_service\_account](#output\_push\_subscription\_service\_account)| Service Account used to send POST messages, a KMS key needs to be manually added in order to properly authenticate the requests at Sysdig's side |
Copy file name to clipboardExpand all lines: modules/services/webhook-datasource/outputs.tf
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,3 @@
1
-
output"project_id" {
2
-
value=data.google_project.target_project.id
3
-
description="GCP Project Identifier"
4
-
}
5
-
6
-
output"push_subscription_service_account" {
7
-
value=google_service_account.push_auth.name
8
-
description="Service Account used to send POST messages, a KMS key needs to be manually added in order to properly authenticate the requests at Sysdig's side"
0 commit comments