Skip to content

Commit 3ef8e02

Browse files
authored
chore: support new tls config and release 3.17.4 (#194)
1 parent fb0f14a commit 3ef8e02

44 files changed

Lines changed: 742 additions & 78 deletions

Some content is hidden

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

README.md

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

1616
- [Go](https://golang.org/doc/install) (1.19 or later)
1717
- [Terraform](https://developer.hashicorp.com/terraform/downloads?product_intent=terraform) (1.3.5 or later)
18-
- [Bytebase](https://github.com/bytebase/bytebase) (3.17.0 or later)
18+
- [Bytebase](https://github.com/bytebase/bytebase) (3.17.1 or later)
1919

2020
> 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`.
2121

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.17.3
1+
3.17.4

docs/data-sources/database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Read-Only:
5555
- `object_schema_json` (String)
5656

5757
<a id="nestedobjatt--catalog--schemas--tables--columns"></a>
58-
### Nested Schema for `catalog.schemas.tables.columns`
58+
### Nested Schema for `catalog.schemas.tables.object_schema_json`
5959

6060
Read-Only:
6161

docs/data-sources/instance.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,17 @@ Read-Only:
7676
- `ssh_private_key` (String)
7777
- `ssh_user` (String)
7878
- `ssl_ca` (String)
79+
- `ssl_ca_path` (String)
80+
- `ssl_ca_path_set` (Boolean)
81+
- `ssl_ca_set` (Boolean)
7982
- `ssl_cert` (String)
83+
- `ssl_cert_path` (String)
84+
- `ssl_cert_path_set` (Boolean)
85+
- `ssl_cert_set` (Boolean)
8086
- `ssl_key` (String)
87+
- `ssl_key_path` (String)
88+
- `ssl_key_path_set` (Boolean)
89+
- `ssl_key_set` (Boolean)
8190
- `type` (String)
8291
- `use_ssl` (Boolean)
8392
- `username` (String)

docs/data-sources/instance_list.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,17 @@ Read-Only:
8585
- `ssh_private_key` (String)
8686
- `ssh_user` (String)
8787
- `ssl_ca` (String)
88+
- `ssl_ca_path` (String)
89+
- `ssl_ca_path_set` (Boolean)
90+
- `ssl_ca_set` (Boolean)
8891
- `ssl_cert` (String)
92+
- `ssl_cert_path` (String)
93+
- `ssl_cert_path_set` (Boolean)
94+
- `ssl_cert_set` (Boolean)
8995
- `ssl_key` (String)
96+
- `ssl_key_path` (String)
97+
- `ssl_key_path_set` (Boolean)
98+
- `ssl_key_set` (Boolean)
9099
- `type` (String)
91100
- `use_ssl` (Boolean)
92101
- `username` (String)

docs/data-sources/setting.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,8 @@ Required:
4747
Required:
4848

4949
- `id` (String) The classification unique id, must in {number}-{number} format.
50-
- `title` (String) The classification title.
51-
52-
Optional:
53-
5450
- `level` (Number) The classification sensitivity level. Maps to Level.level.
51+
- `title` (String) The classification title.
5552

5653

5754
<a id="nestedblock--classification--levels"></a>

docs/resources/group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ The group resource. Workspace domain is required for creating groups.
1818
### Required
1919

2020
- `email` (String) The group email.
21-
- `members` (Block Set, Min: 1) The members in the group. (see [below for nested schema](#nestedblock--members))
2221
- `title` (String) The group title.
2322

2423
### Optional
2524

2625
- `description` (String) The group description.
26+
- `members` (Block Set) The members in the group. (see [below for nested schema](#nestedblock--members))
2727

2828
### Read-Only
2929

docs/resources/instance.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,26 @@ Optional:
7979
- `ssh_port` (String) SSH tunnel server port. Only available for MYSQL, TIDB, MARIADB, OCEANBASE, POSTGRES, REDIS with PASSWORD authentication.
8080
- `ssh_private_key` (String, Sensitive) SSH tunnel private key. Only available for MYSQL, TIDB, MARIADB, OCEANBASE, POSTGRES, REDIS with PASSWORD authentication.
8181
- `ssh_user` (String) SSH tunnel username. Only available for MYSQL, TIDB, MARIADB, OCEANBASE, POSTGRES, REDIS with PASSWORD authentication.
82-
- `ssl_ca` (String, Sensitive) The CA certificate. Optional, you can set this if the engine type is MYSQL, POSTGRES, TIDB or CLICKHOUSE.
83-
- `ssl_cert` (String, Sensitive) The client certificate. Optional, you can set this if the engine type is MYSQL, POSTGRES, TIDB or CLICKHOUSE.
84-
- `ssl_key` (String, Sensitive) The client key. Optional, you can set this if the engine type is MYSQL, POSTGRES, TIDB or CLICKHOUSE.
82+
- `ssl_ca` (String, Sensitive) The inline PEM CA certificate. Mutually exclusive with ssl_ca_path.
83+
- `ssl_ca_path` (String) Absolute filesystem path to the CA certificate on the Bytebase server. Mutually exclusive with ssl_ca.
84+
- `ssl_cert` (String, Sensitive) The inline PEM client certificate. Mutually exclusive with ssl_cert_path.
85+
- `ssl_cert_path` (String) Absolute filesystem path to the client certificate on the Bytebase server. Mutually exclusive with ssl_cert.
86+
- `ssl_key` (String, Sensitive) The inline PEM client private key. Mutually exclusive with ssl_key_path.
87+
- `ssl_key_path` (String) Absolute filesystem path to the client private key on the Bytebase server. Mutually exclusive with ssl_key.
8588
- `use_ssl` (Boolean) Enable SSL connection. Required to use SSL certificates.
8689
- `username` (String) The connection user name used by Bytebase to perform DDL and DML operations.
8790
- `verify_tls_certificate` (Boolean) Enable TLS certificate verification for SSL connections.
8891
- `warehouse_id` (String) Databricks warehouse ID. Only available for DATABRICKS engine.
8992

93+
Read-Only:
94+
95+
- `ssl_ca_path_set` (Boolean) Whether a CA certificate path has been configured.
96+
- `ssl_ca_set` (Boolean) Whether an inline CA certificate has been configured.
97+
- `ssl_cert_path_set` (Boolean) Whether a client certificate path has been configured.
98+
- `ssl_cert_set` (Boolean) Whether an inline client certificate has been configured.
99+
- `ssl_key_path_set` (Boolean) Whether a client private key path has been configured.
100+
- `ssl_key_set` (Boolean) Whether an inline client private key has been configured.
101+
90102
<a id="nestedblock--data_sources--additional_addresses"></a>
91103
### Nested Schema for `data_sources.additional_addresses`
92104

docs/resources/setting.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,8 @@ Required:
8181
Required:
8282

8383
- `id` (String) The classification unique id, must in {number}-{number} format.
84-
- `title` (String) The classification title.
85-
86-
Optional:
87-
8884
- `level` (Number) The classification sensitivity level. Maps to Level.level.
85+
- `title` (String) The classification title.
8986

9087

9188
<a id="nestedblock--classification--levels"></a>

examples/approval/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
bytebase = {
4-
version = "3.17.0"
4+
version = "3.17.4"
55
# For local development, please use "terraform.local/bytebase/bytebase" instead
66
source = "terraform.local/bytebase/bytebase"
77
}

0 commit comments

Comments
 (0)