After moving to go-kms-wrapping V2, the Boundary Terraform Provider
did not load all KMS plugins resulting in an error when trying to
create a wrapper for any type other than aead:
Error: error reading wrappers from "recovery_kms_hcl":
Error configuring kms: plugin is nil
15 lines
341 B
Go
15 lines
341 B
Go
package kms_plugin_assets
|
|
|
|
import (
|
|
"github.com/hashicorp/go-kms-wrapping/v2/aead"
|
|
"github.com/hashicorp/go-secure-stdlib/pluginutil/v2"
|
|
)
|
|
|
|
func BuiltinKmsPlugins() map[string]pluginutil.InmemCreationFunc {
|
|
return map[string]pluginutil.InmemCreationFunc{
|
|
"aead": func() (interface{}, error) {
|
|
return aead.NewWrapper(), nil
|
|
},
|
|
}
|
|
}
|