|
1 | 1 | # Changelog
|
2 | 2 |
|
| 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 | +
|
3 | 77 | ## 0.8.10 - 2024-10-7
|
4 | 78 |
|
5 | 79 | ## Features
|
|
0 commit comments