{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/14837","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/14837/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/14837/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/14837/events","html_url":"https://github.com/hashicorp/terraform/issues/14837","id":231393457,"number":14837,"title":"Cannot find Vault generic secret keys that contain a period","user":{"login":"lmickh","id":3875710,"avatar_url":"https://avatars3.githubusercontent.com/u/3875710?v=3","gravatar_id":"","url":"https://api.github.com/users/lmickh","html_url":"https://github.com/lmickh","followers_url":"https://api.github.com/users/lmickh/followers","following_url":"https://api.github.com/users/lmickh/following{/other_user}","gists_url":"https://api.github.com/users/lmickh/gists{/gist_id}","starred_url":"https://api.github.com/users/lmickh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmickh/subscriptions","organizations_url":"https://api.github.com/users/lmickh/orgs","repos_url":"https://api.github.com/users/lmickh/repos","events_url":"https://api.github.com/users/lmickh/events{/privacy}","received_events_url":"https://api.github.com/users/lmickh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-25T16:42:46Z","updated_at":"2017-05-25T16:42:46Z","closed_at":null,"body":"### Terraform Version\r\nv0.9.5\r\n\r\n### Affected Resource(s)\r\ndata.vault_generic_secret\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\ndata \"vault_generic_secret\" \"certs\" {\r\n  path = \"secret/certs\"\r\n}\r\n\r\noutput \"test\" {\r\n    value = \"${data.vault_generic_secret.agent-config.data[\"example.crt\"]}\"\r\n}\r\n```\r\n### Vault Secret\r\n`vault write secret/certs example.crt=@example.crt example.key=@example.key`\r\n\r\n### Expected Behavior\r\nVault accepts secret keys containing periods.  I expect TF to be able to read them.  If this is a result of the way TF parses the key that cannot be fixed, it should be mentioned as a limitation in the Vault provider docs.\r\n\r\n### Actual Behavior\r\n```\r\nkey \"example.crt\" does not exist in map data.vault_generic_secret.certs.data in:\r\n\r\n${data.vault_generic_secret.certs.data[\"example.crt\"]}\r\n```\r\n\r\nSimilar errors occur when the data source is used by other resources such as `kubernetes_secret`.\r\n\r\n### Steps to Reproduce\r\n1. Create a Vault secret with a key name that contains a period.\r\n2. terraform apply\r\n\r\n### Important Factoids\r\nIt appears there might be an issue with how TF types the map.  If you create a Vault secret with a key name that contains a period and one that does not, TF will throw an error about non homogenous types even if both keys contain the same json data.  Haven't had a chance to look into it further."}}
{"actor":{"display_login":"lmickh"}}