Skip to content

Commit

Permalink
test(cloudauth): ciem webhook
Browse files Browse the repository at this point in the history
* update CIEM tests to leverage webhook with embedded SP
  • Loading branch information
cgeers committed Apr 16, 2024
1 parent dc02642 commit 7c807ba
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion sysdig/resource_sysdig_secure_cloud_auth_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ resource "sysdig_secure_cloud_auth_account" "gcp_config_posture" {
}
secure_identity_entitlement {
enabled = true
components = ["COMPONENT_SERVICE_PRINCIPAL/secure-posture"]
components = ["COMPONENT_WEBHOOK_DATASOURCE/secure-runtime"]
}
}
component {
Expand All @@ -109,6 +109,28 @@ resource "sysdig_secure_cloud_auth_account" "gcp_config_posture" {
}
})
}
component {
type = "COMPONENT_WEBHOOK_DATASOURCE"
instance = "secure-runtime"
webhook_datasource_metadata = jsonencode({
gcp = {
webhook_datasource = {
pubsub_topic_name = "pubsub_topic_name_value"
sink_name = "sink_name_value"
push_subscription_name = "push_subscription_name_value"
push_endpoint = "push_endpoint_value"
}
service_principal = {
workload_identity_federation = {
pool_id = "pool_id_value"
pool_provider_id = "pool_provider_id_value"
project_number = "123456789011"
}
email = "email_value"
}
}
})
}
}
`, accountID, getEncodedServiceAccountKey("gcp-cspm-test", accountID))
}
Expand Down

0 comments on commit 7c807ba

Please sign in to comment.