Skip to content

Commit a9542b5

Browse files
authored
chore: update for Bytebase 3.11 compatibility (#155)
* chore: update for Bytebase 3.11 compatibility * chore: update * chore: update * fix: test * chore: update risk level * chore: update version
1 parent 8a8d10a commit a9542b5

Some content is hidden

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

48 files changed

+271
-316
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ using Terraform Bytebase Provider to prepare those instances ready for applicati
1717

1818
- [Go](https://golang.org/doc/install) (1.19 or later)
1919
- [Terraform](https://developer.hashicorp.com/terraform/downloads?product_intent=terraform) (1.3.5 or later)
20-
- [Bytebase](https://github.com/bytebase/bytebase) (3.10.0 or later)
20+
- [Bytebase](https://github.com/bytebase/bytebase) (3.11.1 or later)
2121

2222
> If you have problems running `terraform` in MacOS with Apple Silicon, you can following https://stackoverflow.com/questions/66281882/how-can-i-get-terraform-init-to-run-on-my-apple-silicon-macbook-pro-for-the-go and use the `tfenv`.
2323

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11.0
1+
3.11.1

docs/data-sources/iam_policy.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ Optional:
5050

5151
- `database` (String) The accessible database full name in instances/{instance resource id}/databases/{database name} format
5252
- `expire_timestamp` (String) The expiration timestamp in YYYY-MM-DDThh:mm:ssZ format
53-
- `row_limit` (Number) The export row limit for exporter role
5453
- `schema` (String) The accessible schema in the database
5554
- `tables` (Set of String) The accessible table list
5655

docs/data-sources/policy.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ The policy data source.
2323
### Optional
2424

2525
- `data_source_query_policy` (Block List, Max: 1) Restrict querying admin data sources (see [below for nested schema](#nestedblock--data_source_query_policy))
26-
- `disable_copy_data_policy` (Block List, Max: 1) Restrict data copying in SQL Editor (Admins/DBAs allowed) (see [below for nested schema](#nestedblock--disable_copy_data_policy))
2726
- `global_masking_policy` (Block List, Max: 1) (see [below for nested schema](#nestedblock--global_masking_policy))
2827
- `masking_exception_policy` (Block List, Max: 1) (see [below for nested schema](#nestedblock--masking_exception_policy))
2928
- `query_data_policy` (Block List, Max: 1) The policy for query data (see [below for nested schema](#nestedblock--query_data_policy))
@@ -46,14 +45,6 @@ Optional:
4645
- `restriction` (String) RESTRICTION_UNSPECIFIED means no restriction; FALLBACK will allows to query admin data sources when there is no read-only data source; DISALLOW will always disallow to query admin data sources.
4746

4847

49-
<a id="nestedblock--disable_copy_data_policy"></a>
50-
### Nested Schema for `disable_copy_data_policy`
51-
52-
Required:
53-
54-
- `enable` (Boolean) Restrict data copying
55-
56-
5748
<a id="nestedblock--global_masking_policy"></a>
5849
### Nested Schema for `global_masking_policy`
5950

@@ -106,12 +97,10 @@ Optional:
10697
<a id="nestedblock--query_data_policy"></a>
10798
### Nested Schema for `query_data_policy`
10899

109-
Required:
110-
111-
- `disable_export` (Boolean) Disable export data in the SQL editor
112-
113100
Optional:
114101

102+
- `disable_copy_data` (Boolean) Disable copying data in the SQL editor
103+
- `disable_export` (Boolean) Disable export data in the SQL editor
115104
- `maximum_result_rows` (Number) The return rows limit. If the value <= 0, will be treated as no limit. The default value is -1.
116105
- `maximum_result_size` (Number) The size limit in bytes. The default value is 100MB, we will use the default value if the limit <= 0.
117106
- `timeout_in_seconds` (Number) The maximum time allowed for a query to run in SQL Editor. No limit when the value <= 0

docs/data-sources/policy_list.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ The policy data source list.
3030
Read-Only:
3131

3232
- `data_source_query_policy` (List of Object) (see [below for nested schema](#nestedobjatt--policies--data_source_query_policy))
33-
- `disable_copy_data_policy` (List of Object) (see [below for nested schema](#nestedobjatt--policies--disable_copy_data_policy))
3433
- `enforce` (Boolean)
3534
- `global_masking_policy` (List of Object) (see [below for nested schema](#nestedobjatt--policies--global_masking_policy))
3635
- `inherit_from_parent` (Boolean)
@@ -50,14 +49,6 @@ Read-Only:
5049
- `restriction` (String)
5150

5251

53-
<a id="nestedobjatt--policies--disable_copy_data_policy"></a>
54-
### Nested Schema for `policies.disable_copy_data_policy`
55-
56-
Read-Only:
57-
58-
- `enable` (Boolean)
59-
60-
6152
<a id="nestedobjatt--policies--global_masking_policy"></a>
6253
### Nested Schema for `policies.global_masking_policy`
6354

@@ -106,6 +97,7 @@ Read-Only:
10697

10798
Read-Only:
10899

100+
- `disable_copy_data` (Boolean)
109101
- `disable_export` (Boolean)
110102
- `maximum_result_rows` (Number)
111103
- `maximum_result_size` (Number)

docs/data-sources/setting.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,9 @@ Read-Only:
214214
Read-Only:
215215

216216
- `description` (String)
217-
- `steps` (List of Object) (see [below for nested schema](#nestedobjatt--approval_flow--rules--flow--steps))
217+
- `roles` (List of String)
218218
- `title` (String)
219219

220-
<a id="nestedobjatt--approval_flow--rules--flow--steps"></a>
221-
### Nested Schema for `approval_flow.rules.flow.title`
222-
223-
Read-Only:
224-
225-
- `role` (String)
226-
227-
228220

229221

230222

docs/resources/iam_policy.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ Optional:
5050

5151
- `database` (String) The accessible database full name in instances/{instance resource id}/databases/{database name} format
5252
- `expire_timestamp` (String) The expiration timestamp in YYYY-MM-DDThh:mm:ssZ format
53-
- `row_limit` (Number) The export row limit for exporter role
5453
- `schema` (String) The accessible schema in the database
5554
- `tables` (Set of String) The accessible table list
5655

docs/resources/policy.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ The policy resource.
2323
### Optional
2424

2525
- `data_source_query_policy` (Block List, Max: 1) Restrict querying admin data sources (see [below for nested schema](#nestedblock--data_source_query_policy))
26-
- `disable_copy_data_policy` (Block List, Max: 1) Restrict data copying in SQL Editor (Admins/DBAs allowed) (see [below for nested schema](#nestedblock--disable_copy_data_policy))
2726
- `enforce` (Boolean) Decide if the policy is enforced.
2827
- `global_masking_policy` (Block List, Max: 1) (see [below for nested schema](#nestedblock--global_masking_policy))
2928
- `inherit_from_parent` (Boolean) Decide if the policy should inherit from the parent.
@@ -46,14 +45,6 @@ Optional:
4645
- `restriction` (String) RESTRICTION_UNSPECIFIED means no restriction; FALLBACK will allows to query admin data sources when there is no read-only data source; DISALLOW will always disallow to query admin data sources.
4746

4847

49-
<a id="nestedblock--disable_copy_data_policy"></a>
50-
### Nested Schema for `disable_copy_data_policy`
51-
52-
Required:
53-
54-
- `enable` (Boolean) Restrict data copying
55-
56-
5748
<a id="nestedblock--global_masking_policy"></a>
5849
### Nested Schema for `global_masking_policy`
5950

@@ -106,12 +97,10 @@ Optional:
10697
<a id="nestedblock--query_data_policy"></a>
10798
### Nested Schema for `query_data_policy`
10899

109-
Required:
110-
111-
- `disable_export` (Boolean) Disable export data in the SQL editor
112-
113100
Optional:
114101

102+
- `disable_copy_data` (Boolean) Disable copying data in the SQL editor
103+
- `disable_export` (Boolean) Disable export data in the SQL editor
115104
- `maximum_result_rows` (Number) The return rows limit. If the value <= 0, will be treated as no limit. The default value is -1.
116105
- `maximum_result_size` (Number) The size limit in bytes. The default value is 100MB, we will use the default value if the limit <= 0.
117106
- `timeout_in_seconds` (Number) The maximum time allowed for a query to run in SQL Editor. No limit when the value <= 0

docs/resources/risk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The risk resource. Require ENTERPRISE subscription. Check the docs https://www.b
1818
### Required
1919

2020
- `condition` (String) The risk condition. Check the proto message https://github.com/bytebase/bytebase/blob/main/proto/v1/v1/risk_service.proto#L210 for details.
21-
- `level` (Number) The risk level, should be 300, 200 or 100. Higher number means higher level.
21+
- `level` (String) The risk level. Check https://github.com/bytebase/bytebase/blob/fd87c6bfe8a0d4883f25eb480a3b05ed3c2e1727/proto/v1/v1/common.proto#L93 for details
2222
- `source` (String) The risk source. Check https://github.com/bytebase/bytebase/blob/main/proto/v1/v1/risk_service.proto#L138 for details
2323
- `title` (String) The risk title.
2424

docs/resources/setting.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,13 @@ Optional:
5555

5656
Required:
5757

58-
- `steps` (Block List, Min: 1) Approval flow following the step order. (see [below for nested schema](#nestedblock--approval_flow--rules--flow--steps))
58+
- `roles` (List of String) The role require to review in this step
5959
- `title` (String)
6060

6161
Optional:
6262

6363
- `description` (String)
6464

65-
<a id="nestedblock--approval_flow--rules--flow--steps"></a>
66-
### Nested Schema for `approval_flow.rules.flow.steps`
67-
68-
Required:
69-
70-
- `role` (String) The role require to review in this step
71-
72-
7365

7466
<a id="nestedblock--approval_flow--rules--conditions"></a>
7567
### Nested Schema for `approval_flow.rules.conditions`

0 commit comments

Comments
 (0)