Skip to content

hashicorp/boundary provider 1.2.0 unable to use recovery_kms_hcl in provider from tofu registry #1433

@devlsc

Description

@devlsc

Thank you for reporting an issue.

First of all thanks for the nice work and the quick fix last time :)

I am currently trying to use the hashicorp/boundary provider v1.2.0 and configuring the provider via recovery_kms_hcl like this:

  addr             = <BOUNDARY_ADDR>
  recovery_kms_hcl = <<EOT
kms "transit" {
    purpose = "recovery"
    address = <VAULT_ADDR>
    token = <VAULT_TOKEN>
    key_name = <KEY_NAME>
    mount_path = <MOUNT_PATH>
}
EOT
}

unfortunately that does not seem to work with the tofu provider but works fine with the terraform provider.
It fails with the error message:

   Error: error reading wrappers from "recovery_kms_hcl": Error configuring kms: plugin is nil 
     with provider["registry.opentofu.org/hashicorp/boundary"],
     on main.tf line 14, in provider "boundary":
     14: provider "boundary" {

This issue from the hashicorp boundary provider looks a like: hashicorp/terraform-provider-boundary#209

OpenTofu Version

OpenTofu v1.9.0
on linux_amd64

OpenTofu Configuration Files

provider "boundary" {
  addr             = <BOUNDARY_ADDR>
  recovery_kms_hcl = <<EOT
kms "transit" {
    purpose = "recovery"
    address = <VAULT_ADDR>
    token = <VAULT_TOKEN>
    key_name = <KEY_NAME>
    mount_path = <MOUNT_PATH>
}
EOT
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions