SUSE Support

Here When You Need Us

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.
  • 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:

  1. 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.
  2. 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

Top Issue

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

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.