Closed frezbo closed 5 months ago
/m
How would you recommend that we work around this?
@dhess, today I hit this situation as well. Was running with 0.3.4
of the siderolabs/talos
terraform provider, and my talosconfig certificates expired because it had been more than a year. A terraform state show
showed that there was a machine_secrets
module stored inside the Terraform config (module.talos.talos_machine_secrets.main
). I couldn't find an example of the secrets.yaml
(mentioned by https://www.talos.dev/v1.6/talos-guides/configuration/managing-pki/#from-secrets-bundle) to try and recreate it, but it gave me hope that the data was all there. Ultimately what I did:
required_providers
version for siderolabs/talos
in my terraform manifest to 0.6.1
.terraform init --upgrade
terraform apply --target=resource.local_sensitive_file.talosconfig
# yay, verified that it's only making changes to the certificate values. This file is where I write the contents from data.talos_client_configuration.main.talos_config
Regenerate talosconfig when it neards expiry.
Fixes: #123