Skip to content

Commit 492ae9b

Browse files
authored
feat: Release v4.0.0 Provider Upgrade to OneAPI (#383)
* feat: Release v4.0.0 OneAPI Upgrade
1 parent 5df1da5 commit 492ae9b

File tree

262 files changed

+21586
-3219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

262 files changed

+21586
-3219
lines changed

.github/workflows/zia-test.yml

Lines changed: 11 additions & 215 deletions
Original file line numberDiff line numberDiff line change
@@ -18,219 +18,15 @@ on:
1818
workflow_dispatch:
1919

2020
jobs:
21-
# zia-zsbeta-tests:
22-
# environment: ZIA_ZSBETA
23-
# runs-on: ubuntu-latest
24-
# strategy:
25-
# fail-fast: false
26-
# matrix:
27-
# goVersion: ["1.21"]
28-
# steps:
29-
# - name: Checkout code
30-
# uses: actions/checkout@v4
3121

32-
# - name: Setup Go
33-
# uses: actions/setup-go@v5
34-
# with:
35-
# go-version: ${{ matrix.goVersion }}
36-
37-
# - name: Set Go env
38-
# run: |
39-
# echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
40-
# echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
41-
42-
# - name: Setup Go Tools
43-
# run: make tools
44-
45-
# - name: Download Go Dependencies
46-
# run: |
47-
# go mod tidy && go mod vendor
48-
49-
# - name: Setup Go Tools
50-
# run: make tools
51-
52-
# - name: Check Formatting
53-
# run: make fmtcheck
54-
55-
# # - name: Vet Code
56-
# # run: make vet
57-
58-
# - name: Lint Code
59-
# run: make lint
60-
61-
# - name: Check Build
62-
# run: make build
63-
64-
# - name: Run tests with retry
65-
# uses: nick-fields/retry@v3
66-
# with:
67-
# max_attempts: 3
68-
# timeout_minutes: 120
69-
# command: |
70-
# make sweep
71-
# make test:integration:zia
72-
# make sweep
73-
74-
# env:
75-
# ZIA_USERNAME: ${{ secrets.ZIA_USERNAME }}
76-
# ZIA_PASSWORD: ${{ secrets.ZIA_PASSWORD }}
77-
# ZIA_API_KEY: ${{ secrets.ZIA_API_KEY }}
78-
# ZIA_CLOUD: ${{ secrets.ZIA_CLOUD }}
79-
# ZIA_SANDBOX_TOKEN: ${{ secrets.ZIA_SANDBOX_TOKEN }}
80-
# ZPA_CLIENT_ID: ${{ secrets.ZPA_CLIENT_ID }}
81-
# ZPA_CLIENT_SECRET: ${{ secrets.ZPA_CLIENT_SECRET }}
82-
# ZPA_CUSTOMER_ID: ${{ secrets.ZPA_CUSTOMER_ID }}
83-
# ZPA_CLOUD: ${{ secrets.ZPA_CLOUD }}
84-
# TF_ACC: ${{ secrets.TF_ACC }}
85-
# ZIA_ACC_TEST_FORCE_SWEEPERS: ${{ secrets.ZIA_ACC_TEST_FORCE_SWEEPERS }}
86-
87-
# zia-test-tenants:
88-
# needs: [zia-zsbeta-tests]
89-
# runs-on: ubuntu-latest
90-
# strategy:
91-
# fail-fast: false
92-
# matrix:
93-
# goVersion: ["1.21"]
94-
# environment:
95-
# # - ZIA_ZSCLOUD
96-
# - ZIA_ZS0
97-
# # - ZIA_ZS1
98-
# # - ZIA_ZS2
99-
# # - ZIA_ZS3
100-
# environment: ${{ matrix.environment }}
101-
# steps:
102-
# - name: Checkout code
103-
# uses: actions/checkout@v4
104-
105-
# - name: Setup Go
106-
# uses: actions/setup-go@v5
107-
# with:
108-
# go-version: ${{ matrix.goVersion }}
109-
110-
# - name: Set Go env
111-
# run: |
112-
# echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
113-
# echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
114-
115-
# - name: Setup Go Tools
116-
# run: make tools
117-
118-
# - name: Download Go Dependencies
119-
# run: |
120-
# go mod tidy && go mod vendor
121-
122-
# - name: Setup Go Tools
123-
# run: make tools
124-
125-
# - name: Check Formatting
126-
# run: make fmtcheck
127-
128-
# # - name: Vet Code
129-
# # run: make vet
130-
131-
# - name: Lint Code
132-
# run: make lint
133-
134-
# - name: Check Build
135-
# run: make build
136-
137-
# - name: Run tests with retry on Ubuntu
138-
# uses: nick-fields/retry@v3
139-
# with:
140-
# max_attempts: 3
141-
# timeout_minutes: 120
142-
# command: |
143-
# make sweep
144-
# make test:integration:zscalerone
145-
# make sweep
146-
# env:
147-
# ZIA_USERNAME: ${{ secrets.ZIA_USERNAME }}
148-
# ZIA_PASSWORD: ${{ secrets.ZIA_PASSWORD }}
149-
# ZIA_API_KEY: ${{ secrets.ZIA_API_KEY }}
150-
# ZIA_CLOUD: ${{ secrets.ZIA_CLOUD }}
151-
# ZIA_SANDBOX_TOKEN: ${{ secrets.ZIA_SANDBOX_TOKEN }}
152-
# ZPA_CLIENT_ID: ${{ secrets.ZPA_CLIENT_ID }}
153-
# ZPA_CLIENT_SECRET: ${{ secrets.ZPA_CLIENT_SECRET }}
154-
# ZPA_CUSTOMER_ID: ${{ secrets.ZPA_CUSTOMER_ID }}
155-
# ZPA_CLOUD: ${{ secrets.ZPA_CLOUD }}
156-
# TF_ACC: ${{ secrets.TF_ACC }}
157-
# ZIA_ACC_TEST_FORCE_SWEEPERS: ${{ secrets.ZIA_ACC_TEST_FORCE_SWEEPERS }}
158-
159-
# zia-zscalerone-test:
160-
# runs-on: ubuntu-latest
161-
# strategy:
162-
# fail-fast: false
163-
# matrix:
164-
# goVersion: ["1.21"]
165-
# environment:
166-
# - ZIA_ZS1
167-
# environment: ${{ matrix.environment }}
168-
# steps:
169-
# - name: Checkout code
170-
# uses: actions/checkout@v4
171-
172-
# - name: Setup Go
173-
# uses: actions/setup-go@v5
174-
# with:
175-
# go-version: ${{ matrix.goVersion }}
176-
177-
# - name: Set Go env
178-
# run: |
179-
# echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
180-
# echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
181-
182-
# - name: Setup Go Tools
183-
# run: make tools
184-
185-
# - name: Download Go Dependencies
186-
# run: |
187-
# go mod tidy && go mod vendor
188-
189-
# - name: Setup Go Tools
190-
# run: make tools
191-
192-
# - name: Check Formatting
193-
# run: make fmtcheck
194-
195-
# # - name: Vet Code
196-
# # run: make vet
197-
198-
# - name: Lint Code
199-
# run: make lint
200-
201-
# - name: Check Build
202-
# run: make build
203-
204-
# - name: Run tests with retry on Ubuntu
205-
# uses: nick-fields/retry@v3
206-
# with:
207-
# max_attempts: 3
208-
# timeout_minutes: 45 # Adjust as needed
209-
# command: |
210-
# make sweep
211-
# make test:integration:zscalerone
212-
# make sweep
213-
# env:
214-
# ZIA_USERNAME: ${{ secrets.ZIA_USERNAME }}
215-
# ZIA_PASSWORD: ${{ secrets.ZIA_PASSWORD }}
216-
# ZIA_API_KEY: ${{ secrets.ZIA_API_KEY }}
217-
# ZIA_CLOUD: ${{ secrets.ZIA_CLOUD }}
218-
# ZIA_SANDBOX_TOKEN: ${{ secrets.ZIA_SANDBOX_TOKEN }}
219-
# ZPA_CLIENT_ID: ${{ secrets.ZPA_CLIENT_ID }}
220-
# ZPA_CLIENT_SECRET: ${{ secrets.ZPA_CLIENT_SECRET }}
221-
# ZPA_CUSTOMER_ID: ${{ secrets.ZPA_CUSTOMER_ID }}
222-
# ZPA_CLOUD: ${{ secrets.ZPA_CLOUD }}
223-
# TF_ACC: ${{ secrets.TF_ACC }}
224-
# ZIA_ACC_TEST_FORCE_SWEEPERS: ${{ secrets.ZIA_ACC_TEST_FORCE_SWEEPERS }}
225-
226-
zia-zscalertwo-test:
22+
zia-zsbeta-tests:
22723
runs-on: ubuntu-latest
22824
strategy:
22925
fail-fast: false
23026
matrix:
23127
goVersion: ["1.21"]
23228
environment:
233-
- ZIA_ZS2
29+
- ZIA_ZSBETA
23430
environment: ${{ matrix.environment }}
23531
steps:
23632
- name: Checkout code
@@ -278,15 +74,15 @@ jobs:
27874
make test:integration:zia
27975
make sweep
28076
env:
281-
ZIA_USERNAME: ${{ secrets.ZIA_USERNAME }}
282-
ZIA_PASSWORD: ${{ secrets.ZIA_PASSWORD }}
283-
ZIA_API_KEY: ${{ secrets.ZIA_API_KEY }}
284-
ZIA_CLOUD: ${{ secrets.ZIA_CLOUD }}
285-
ZIA_SANDBOX_TOKEN: ${{ secrets.ZIA_SANDBOX_TOKEN }}
286-
ZPA_CLIENT_ID: ${{ secrets.ZPA_CLIENT_ID }}
287-
ZPA_CLIENT_SECRET: ${{ secrets.ZPA_CLIENT_SECRET }}
288-
ZPA_CUSTOMER_ID: ${{ secrets.ZPA_CUSTOMER_ID }}
289-
ZPA_CLOUD: ${{ secrets.ZPA_CLOUD }}
77+
ZSCALER_CLIENT_ID: ${{ secrets.ZSCALER_CLIENT_ID }}
78+
ZSCALER_CLIENT_SECRET: ${{ secrets.ZSCALER_CLIENT_SECRET }}
79+
ZSCALER_VANITY_DOMAIN: ${{ secrets.ZSCALER_VANITY_DOMAIN }}
80+
ZSCALER_CLOUD: ${{ secrets.ZSCALER_CLOUD }}
81+
# ZSCALER_SDK_LOG: ${{ secrets.ZSCALER_SDK_LOG }}
82+
# ZSCALER_SDK_VERBOSE: ${{ secrets.ZSCALER_SDK_VERBOSE }}
83+
ZIA_SDK_TEST_SWEEP: ${{ secrets.ZIA_SDK_TEST_SWEEP }}
84+
ZSCALER_SANDBOX_TOKEN: ${{ secrets.ZSCALER_SANDBOX_TOKEN }}
85+
ZSCALER_SANDBOX_CLOUD: ${{ secrets.ZSCALER_SANDBOX_CLOUD }}
29086
TF_ACC: ${{ secrets.TF_ACC }}
29187
ZIA_ACC_TEST_FORCE_SWEEPERS: ${{ secrets.ZIA_ACC_TEST_FORCE_SWEEPERS }}
29288

CHANGELOG.md

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

3+
## 4.0.0 (January, 21 2025) - BREAKING CHANGES
4+
5+
### Notes
6+
7+
- Release date: **(January, 21 2025)**
8+
- Supported Terraform version: **v1.x**
9+
10+
#### Enhancements - Zscaler OneAPI Support
11+
12+
[PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383): The ZIA Terraform Provider now offers support for [OneAPI](https://help.zscaler.com/oneapi/understanding-oneapi) Oauth2 authentication through [Zidentity](https://help.zscaler.com/zidentity/what-zidentity).
13+
14+
**NOTE** As of version v4.0.0, this Terraform provider offers backwards compatibility to the Zscaler legacy API framework. This is the recommended authentication method for organizations whose tenants are still not migrated to [Zidentity](https://help.zscaler.com/zidentity/what-zidentity).
15+
16+
⚠️ **WARNING**: Please refer to the [Index Page](https://github.com/zscaler/terraform-provider-zia/blob/master/docs/index.md) page for details on authentication requirements prior to upgrading your provider configuration.
17+
18+
⚠️ **WARNING**: Attention Government customers. OneAPI and Zidentity is not currently supported for the following clouds: `zscalergov` and `zscalerten`. Refer to the [Legacy API Framework](https://github.com/zscaler/terraform-provider-zpa/blob/master/docs/index) section for more information on how authenticate to these environments using the legacy method.
19+
20+
### NEW - RESOURCES, DATA SOURCES, PROPERTIES, ATTRIBUTES, ENV VARS
21+
22+
#### ENV VARS: ZIA Sandbox Submission - BREAKING CHANGES
23+
24+
[PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383): Authentication to Zscaler Sandbox service now use the following attributes.
25+
26+
- `sandboxToken` - Can also be sourced from the `ZSCALER_SANDBOX_TOKEN` environment variable.
27+
- `sandboxCloud` - Can also be sourced from the `ZSCALER_SANDBOX_CLOUD` environment variable.
28+
29+
The use of the previous envioronment variables combination `ZIA_SANDBOX_TOKEN` and `ZIA_CLOUD` is now deprecated.
30+
31+
### NEW - RESOURCES, DATA SOURCES
32+
33+
[PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383): The following new resources and data sources have been introduced:
34+
35+
- Added the datasource and resource ``zia_sandbox_rules`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manage Sandbox Rules
36+
- Added the datasource and resource ``zia_firewall_dns_rule``[PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manage Cloud Firewall DNS Rules
37+
- Added the datasource and resource ``zia_firewall_ips_rule`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manage Cloud Firewall IPS Rules
38+
- Added the datasource and resource ``zia_file_type_control_rules`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manage File Type Control Rules
39+
- Added the datasource and resource ``zia_advanced_threat_settings`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages advanced threat configuration settings
40+
- Added the datasource and resource ``zia_atp_malicious_urls`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages malicious URLs added to the denylist in ATP policy
41+
- Added the datasource and resource ``zia_atp_security_exceptions`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages Security Exceptions (URL Bypass List) for the ATP policy
42+
- Added the datasource and resource ``zia_advanced_settings`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages Advanced Settings configuration. [Configuring Advanced Settings](https://help.zscaler.com/zia/configuring-advanced-settings)
43+
- Added the datasource and resource ``zia_atp_malware_inspection`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages Advanced Threat Protection Malware Inspection configuration. [Malware Protection](https://help.zscaler.com/zia/policies/malware-protection)
44+
- Added the datasource and resource ``zia_atp_malware_protocols`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages Advanced Threat Protection Malware Protocols configuration. [Malware Protection](https://help.zscaler.com/zia/policies/malware-protection)
45+
- Added the datasource and resource ``zia_atp_malware_settings`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages Advanced Threat Protection Malware Settings. [Malware Protection](https://help.zscaler.com/zia/policies/malware-protection)
46+
- Added the datasource and resource ``zia_atp_malware_policy`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages Advanced Threat Protection Malware Policy. [Malware Protection](https://help.zscaler.com/zia/policies/malware-protection)
47+
- Added the datasource and resource ``zia_end_user_notification`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Retrieves information of browser-based end user notification (EUN) configuration details.[Understanding Browser-Based End User Notifications](https://help.zscaler.com/zia/understanding-browser-based-end-user-notifications)
48+
- Added the datasource and resource ``zia_url_filtering_and_cloud_app_settings`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages the URL and Cloud App Control advanced policy settings.[Configuring Advanced Policy Settings](https://help.zscaler.com/zia/configuring-advanced-policy-settings)
49+
- Added the datasource ``zia_cloud_applications`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Retrieves Predefined and User Defined Cloud Applications associated with the DLP rules, Cloud App Control rules, Advanced Settings, Bandwidth Classes, File Type Control rules, and SSL Inspection rules.
50+
- Added the datasource ``zia_forwarding_control_proxy_gateway`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Retrieves information of existing Proxy Gateway configuration.
51+
- Added the datasource and resource ``zia_ssl_inspection_rules`` [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) :rocket: - Manages SSL Inspection Rules.
52+
53+
#### NEW ATTRIBUTES
54+
55+
- [PR #383](https://github.com/zscaler/terraform-provider-zia/pull/383) - Added new `actions` values to resource `zia_cloud_app_control_rule`.
56+
Please refer to the [Cloud Application Control - Rule Types vs Actions Matrix](https://github.com/zscaler/terraform-provider-zia/blob/master/docs/resources/zia_cloud_app_control_rule.md#cloud-application-control---rule-types-vs-actions-matrix) page for details each action per `rule_type`
57+
358
## 3.0.7 (November, 17 2024)
459

560
### 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)/3.0.7/$(GOOS)_$(GOARCH)
199+
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/4.0.0/$(GOOS)_$(GOARCH)
200200
else
201-
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/3.0.7/$(GOOS)_$(GOARCH)
201+
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/4.0.0/$(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_v3.0.7
206+
go build -o $(DESTINATION)/terraform-provider-zia_v4.0.0
207207

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

0 commit comments

Comments
 (0)