{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/vault/issues/1983","repository_url":"https://api.github.com/repos/hashicorp/vault","labels_url":"https://api.github.com/repos/hashicorp/vault/issues/1983/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/vault/issues/1983/comments","events_url":"https://api.github.com/repos/hashicorp/vault/issues/1983/events","html_url":"https://github.com/hashicorp/vault/issues/1983","id":181875593,"number":1983,"title":"Vault sys/wrapping/unwrap api returns null data instead of original key-values","user":{"login":"rajanadar","id":376958,"avatar_url":"https://avatars.githubusercontent.com/u/376958?v=3","gravatar_id":"","url":"https://api.github.com/users/rajanadar","html_url":"https://github.com/rajanadar","followers_url":"https://api.github.com/users/rajanadar/followers","following_url":"https://api.github.com/users/rajanadar/following{/other_user}","gists_url":"https://api.github.com/users/rajanadar/gists{/gist_id}","starred_url":"https://api.github.com/users/rajanadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajanadar/subscriptions","organizations_url":"https://api.github.com/users/rajanadar/orgs","repos_url":"https://api.github.com/users/rajanadar/repos","events_url":"https://api.github.com/users/rajanadar/events{/privacy}","received_events_url":"https://api.github.com/users/rajanadar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-09T08:58:25Z","updated_at":"2016-10-10T00:36:48Z","closed_at":"2016-10-09T12:10:26Z","body":"Vault Version 0.6.2\r\n\r\n**Repro Steps:**\r\n\r\n1. use the 'sys/wrapping/wrap' Vault Api to write a a list of key-values to Vault with wrap ttl as 1h.\r\n2. the response has the expected wrap_info with the temp wrap token, ttl and creation_time. all good.\r\n3. now use the temp wrap token, to invoke the 'sys/wrapping/unwrap' api. (POST call with 'token' body parameter) \r\n\r\n**Observed Result:**\r\n\r\n1. the Data field in the returned response is null.\r\n\r\n**Expected Result:**\r\n\r\n1. the original list of key value pairs.\r\n\r\nInstead of 'sys/wrapping/unwrap', if we use the deprecated 'cubbyhole/response' read, then i can see the original key value pairs as expected. i.e. data, along with a warning to use the /unwrap api. (as expected)\r\n\r\nam i missing something?"},"comment":{"url":"https://api.github.com/repos/hashicorp/vault/issues/comments/252523896","html_url":"https://github.com/hashicorp/vault/issues/1983#issuecomment-252523896","issue_url":"https://api.github.com/repos/hashicorp/vault/issues/1983","id":252523896,"user":{"login":"rajanadar","id":376958,"avatar_url":"https://avatars.githubusercontent.com/u/376958?v=3","gravatar_id":"","url":"https://api.github.com/users/rajanadar","html_url":"https://github.com/rajanadar","followers_url":"https://api.github.com/users/rajanadar/followers","following_url":"https://api.github.com/users/rajanadar/following{/other_user}","gists_url":"https://api.github.com/users/rajanadar/gists{/gist_id}","starred_url":"https://api.github.com/users/rajanadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajanadar/subscriptions","organizations_url":"https://api.github.com/users/rajanadar/orgs","repos_url":"https://api.github.com/users/rajanadar/repos","events_url":"https://api.github.com/users/rajanadar/events{/privacy}","received_events_url":"https://api.github.com/users/rajanadar/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T00:36:48Z","updated_at":"2016-10-10T00:36:48Z","body":"thanks @jefferai for your time. found the root cause. not a Vault issue.\r\n\r\nthe issue was on my side. i was not clearing the wrap-ttl header (set during the wrap api call), during the unwrap call. this was causing the unwrapped response to be re-wrapped again. thanks.\r\n"}}
{"actor":{"display_login":"rajanadar"}}