-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added granular policy resource configurationn for LSS (#374)
* feat: Added granular policy resource configurationn for LSS * (fix): fixed LSS Controller tests * Updated changelog and release-notes * Fix LSS controller action
- Loading branch information
Showing
36 changed files
with
2,008 additions
and
363 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
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,100 @@ | ||
--- | ||
subcategory: "Log Streaming (LSS)" | ||
layout: "zscaler" | ||
page_title: "ZPA: lss_config_controller" | ||
description: |- | ||
Creates and manages ZPA LSS Configuration for App Connector Metrics. | ||
--- | ||
|
||
# Resource: zpa_lss_config_controller | ||
|
||
The **zpa_lss_config_controller** resource creates and manages Log Streaming Service (LSS) in the Zscaler Private Access cloud for App Connector Metrics `zpn_ast_comprehensive_stats`. | ||
|
||
## Example 1 - LSS App Connector Metrics - Usage | ||
|
||
```hcl | ||
# Get Log Type Format - "App Connector Metrics" | ||
data "zpa_lss_config_log_type_formats" "zpn_ast_comprehensive_stats" { | ||
log_type = "zpn_ast_comprehensive_stats" | ||
} | ||
data "zpa_policy_type" "lss_siem_policy" { | ||
policy_type = "SIEM_POLICY" | ||
} | ||
data "zpa_app_connector_group" "this" { | ||
name = "Example100" | ||
} | ||
resource "zpa_lss_config_controller" "lss_app_connector_metrics" { | ||
config { | ||
name = "LSS App Connector Metrics" | ||
description = "LSS App Connector Metrics" | ||
enabled = true | ||
format = data.zpa_lss_config_log_type_formats.zpn_ast_comprehensive_stats.json | ||
lss_host = "splunk1.acme.com" | ||
lss_port = "5001" | ||
source_log_type = "zpn_ast_comprehensive_stats" | ||
use_tls = true | ||
} | ||
connector_groups { | ||
id = [ data.zpa_app_connector_group.this.id ] | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
### Required | ||
|
||
* `config` - (Required) | ||
* `name` - (Required) | ||
* `format` - (Required) The format of the LSS resource. The supported formats are: `JSON`, `CSV`, and `TSV` | ||
* `lss_host` - (Required) The IP or FQDN of the SIEM (Log Receiver) where logs will be forwarded to. | ||
* `lss_port` - (Required) The destination port of the SIEM (Log Receiver) where logs will be forwarded to. | ||
* `source_log_type` - (Required) For `App Connector Metrics` logs use `zpn_ast_comprehensive_stats`. Refer to the [Log Type documentation](https://registry.terraform.io/providers/zscaler/zpa/latest/docs/data-sources/zpa_lss_config_log_type_formats). | ||
* `connector_groups` - (Required) | ||
- `id` - (Required) - App Connector Group ID(s) where logs will be forwarded to. | ||
|
||
## Attribute Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `config` - (Required) | ||
* `description` - (Optional) | ||
* `enabled` - (Optional) | ||
* `use_tls` - (Optional) | ||
* `source_log_type` - (Required) For `App Connector Metrics` logs use `zpn_http_trans_log`. Refer to the [Log Type documentation](https://registry.terraform.io/providers/zscaler/zpa/latest/docs/data-sources/zpa_lss_config_log_type_formats). | ||
* `zpn_trans_log - "User Activity"` | ||
* `zpn_auth_log - "User Status"` | ||
* `zpn_ast_auth_log - "App Connector Status"` | ||
* `zpn_http_trans_log - "Web Browser"` | ||
* `zpn_audit_log - "Audit Logs"` | ||
* `zpn_sys_auth_log - "Private Service Edge Status"` | ||
* `zpn_ast_comprehensive_stats - "App Connector Metrics"` | ||
* `zpn_pbroker_comprehensive_stats - "Private Service Edge Metrics"` | ||
* `zpn_waf_http_exchanges_log` | ||
|
||
* `connector_groups` - (Required) | ||
- `id` - (Required) - App Connector Group ID(s) where logs will be forwarded to. | ||
|
||
## LSS Source Log Type Table | ||
|
||
| Source Log Type | Description | | ||
|-------------------------------------------|----------------------------------------| | ||
| `zpn_trans_log` | `User Activity` | | ||
| `zpn_auth_log` | `User Status` | | ||
| `zpn_ast_auth_log` | `App Connector Status` | | ||
| `zpn_http_trans_log` | `Web Browser` | | ||
| `zpn_audit_log` | `Audit Logs` | | ||
| `zpn_sys_auth_log` | `Private Service Edge Status` | | ||
| `zpn_ast_comprehensive_stats` | `App Connector Metrics` | | ||
| `zpn_pbroker_comprehensive_stats` | `Private Service Edge Metrics` | | ||
| `zpn_waf_http_exchanges_log` | `ZPA App Protection` | | ||
|
||
## Import | ||
|
||
Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language. | ||
[Visit](https://github.com/zscaler/zscaler-terraformer) |
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,101 @@ | ||
--- | ||
subcategory: "Log Streaming (LSS)" | ||
layout: "zscaler" | ||
page_title: "ZPA: lss_config_controller" | ||
description: |- | ||
Creates and manages ZPA LSS Configuration for App Connector Status. | ||
--- | ||
|
||
# Resource: zpa_lss_config_controller | ||
|
||
The **zpa_lss_config_controller** resource creates and manages Log Streaming Service (LSS) in the Zscaler Private Access cloud for App Connector Status `zpn_ast_auth_log`. | ||
|
||
## Example 1 - LSS App Connector Status - Usage | ||
|
||
```hcl | ||
# Get Log Type Format - "App Connector Status" | ||
data "zpa_lss_config_log_type_formats" "zpn_ast_auth_log" { | ||
log_type = "zpn_ast_auth_log" | ||
} | ||
data "zpa_policy_type" "lss_siem_policy" { | ||
policy_type = "SIEM_POLICY" | ||
} | ||
data "zpa_app_connector_group" "this" { | ||
name = "Example100" | ||
} | ||
resource "zpa_lss_config_controller" "lss_app_connector_status" { | ||
config { | ||
name = "LSS App Connector Status" | ||
description = "LSS App Connector Status" | ||
enabled = true | ||
format = data.zpa_lss_config_log_type_formats.zpn_ast_auth_log.json | ||
lss_host = "splunk1.acme.com" | ||
lss_port = "5001" | ||
source_log_type = "zpn_ast_auth_log" | ||
use_tls = true | ||
filter = ["ZPN_STATUS_AUTH_FAILED", "ZPN_STATUS_DISCONNECTED", "ZPN_STATUS_AUTHENTICATED"] | ||
} | ||
connector_groups { | ||
id = [ data.zpa_app_connector_group.this.id ] | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
### Required | ||
|
||
* `config` - (Required) | ||
* `name` - (Required) | ||
* `format` - (Required) The format of the LSS resource. The supported formats are: `JSON`, `CSV`, and `TSV` | ||
* `lss_host` - (Required) The IP or FQDN of the SIEM (Log Receiver) where logs will be forwarded to. | ||
* `lss_port` - (Required) The destination port of the SIEM (Log Receiver) where logs will be forwarded to. | ||
* `source_log_type` - (Required) For `App Connector Status` logs use `zpn_ast_auth_log`. Refer to the [Log Type documentation](https://registry.terraform.io/providers/zscaler/zpa/latest/docs/data-sources/zpa_lss_config_log_type_formats). | ||
* `connector_groups` - (Required) | ||
- `id` - (Required) - App Connector Group ID(s) where logs will be forwarded to. | ||
|
||
## Attribute Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `config` - (Required) | ||
* `description` - (Optional) | ||
* `enabled` - (Optional) | ||
* `filter` - (Optional) - The following values are supported: `ZPN_STATUS_AUTH_FAILED`, `ZPN_STATUS_DISCONNECTED`, `ZPN_STATUS_AUTHENTICATED`. | ||
* `use_tls` - (Optional) | ||
* `source_log_type` - (Required) Refer to the [Log Type documentation](https://registry.terraform.io/providers/zscaler/zpa/latest/docs/data-sources/zpa_lss_config_log_type_formats). | ||
* `zpn_trans_log - "User Activity"` | ||
* `zpn_auth_log - "User Status"` | ||
* `zpn_ast_auth_log - "App Connector Status"` | ||
* `zpn_http_trans_log - "Web Browser"` | ||
* `zpn_audit_log - "Audit Logs"` | ||
* `zpn_sys_auth_log - "Private Service Edge Status"` | ||
* `zpn_ast_comprehensive_stats - "App Connector Metrics"` | ||
* `zpn_pbroker_comprehensive_stats - "Private Service Edge Metrics"` | ||
* `zpn_waf_http_exchanges_log` | ||
|
||
* `connector_groups` - (Required) | ||
- `id` - (Required) - App Connector Group ID(s) where logs will be forwarded to. | ||
|
||
## LSS Source Log Type Table | ||
|
||
| Source Log Type | Description | | ||
|-------------------------------------------|----------------------------------------| | ||
| `zpn_trans_log` | `User Activity` | | ||
| `zpn_auth_log` | `User Status` | | ||
| `zpn_ast_auth_log` | `App Connector Status` | | ||
| `zpn_http_trans_log` | `Web Browser` | | ||
| `zpn_audit_log` | `Audit Logs` | | ||
| `zpn_sys_auth_log` | `Private Service Edge Status` | | ||
| `zpn_ast_comprehensive_stats` | `App Connector Metrics` | | ||
| `zpn_pbroker_comprehensive_stats` | `Private Service Edge Metrics` | | ||
| `zpn_waf_http_exchanges_log` | `ZPA App Protection` | | ||
|
||
## Import | ||
|
||
Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language. | ||
[Visit](https://github.com/zscaler/zscaler-terraformer) |
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,100 @@ | ||
--- | ||
subcategory: "Log Streaming (LSS)" | ||
layout: "zscaler" | ||
page_title: "ZPA: lss_config_controller" | ||
description: |- | ||
Creates and manages ZPA LSS Configuration for App Protection. | ||
--- | ||
|
||
# Resource: zpa_lss_config_controller | ||
|
||
The **zpa_lss_config_controller** resource creates and manages Log Streaming Service (LSS) in the Zscaler Private Access cloud for App Protection `zpn_waf_http_exchanges_log`. | ||
|
||
## Example 1 - LSS App Protection - Usage | ||
|
||
```hcl | ||
# Get Log Type Format - "App Connector Status" | ||
data "zpa_lss_config_log_type_formats" "zpn_waf_http_exchanges_log" { | ||
log_type = "zpn_waf_http_exchanges_log" | ||
} | ||
data "zpa_policy_type" "lss_siem_policy" { | ||
policy_type = "SIEM_POLICY" | ||
} | ||
data "zpa_app_connector_group" "this" { | ||
name = "Example100" | ||
} | ||
resource "zpa_lss_config_controller" "lss_app_protection" { | ||
config { | ||
name = "LSS App Protection" | ||
description = "LSS App Protection" | ||
enabled = true | ||
format = data.zpa_lss_config_log_type_formats.zpn_waf_http_exchanges_log.json | ||
lss_host = "splunk1.acme.com" | ||
lss_port = "5001" | ||
source_log_type = "zpn_waf_http_exchanges_log" | ||
use_tls = true | ||
} | ||
connector_groups { | ||
id = [ data.zpa_app_connector_group.this.id ] | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
### Required | ||
|
||
* `config` - (Required) | ||
* `name` - (Required) | ||
* `format` - (Required) The format of the LSS resource. The supported formats are: `JSON`, `CSV`, and `TSV` | ||
* `lss_host` - (Required) The IP or FQDN of the SIEM (Log Receiver) where logs will be forwarded to. | ||
* `lss_port` - (Required) The destination port of the SIEM (Log Receiver) where logs will be forwarded to. | ||
* `source_log_type` - (Required) For `AppProtection` logs use `zpn_waf_http_exchanges_log`. Refer to the [Log Type documentation](https://registry.terraform.io/providers/zscaler/zpa/latest/docs/data-sources/zpa_lss_config_log_type_formats). | ||
* `connector_groups` - (Required) | ||
- `id` - (Required) - App Connector Group ID(s) where logs will be forwarded to. | ||
|
||
## Attribute Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `config` - (Required) | ||
* `description` - (Optional) | ||
* `enabled` - (Optional) | ||
* `use_tls` - (Optional) | ||
* `source_log_type` - (Required) For `AppProtection` logs use `zpn_waf_http_exchanges_log`. Refer to the [Log Type documentation](https://registry.terraform.io/providers/zscaler/zpa/latest/docs/data-sources/zpa_lss_config_log_type_formats).. | ||
* `zpn_trans_log - "User Activity"` | ||
* `zpn_auth_log - "User Status"` | ||
* `zpn_ast_auth_log - "App Connector Status"` | ||
* `zpn_http_trans_log - "Web Browser"` | ||
* `zpn_audit_log - "Audit Logs"` | ||
* `zpn_sys_auth_log - "Private Service Edge Status"` | ||
* `zpn_ast_comprehensive_stats - "App Connector Metrics"` | ||
* `zpn_pbroker_comprehensive_stats - "Private Service Edge Metrics"` | ||
* `zpn_waf_http_exchanges_log` | ||
|
||
* `connector_groups` - (Required) | ||
- `id` - (Required) - App Connector Group ID(s) where logs will be forwarded to. | ||
|
||
## LSS Source Log Type Table | ||
|
||
| Source Log Type | Description | | ||
|-------------------------------------------|----------------------------------------| | ||
| `zpn_trans_log` | `User Activity` | | ||
| `zpn_auth_log` | `User Status` | | ||
| `zpn_ast_auth_log` | `App Connector Status` | | ||
| `zpn_http_trans_log` | `Web Browser` | | ||
| `zpn_audit_log` | `Audit Logs` | | ||
| `zpn_sys_auth_log` | `Private Service Edge Status` | | ||
| `zpn_ast_comprehensive_stats` | `App Connector Metrics` | | ||
| `zpn_pbroker_comprehensive_stats` | `Private Service Edge Metrics` | | ||
| `zpn_waf_http_exchanges_log` | `ZPA App Protection` | | ||
|
||
## Import | ||
|
||
Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language. | ||
[Visit](https://github.com/zscaler/zscaler-terraformer) |
Oops, something went wrong.