You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, chef-vault is a great tool and works better than my previous method using chef-sugar (another great tool) and encrypted data bag secrets. Thanks for creating it.
I ran into the following error when attempting to create a new vault from the command line (using manage.chef.io). Strangely, I had been able to previously create a vault and successfully edit this vault.
$ knife vault create secrets password
ERROR: TypeError: no implicit conversion of String into Array
I finally figured out that knife[:vault_admins] requires an array--not a string. I had been able to create the vault before I added the vault admins to my config and it is not used during a vault edit.
SOLVED: Contents of configuration ~/.chef/config.rb
This issue has been created partly to document the issue/resolution for others as well as request a change. Is it possible to either create a better warning for this, be more explicit in the documentation, or better yet, accept a string and convert it to an array on-the-fly? If you'd accept a PR for converting on the fly, I'll dig into the code and submit a PR.
The text was updated successfully, but these errors were encountered:
Hi, sorry - I missed this issue. Yes, we'd totally accept a PR to convert a string into an Array in that case (or a PR to just make the warning useful)
Yes @thommay It would be better to add a warning rather than converting a string to an Array. Because converting the string to array would lead to handle several scenarios of string inputs and that will add up complexity. We would be coming with a PR for user warnings.
Firstly, chef-vault is a great tool and works better than my previous method using chef-sugar (another great tool) and encrypted data bag secrets. Thanks for creating it.
I ran into the following error when attempting to create a new vault from the command line (using manage.chef.io). Strangely, I had been able to previously create a vault and successfully edit this vault.
Versions
Contents of configuration
~/.chef/config.rb
I finally figured out that
knife[:vault_admins]
requires an array--not a string. I had been able to create the vault before I added the vault admins to my config and it is not used during a vault edit.SOLVED: Contents of configuration
~/.chef/config.rb
This issue has been created partly to document the issue/resolution for others as well as request a change. Is it possible to either create a better warning for this, be more explicit in the documentation, or better yet, accept a string and convert it to an array on-the-fly? If you'd accept a PR for converting on the fly, I'll dig into the code and submit a PR.
The text was updated successfully, but these errors were encountered: