Skip to content

Commit dc915d0

Browse files
authored
Update changelog for v0.8.11 (#670)
* Update changelog for v0.8.11 * Add a note for the default network policy
1 parent 59cbace commit dc915d0

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed

Diff for: CHANGELOG.md

+74
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,79 @@
11
# Changelog
22

3+
## 0.8.11 - 2024-11-13
4+
5+
## Features
6+
7+
* Adding a new `materialize_network_policy` resource and data source [#669](https://github.com/MaterializeInc/terraform-provider-materialize/pull/669).
8+
9+
A network policy allows you to manage access to the system through IP-based rules.
10+
11+
* Example `materialize_network_policy` resource:
12+
13+
```hcl
14+
resource "materialize_network_policy" "office_policy" {
15+
name = "office_access_policy"
16+
17+
rule {
18+
name = "new_york"
19+
action = "allow"
20+
direction = "ingress"
21+
address = "8.2.3.4/28"
22+
}
23+
24+
rule {
25+
name = "minnesota"
26+
action = "allow"
27+
direction = "ingress"
28+
address = "2.3.4.5/32"
29+
}
30+
31+
comment = "Network policy for office locations"
32+
}
33+
```
34+
35+
* Example `materialize_network_policy` data source:
36+
37+
```hcl
38+
data "materialize_network_policy" "all" {}
39+
```
40+
41+
* Added support for the new `CREATENETWORKPOLICY` system privilege:
42+
43+
```hcl
44+
resource "materialize_role" "test" {
45+
name = "test_role"
46+
}
47+
48+
resource "materialize_grant_system_privilege" "role_createnetworkpolicy" {
49+
role_name = materialize_role.test.name
50+
privilege = "CREATENETWORKPOLICY"
51+
}
52+
```
53+
54+
* An initial `default` network policy will be created.
55+
This policy allows open access to the environment and can be altered by a `superuser`.
56+
Use the `ALTER SYSTEM SET network_policy TO 'office_access_policy'` command
57+
or the `materialize_system_parameter` resource to update the default network policy.
58+
59+
```hcl
60+
resource "materialize_system_parameter" "system_parameter" {
61+
name = "network_policy"
62+
value = "office_access_policy"
63+
}
64+
```
65+
66+
## Bug Fixes
67+
68+
* Updated the cluster and cluster replica query builders to skip `DISK` property for `cc` and `C` clusters as this is enabled by default for those sizes [#671](https://github.com/MaterializeInc/terraform-provider-materialize/pull/671)
69+
70+
## Misc
71+
72+
* Upgrade from `pgx` v3 to v4 [#663](https://github.com/MaterializeInc/terraform-provider-materialize/pull/663)
73+
* Routine dependency updates: [#668](https://github.com/MaterializeInc/terraform-provider-materialize/pull/668), [#667](https://github.com/MaterializeInc/terraform-provider-materialize/pull/667)
74+
* Upgraded Go version from `1.22.0` to `1.22.7` for improved performance and security fixes [#669](https://github.com/MaterializeInc/terraform-provider-materialize/pull/669)
75+
* Added `--bootstrap-builtin-analytics-cluster-replica-size` to the Docker compose file to fix failing tests [#671](https://github.com/MaterializeInc/terraform-provider-materialize/pull/671)
76+
377
## 0.8.10 - 2024-10-7
478
579
## Features

Diff for: docs/resources/network_policy.md

+9
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ resource "materialize_network_policy" "office_policy" {
3232
3333
comment = "Network policy for office locations"
3434
}
35+
36+
# An initial `default` network policy will be created.
37+
# This policy allows open access to the environment and can be altered by a `superuser`.
38+
# Use the `ALTER SYSTEM SET network_policy TO 'office_access_policy'` command.
39+
# Or the `materialize_system_parameter` resource to set the default network policy.
40+
resource "materialize_system_parameter" "system_parameter" {
41+
name = "network_policy"
42+
value = "office_access_policy"
43+
}
3544
```
3645

3746
<!-- schema generated by tfplugindocs -->

Diff for: examples/resources/materialize_network_policy/resource.tf

+9
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ resource "materialize_network_policy" "office_policy" {
1717

1818
comment = "Network policy for office locations"
1919
}
20+
21+
# An initial `default` network policy will be created.
22+
# This policy allows open access to the environment and can be altered by a `superuser`.
23+
# Use the `ALTER SYSTEM SET network_policy TO 'office_access_policy'` command.
24+
# Or the `materialize_system_parameter` resource to set the default network policy.
25+
resource "materialize_system_parameter" "system_parameter" {
26+
name = "network_policy"
27+
value = "office_access_policy"
28+
}

0 commit comments

Comments
 (0)