Resolving "Error: Failed to install provider" with Rancher2 Provider (openpgp: unsupported feature: public key algorithm 22)
This document (000021743) is provided subject to the disclaimer at the end of this document.
Environment
Rancher2 Terraform Provider
Situation
Users attempting to initialize or apply Terraform configurations using the rancher2
provider (version ~> 6.0.0
) may encounter the following error:
Error: Failed to install provider
Error while installing rancher/rancher2 v6.1.4: error decoding signing key:
openpgp: unsupported feature: public key algorithm 22
Resolution
The underlying issues have been resolved. The Rancher team has addressed the key management and signing algorithm problems.
For users who encountered this issue:
-
Upgrade Terraform: Ensure you are using Terraform version v1.5.7 or later. This version includes support for the necessary signing algorithm.
- To check your Terraform version, run:
$ terraform --version
- To upgrade Terraform, follow the official HashiCorp documentation.
- To check your Terraform version, run:
-
Re-initialize Terraform: After upgrading Terraform, run
terraform init
to initialise.
Cause
This issue stems from two related incidents affecting the signing and validation of the rancher2
provider:
- An initial issue arose due to a key management issue within HashiCorp's systems, combined with a Terraform update that invalidated the existing Rancher signing key. This prevented the provider release from being successfully signed.
- Subsequently, the Rancher signing key was cross-signed using an algorithm (specifically, algorithm ed25519) that older versions of Terraform do not support. This incompatibility caused validation failures when older Terraform versions attempted to verify the provider's signature.
Status
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021743
- Creation Date: 18-Mar-2025
- Modified Date:28-Mar-2025
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com