Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added new DLP Web Rule FileTypes #380

Merged
merged 4 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/zia-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ jobs:
ZIA_ACC_TEST_FORCE_SWEEPERS: ${{ secrets.ZIA_ACC_TEST_FORCE_SWEEPERS }}

- name: Publish test coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.out
files: ./coverage.out
fail_ci_if_error: true
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 3.0.7 (November, 17 2024)

### Notes

- Release date: **(November, 17 2024)**
- Supported Terraform version: **v1.x**

### Internal Fixes

- [PR #374](https://github.com/zscaler/terraform-provider-zia/pull/374) - Added new `file_types` supported values in the `zia_dlp_web_rules` resource. See the [zia_dlp_web_rules](https://registry.terraform.io/providers/zscaler/zia/latest/docs/resources/zia_dlp_web_rules) documentation.

## 3.0.6 (October, 8 2024)

### Notes
Expand Down
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ test\:integration\:zscalertwo:
build13: GOOS=$(shell go env GOOS)
build13: GOARCH=$(shell go env GOARCH)
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/3.0.6/$(GOOS)_$(GOARCH)
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/3.0.7/$(GOOS)_$(GOARCH)
else
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/3.0.6/$(GOOS)_$(GOARCH)
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/3.0.7/$(GOOS)_$(GOARCH)
endif
build13: fmtcheck
@echo "==> Installing plugin to $(DESTINATION)"
@mkdir -p $(DESTINATION)
go build -o $(DESTINATION)/terraform-provider-zia_v3.0.6
go build -o $(DESTINATION)/terraform-provider-zia_v3.0.7

coverage: test
@echo "✓ Opening coverage for unit tests ..."
Expand Down
13 changes: 12 additions & 1 deletion docs/guides/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@ description: |-
Track all ZIA Terraform provider's releases. New resources, features, and bug fixes will be tracked here.

---
``Last updated: v3.0.6``
``Last updated: v3.0.7``

---

## 3.0.7 (November, 17 2024)

### Notes

- Release date: **(November, 17 2024)**
- Supported Terraform version: **v1.x**

### Internal Fixes

- [PR #374](https://github.com/zscaler/terraform-provider-zia/pull/374) - Added new `file_types` supported values in the `zia_dlp_web_rules` resource. See the [zia_dlp_web_rules](https://registry.terraform.io/providers/zscaler/zia/latest/docs/resources/zia_dlp_web_rules) documentation.

## 3.0.6 (October, 8 2024)

### Notes
Expand Down
56 changes: 56 additions & 0 deletions docs/resources/zia_dlp_web_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,62 @@ The following arguments are supported:
* `id` - (Optional) A unique identifier assigned to the workload group
* `name` - (Optional) The name of the workload group

| Inspection Type | File Types |
|:------------------------------------------|:--------------------------------------------------------------|
|--------------------------------|-------------------------------------------------------|
| | `FTCATEGORY_ENCRYPT`, `FTCATEGORY_P7Z`, |
| | `FTCATEGORY_BZIP2`, `FTCATEGORY_CAB`, |
| | `FTCATEGORY_FCL`, `FTCATEGORY_GZIP`, |
| `WITHOUT INSPECTION` | `FTCATEGORY_ISO`, `FTCATEGORY_LZH`, |
| | `FTCATEGORY_RAR`,`FTCATEGORY_STUFFIT`, |
| | `FTCATEGORY_TAR`, `FTCATEGORY_XZ`, |
| | `FTCATEGORY_ZIP`, `FTCATEGORY_SCZIP`, |
| | `FTCATEGORY_ZIPX` |
|--------------------------------|--------------------------------------------------------|
|--------------------------------|--------------------------------------------------------|
| | `FTCATEGORY_ACCDB`, `FTCATEGORY_APPLE_DOCUMENTS`, |
| | `FTCATEGORY_ASM`, `FTCATEGORY_AU3`, |
| | `FTCATEGORY_BASH_SCRIPTS`, `FTCATEGORY_BASIC_SOURCE_CODE`, |
| | `FTCATEGORY_BCP`,`FTCATEGORY_BITMAP`, |
| | `FTCATEGORY_BORLAND_CPP_FILES`, `FTCATEGORY_C_FILES`, |
| | `FTCATEGORY_COBOL`,`FTCATEGORY_CSV`, |
| | `FTCATEGORY_CSX`,`FTCATEGORY_DAT`, |
| | `FTCATEGORY_DCM`, `FTCATEGORY_DELPHI`, |
| | `FTCATEGORY_F_FILES`,`FTCATEGORY_FOR`, |
| | `FTCATEGORY_FORM_DATA_POST`, `FTCATEGORY_DSP`, |
| | `FTCATEGORY_EML_FILES`, `FTCATEGORY_GO_FILES`, |
| | `FTCATEGORY_HTTP`,`FTCATEGORY_IFC`, |
| | `FTCATEGORY_INCLUDE_FILES`,`FTCATEGORY_INF`, |
| | `FTCATEGORY_JAVA_FILES`,`FTCATEGORY_JPEG`, |
| | `FTCATEGORY_JSON`,`FTCATEGORY_LOG_FILES`, |
| | `FTCATEGORY_MAKE_FILES`, `FTCATEGORY_MATLAB_FILES`, |
| | `FTCATEGORY_MS_EXCEL`,`FTCATEGORY_MS_MDB`, |
| | `FTCATEGORY_MS_MSG`,`FTCATEGORY_MS_POWERPOINT`, |
| `WITH INSPECTION` | `FTCATEGORY_MS_PUB`,`FTCATEGORY_MS_RTF`, |
| | `FTCATEGORY_MS_WORD`,`FTCATEGORY_MSC`, |
| | `FTCATEGORY_NATVIS`,`FTCATEGORY_OLM`, |
| | `FTCATEGORY_OPEN_OFFICE_PRESENTATIONS`, |
| | `FTCATEGORY_OPEN_OFFICE_SPREADSHEETS`, |
| | `FTCATEGORY_MS_CPP_FILES`, `FTCATEGORY_PDF_DOCUMENT`, |
| | `FTCATEGORY_PERL_FILES`,`FTCATEGORY_PNG`, |
| | `FTCATEGORY_POD`,`FTCATEGORY_POWERSHELL`, |
| | `FTCATEGORY_PYTHON`, `FTCATEGORY_RES_FILES`, |
| | `FTCATEGORY_RPY`,`FTCATEGORY_RSP`, |
| | `FTCATEGORY_RUBY_FILES`,`FTCATEGORY_SAS`, |
| | `FTCATEGORY_SC`,`FTCATEGORY_SCALA`, |
| | `FTCATEGORY_SCT`,`FTCATEGORY_SHELL_SCRAP`, |
| | `FTCATEGORY_SQL`,`FTCATEGORY_TABLEAU_FILES`, |
| | `FTCATEGORY_TIFF`, `FTCATEGORY_TLH` |
| | `FTCATEGORY_TLI`,`FTCATEGORY_TXT`, |
| | `FTCATEGORY_UNK_TXT`,`FTCATEGORY_XAML` |
| | `FTCATEGORY_VISUAL_BASIC_SCRIPT`, |
| | `FTCATEGORY_VISUAL_CPP_FILES`,`FTCATEGORY_VSDX`, |
| | `FTCATEGORY_X1B`,`FTCATEGORY_VISUAL_BASIC_FILES`, |
| | `FTCATEGORY_XML`, `FTCATEGORY_YAML_FILES`, |
| | `FTCATEGORY_JAVA_APPLET`,`FTCATEGORY_JAVASCRIPT` |
| | `FTCATEGORY_WINDOWS_SCRIPT_FILES` |
|------------------------------|----------------------------------------------------------|

## Import

Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language.
Expand Down
38 changes: 19 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/zscaler/terraform-provider-zia/v3

go 1.22
go 1.22.0

toolchain go1.23.1

Expand All @@ -10,8 +10,8 @@ require (
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
github.com/hashicorp/go-hclog v1.6.3
github.com/hashicorp/terraform-plugin-sdk v1.17.2
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
github.com/zscaler/zscaler-sdk-go/v2 v2.72.5
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
github.com/zscaler/zscaler-sdk-go/v2 v2.74.0
)

require (
Expand All @@ -29,16 +29,16 @@ require (
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.6.0 // indirect
github.com/hashicorp/go-plugin v1.6.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/hc-install v0.6.4 // indirect
github.com/hashicorp/hcl/v2 v2.20.1 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/hashicorp/hc-install v0.9.0 // indirect
github.com/hashicorp/hcl/v2 v2.22.0 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.21.0 // indirect
github.com/hashicorp/terraform-json v0.22.1 // indirect
github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect
github.com/hashicorp/terraform-json v0.23.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.25.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
Expand All @@ -54,16 +54,16 @@ require (
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/zclconf/go-cty v1.14.4 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.19.0 // indirect
github.com/zclconf/go-cty v1.15.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sync v0.9.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.20.0 // indirect
golang.org/x/tools v0.22.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
google.golang.org/grpc v1.63.2 // indirect
google.golang.org/protobuf v1.34.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.35.1 // indirect
)
Loading
Loading