{"action":"created","issue":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/614","repository_url":"https://api.github.com/repos/test-kitchen/test-kitchen","labels_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/614/labels{/name}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/614/comments","events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/614/events","html_url":"https://github.com/test-kitchen/test-kitchen/issues/614","id":58146692,"number":614,"title":"Inconsistent default filename for encrypted_data_bag_secret?","user":{"login":"rmoriz","id":1527,"avatar_url":"https://avatars.githubusercontent.com/u/1527?v=3","gravatar_id":"","url":"https://api.github.com/users/rmoriz","html_url":"https://github.com/rmoriz","followers_url":"https://api.github.com/users/rmoriz/followers","following_url":"https://api.github.com/users/rmoriz/following{/other_user}","gists_url":"https://api.github.com/users/rmoriz/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoriz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoriz/subscriptions","organizations_url":"https://api.github.com/users/rmoriz/orgs","repos_url":"https://api.github.com/users/rmoriz/repos","events_url":"https://api.github.com/users/rmoriz/events{/privacy}","received_events_url":"https://api.github.com/users/rmoriz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-02-18T23:34:43Z","updated_at":"2016-09-04T16:54:40Z","closed_at":null,"body":"As far as I understand the source, test-kitchen defaults to a file called `encrypted_data_bag_secret_key`, however most other chef-tools (and chef itself) just call the file `encrypted_data_bag_secret`.\r\n\r\nsee https://github.com/test-kitchen/test-kitchen/blob/72632ed74fcf945a8cbaf8e817496f118a8056e8/lib/kitchen/data_munger.rb#L280\r\nand https://github.com/test-kitchen/test-kitchen/blob/72632ed74fcf945a8cbaf8e817496f118a8056e8/lib/kitchen/provisioner/chef_base.rb#L92\r\n\r\nI'm confusing it all the time, and I'm not sure if this is intentional:\r\n\r\nsee:\r\n\r\nhttps://github.com/test-kitchen/test-kitchen/issues/248#issuecomment-29361804\r\nvs.\r\nhttps://github.com/test-kitchen/kitchen-ec2/issues/24#issuecomment-29546657"},"comment":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/comments/244614325","html_url":"https://github.com/test-kitchen/test-kitchen/issues/614#issuecomment-244614325","issue_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/614","id":244614325,"user":{"login":"cheeseplus","id":575693,"avatar_url":"https://avatars.githubusercontent.com/u/575693?v=3","gravatar_id":"","url":"https://api.github.com/users/cheeseplus","html_url":"https://github.com/cheeseplus","followers_url":"https://api.github.com/users/cheeseplus/followers","following_url":"https://api.github.com/users/cheeseplus/following{/other_user}","gists_url":"https://api.github.com/users/cheeseplus/gists{/gist_id}","starred_url":"https://api.github.com/users/cheeseplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheeseplus/subscriptions","organizations_url":"https://api.github.com/users/cheeseplus/orgs","repos_url":"https://api.github.com/users/cheeseplus/repos","events_url":"https://api.github.com/users/cheeseplus/events{/privacy}","received_events_url":"https://api.github.com/users/cheeseplus/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T16:54:40Z","updated_at":"2016-09-04T16:54:40Z","body":"So the tricky bit is that `encrypted_data_bag_secret` is actually for a directory that the secrets live in vs the file in client.rb. In test-kitchen we are explicit between path vs key but it's definitely confusing as Chef docs use `encrypted_data_bag_secret` to reference the setting which is just the dir and then later for the file itself despite the two not (actually) being related: https://docs.chef.io/data_bags.html"}}
{"actor":{"display_login":"cheeseplus"}}