Skip to content

Commit 7c74ae4

Browse files
authored
fix: Fixed zia_dlp_dictionary attribute custom_phrase_match_type (#486)
* fix: Fixed zia_dlp_dictionary attribute custom_phrase_match_type
1 parent d2326fa commit 7c74ae4

25 files changed

+129
-76
lines changed

.github/workflows/zia-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Run tests with retry on Ubuntu
7272
uses: nick-fields/retry@v3
7373
with:
74-
max_attempts: 3
74+
max_attempts: 2
7575
timeout_minutes: 120
7676
command: |
7777
make sweep

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 4.5.2 (October, 14 2025)
4+
5+
### Notes
6+
7+
- Release date: **(October, 14 2025)**
8+
- Supported Terraform version: **v1.x**
9+
10+
### Bug Fixes
11+
12+
- [PR #486](https://github.com/zscaler/terraform-provider-zia/pull/486) - Fixed `zia_dlp_dictionary` attribute `custom_phrase_match_type` by including support to new value: `MATCH_CUSTOM_ANY_PATTERN_WITH_ANY_PHRASE`
13+
314
## 4.5.1 (September, 22 2025)
415

516
### Notes

GNUmakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,14 @@ test\:integration\:zscalertwo:
196196
build13: GOOS=$(shell go env GOOS)
197197
build13: GOARCH=$(shell go env GOARCH)
198198
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
199-
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/4.5.1/$(GOOS)_$(GOARCH)
199+
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/4.5.2/$(GOOS)_$(GOARCH)
200200
else
201-
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/4.5.1/$(GOOS)_$(GOARCH)
201+
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/4.5.2/$(GOOS)_$(GOARCH)
202202
endif
203203
build13: fmtcheck
204204
@echo "==> Installing plugin to $(DESTINATION)"
205205
@mkdir -p $(DESTINATION)
206-
go build -o $(DESTINATION)/terraform-provider-zia_v4.5.1
206+
go build -o $(DESTINATION)/terraform-provider-zia_v4.5.2
207207

208208
coverage: test
209209
@echo "✓ Opening coverage for unit tests ..."

docs/data-sources/zia_dlp_dictionaries.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ In addition to all arguments above, the following attributes are exported:
6161
* `dict_template_id` - (Number) ID of the predefined dictionary (original source dictionary) that is used for cloning. This field is applicable only to cloned dictionaries. Only a limited set of identification-based predefined dictionaries (e.g., Credit Cards, Social Security Numbers, National Identification Numbers, etc.) can be cloned. Up to 4 clones can be created from a predefined dictionary.
6262
* `predefined_clone` - (Boolean) This field is set to true if the dictionary is cloned from a predefined dictionary. Otherwise, it is set to false.
6363
* `custom` - (Boolean) This value is set to true for custom DLP dictionaries.
64+
* `proximity` - (Optional, Integer) The DLP dictionary proximity length that defines how close a high confidence phrase must be to an instance of the pattern (that the dictionary detects) to count as a match. Supported values between `0` and `10000`
65+
* `proximity_enabled_for_custom_dictionary` - (Optional, Boolean) A Boolean constant that indicates if proximity length is enabled or disabled for a custom DLP dictionary.
66+
* `proximity_length_enabled` - (Optional, Boolean) A Boolean constant that indicates whether the proximity length option is supported for a DLP dictionary or not. A true value indicates that the proximity length option is supported, whereas a false value indicates that it is not supported.

docs/data-sources/zia_dlp_engines.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,32 @@ description: |-
1515

1616
Use the **zia_dlp_engines** data source to get information about a ZIA DLP Engines in the Zscaler Internet Access cloud or via the API.
1717

18-
## Example Usage
18+
## Example Usage - Retrieve Custom DLP Engine by name
1919

2020
```hcl
21-
# Retrieve a DLP Engine by name
21+
#
2222
data "zia_dlp_engines" "this"{
2323
name = "Example"
2424
}
2525
```
2626

27+
## Example Usage - Retrieve Custom DLP Engine by ID
28+
2729
```hcl
28-
# Retrieve a DLP Engine by ID
2930
data "zia_dlp_engines" "this"{
3031
id = 1234567890
3132
}
3233
```
3334

35+
## Example Usage - Retrieve Predefined DLP Engine by Name
36+
3437
```hcl
35-
# Retrieve a Predefined DLP Engine
3638
data "zia_dlp_engines" "this"{
37-
predefined = "EXTERNAL"
39+
predefined_engine_name = "PCI"
40+
}
41+
42+
data "zia_dlp_engines" "this"{
43+
predefined_engine_name = "EXTERNAL"
3844
}
3945
```
4046

@@ -46,6 +52,8 @@ The following arguments are supported:
4652

4753
* `name` - (Required) The DLP engine name as configured by the admin. This attribute is required in POST and PUT requests for custom DLP engines.
4854

55+
* `predefined_engine_name` - (String) To search for predefined DLP Engines use this attribute.
56+
4957
### Optional
5058

5159
* `id` - (Number) The unique identifier for the DLP engine.

docs/guides/release-notes.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,21 @@ description: |-
1212
Track all ZIA Terraform provider's releases. New resources, features, and bug fixes will be tracked here.
1313

1414
---
15-
``Last updated: v4.5.1``
15+
``Last updated: v4.5.2``
1616

1717
---
1818

19+
## 4.5.2 (October, 14 2025)
20+
21+
### Notes
22+
23+
- Release date: **(October, 14 2025)**
24+
- Supported Terraform version: **v1.x**
25+
26+
### Bug Fixes
27+
28+
- [PR #486](https://github.com/zscaler/terraform-provider-zia/pull/486) - Fixed `zia_dlp_dictionary` attribute `custom_phrase_match_type` by including support to new value: `MATCH_CUSTOM_ANY_PATTERN_WITH_ANY_PHRASE`
29+
1930
## 4.5.1 (September, 22 2025)
2031

2132
### Notes

docs/guides/zia-activator-overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ is not recommended.
3232

3333
1. CLI arguments
3434
2. Environment variables
35-
3. JSON authentication credential file
3635

3736
Refer to the ZIA provider argument reference documentation for more information on the JSON config file and the environment variables that are used.

docs/resources/zia_dlp_dictionaries.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ The following arguments are supported:
120120
* `custom_phrase_match_type` - (Optional, String) The DLP custom phrase match type. Supported values are:
121121
* `MATCH_ALL_CUSTOM_PHRASE_PATTERN_DICTIONARY`
122122
* `MATCH_ANY_CUSTOM_PHRASE_PATTERN_DICTIONARY`
123+
* `MATCH_CUSTOM_ANY_PATTERN_WITH_ANY_PHRASE`
123124
Note: This attribute should only be set when the dictionary_type is set to `PATTERNS_AND_PHRASES`
124125

125126
* `patterns` - (Optional, Set) List containing the patterns used within a custom DLP dictionary. This attribute is not applicable to predefined DLP dictionaries. Maximum 8 items.
@@ -165,7 +166,8 @@ The following arguments are supported:
165166
* `"MEDIUM"`
166167
* `"HEAVY"`
167168

168-
* `proximity` - (Optional, Integer) The DLP dictionary proximity length.
169+
* `proximity` - (Optional, Integer) The DLP dictionary proximity length that defines how close a high confidence phrase must be to an instance of the pattern (that the dictionary detects) to count as a match. Supported values between `0` and `10000`
170+
* `proximity_enabled_for_custom_dictionary` - (Optional, Boolean) A Boolean constant that indicates if proximity length is enabled or disabled for a custom DLP dictionary.
169171
* `ignore_exact_match_idm_dict` - (Optional, Boolean) Indicates whether to exclude documents that are a 100% match to already-indexed documents from triggering an Indexed Document Match (IDM) Dictionary.
170172
* `include_bin_numbers` - (Optional, Boolean) A true value denotes that the specified Bank Identification Number (BIN) values are included in the Credit Cards dictionary. A false value denotes that the specified BIN values are excluded from the Credit Cards dictionary. Note: This field is applicable only to the predefined Credit Cards dictionary and its clones.
171173
* `bin_numbers` - (Optional, List of Integers) The list of Bank Identification Number (BIN) values that are included or excluded from the Credit Cards dictionary. BIN values can be specified only for Diners Club, Mastercard, RuPay, and Visa cards. Up to 512 BIN values can be configured in a dictionary. Note: This field is applicable only to the predefined Credit Cards dictionary and its clones.

docs/resources/zia_forwarding_control_rule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ page_title: "ZIA): forwarding_control_rule"
55
description: |-
66
Official documentation https://help.zscaler.com/zia/configuring-forwarding-policy
77
API documentation https://help.zscaler.com/zia/forwarding-control-policy#/forwardingRules-get
8-
Get information about forwarding control rule.
8+
Creates and manages forwarding control rule.
99
---
1010

1111
# zia_forwarding_control_rule (Resource)
@@ -22,7 +22,7 @@ The **zia_forwarding_control_rule** resource allows the creation and management
2222
## Example Usage - DIRECT Forwarding Method
2323

2424
```hcl
25-
esource "zia_forwarding_control_rule" "this" {
25+
resource "zia_forwarding_control_rule" "this" {
2626
name = "FC_DIRECT_RULE"
2727
description = "FC_DIRECT_RULE"
2828
order = 1

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ require (
99
github.com/hashicorp/go-cty v1.5.0
1010
github.com/hashicorp/go-hclog v1.6.3
1111
github.com/hashicorp/terraform-plugin-sdk v1.17.2
12-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.38.0
13-
github.com/zscaler/zscaler-sdk-go/v3 v3.7.1
12+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.38.1
13+
github.com/zscaler/zscaler-sdk-go/v3 v3.7.4
1414
)
1515

1616
require (

0 commit comments

Comments
 (0)