Release v2.1.0
Secrets out of state, drift you can see, and resources that converge
This release addresses three gaps:
- Secrets in state. Every secret the provider manages can now be passed as a write-only value. Such values never reach the Terraform state, so they can come from ephemeral resources such as
ephemeral "vault_kv_secret_v2".
- Invisible drift. Changes made in the Portainer UI now show up in the plan for webhooks, environment settings, TLS, resource controls and more, and those resources can be imported.
- Configurations that never converged. Several resources planned changes on every run, or reported success for things that never happened. Those cases are fixed.
It is a drop-in upgrade from v2.0.1: nothing was removed or renamed. Still, read Before you upgrade. A few fixes make Portainer actually do what your configuration has said all along, and the first plan will show that.
Tested against Portainer CE 2.45.3 with Terraform 1.11 and 1.15 and with OpenTofu 1.12. The upgrade from v2.0.1 was tested over the whole end-to-end suite.
Before you upgrade
- Outputs of
edge_key and webhook_url need sensitive = true.
edge_key on portainer_environment and webhook_url on portainer_stack and portainer_edge_stack are now marked sensitive, as is tls_key on portainer_ldap_settings.
- Terraform refuses an output that exposes a sensitive value without
sensitive = true. …