boundary icon indicating copy to clipboard operation
boundary copied to clipboard

plugin.(Repository).CreateCatalog: plugin.(HostCatalogSecret).encrypt: no attributes defined: parameter violation: error #100

Open jeremy-rescale opened this issue 1 year ago • 2 comments
trafficstars

I'm trying to create a host catalog plugin for AWS. I was able to originally create a host plugin for AWS using terraform without issue, but as of today, when trying to apply terraform, the host catalog plugin started failing. I destroyed all of the resources, and re-recreated, but I can not get past the error creating the host catalog plugin.

I was able to replicate the issue I was seeing with the terraform provide using the cli.

boundary host-catalogs create plugin -token=env://BOUNDARY_TOKEN  -scope-id $PROJECT_ID   -plugin-name aws   -attr disable_credential_rotation=true   -attr region=us-gov-east-1   -secret access_key_id=env://BOUNDARY_ACCESS_KEY_ID   -secret secret_access_key=env://BOUNDARY_SECRET_ACCESS_KEY
Error from controller when performing create on plugin-type host catalog

Error information:
  Kind:                Internal
  Message:             host_catalogs.(Service).createPluginInRepo: unable to create host catalog: plugin.(Repository).CreateCatalog: in project: p_DFQKgxQmW2: db.DoTx: plugin.(Repository).CreateCatalog: plugin.(HostCatalogSecret).encrypt: no attributes
  defined: parameter violation: error #100
  Status:              500
  context:             Error from controller when performing create on plugin-type host catalog

Both my boundary controller and cli are using version 0.15.4. There's a 500 if I attempt to create the dynamic host catalog via the UI as well.

To Reproduce Steps to reproduce the behavior:

  1. Follow the steps listed in the tutorial

Expected behavior I expect to be able to create a host catalog plugin for AWS.

Additional context This issue arose after: After rotating IAM credentials successfully using terraform. We then attempting to add a new group and role. We applied that change, but saw the errors around the host catalog plugin. I then destroyed all of the terraform and then tried to recreate. I then attempting to create using the cli.

jeremy-rescale avatar Jul 31 '24 23:07 jeremy-rescale