Skip to content

Conversation

@hcloud-bot
Copy link
Collaborator

@hcloud-bot hcloud-bot commented Dec 10, 2025

Breaking Change for the Storage Box resource

Previously the hcloud_storage_box resource ignored any changes to the ssh_keys attribute to avoid accidentally deleting the Storage Box (SSH Keys can not be changed through the API after the Storage Box is created).

This is changed in this release, we now mark the resource as "requires replacement" if the SSH Keys are changed. If you want to ignore changes and keep the previous behaviour, please add the attribute to lifecycle.ignore_changes:

resource "hcloud_storage_box" "example" {
  // Other attributes

  ssh_keys = [ "..." ]
  lifecycle {
    ignore_changes = [ ssh_keys ]
  }
}

We are releasing this breaking change in a minor version as the Storage Box support is marked as experimental.

Deprecation of datacenter attribute for Primary IPs and Servers

The datacenter attributes is deprecated in Primary IPs and Servers API resources and will be removed after 1 July 2026. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters for more details.

Therefore, datacenter attributes is deprecated in favour of the location attribute in the following Terraform resources/datasources:

  • hcloud_server
  • data.hcloud_server
  • data.hcloud_servers
  • hcloud_primary_ip
  • data.hcloud_primary_ip
  • data.hcloud_primary_ips

The location attribute already exists for Servers, and was added for Primary IPs.

The datacenter attribute will not be updated any more after it is no longer returned by the API. For existing resources this will keep the previous value, for new resources this will result in an empty string.

Please make sure to upgrade to v1.58.0+ before the removal date to avoid potential crashes in the provider.

Features

Bug Fixes


PR by releaser-pleaser 🤖

If you want to modify the proposed release, add you overrides here. You can learn more about the options in the docs.

Release Notes

Prefix / Start

This will be added to the start of the release notes.

### Breaking Change for the *Storage Box* resource

Previously the `hcloud_storage_box` resource ignored any changes to the `ssh_keys` attribute to avoid accidentally deleting the Storage Box (SSH Keys can not be changed through the API after the Storage Box is created).

This is changed in this release, we now mark the resource as "requires replacement" if the SSH Keys are changed. If you want to ignore changes and keep the previous behaviour, please add the attribute to [`lifecycle.ignore_changes`](https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle#ignore_changes):

```terraform
resource "hcloud_storage_box" "example" {
  // Other attributes

  ssh_keys = [ "..." ]
  lifecycle {
    ignore_changes = [ ssh_keys ]
  }
}
```

We are releasing this breaking change in a minor version as the _Storage Box support_ is [marked as experimental](https://github.com/hetznercloud/terraform-provider-hcloud/issues/1285).

### Deprecation of `datacenter` attribute for Primary IPs and Servers

The `datacenter` attributes is deprecated in `Primary IPs` and `Servers` API resources and will be removed after 1 July 2026. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters for more details.

Therefore, `datacenter` attributes is deprecated in favour of the `location` attribute in the following Terraform resources/datasources:

- `hcloud_server`
- `data.hcloud_server`
- `data.hcloud_servers`
- `hcloud_primary_ip`
- `data.hcloud_primary_ip`
- `data.hcloud_primary_ips`

The `location` attribute already exists for Servers, and was added for Primary IPs.

The `datacenter` attribute will not be updated any more after it is no longer returned by the API. For existing resources this will keep the previous value, for new resources this will result in an empty string.

Please make sure to upgrade to `v1.58.0+` before the removal date to avoid potential crashes in the provider.

Suffix / End

This will be added to the end of the release notes.

@hcloud-bot hcloud-bot requested a review from a team as a code owner December 10, 2025 15:14
@hcloud-bot hcloud-bot added the rp-release::pending Release for this PR is pending label Dec 10, 2025
@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.92%. Comparing base (acde84f) to head (f19f363).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1295   +/-   ##
=======================================
  Coverage   37.92%   37.92%           
=======================================
  Files         103      103           
  Lines       11830    11830           
=======================================
  Hits         4487     4487           
  Misses       7287     7287           
  Partials       56       56           
Flag Coverage Δ
unit 37.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hcloud-bot hcloud-bot changed the title chore(main): release v1.57.1 chore(main): release v1.58.0 Dec 12, 2025
@hcloud-bot hcloud-bot force-pushed the releaser-pleaser--branches--main branch from e528f02 to 94eda6e Compare December 12, 2025 10:25
@hcloud-bot hcloud-bot force-pushed the releaser-pleaser--branches--main branch 2 times, most recently from 5c9dcfd to 318c065 Compare December 19, 2025 13:59
@hcloud-bot hcloud-bot force-pushed the releaser-pleaser--branches--main branch 2 times, most recently from a96e249 to 2a9d6ca Compare December 23, 2025 08:14
@hcloud-bot hcloud-bot force-pushed the releaser-pleaser--branches--main branch 2 times, most recently from b88dcc3 to 8cf9207 Compare January 5, 2026 14:36
@hcloud-bot hcloud-bot force-pushed the releaser-pleaser--branches--main branch from 8cf9207 to f19f363 Compare January 5, 2026 14:43
@apricote apricote merged commit 8c20caa into main Jan 5, 2026
5 of 10 checks passed
@apricote apricote deleted the releaser-pleaser--branches--main branch January 5, 2026 15:44
@hcloud-bot hcloud-bot added rp-release::tagged Release for this PR is created and removed rp-release::pending Release for this PR is pending labels Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rp-release::tagged Release for this PR is created

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants