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
18 lines
314 B
Go
18 lines
314 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
gkwp "github.com/hashicorp/go-kms-wrapping/plugin/v2"
|
|
"github.com/hashicorp/go-kms-wrapping/wrappers/alicloudkms/v2"
|
|
)
|
|
|
|
func main() {
|
|
if err := gkwp.ServePlugin(alicloudkms.NewWrapper()); err != nil {
|
|
fmt.Println("Error serving plugin", err)
|
|
os.Exit(1)
|
|
}
|
|
os.Exit(0)
|
|
}
|