{"action":"closed","issue":{"url":"https://api.github.com/repos/Muryoutaisuu/secretsfs/issues/6","repository_url":"https://api.github.com/repos/Muryoutaisuu/secretsfs","labels_url":"https://api.github.com/repos/Muryoutaisuu/secretsfs/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Muryoutaisuu/secretsfs/issues/6/comments","events_url":"https://api.github.com/repos/Muryoutaisuu/secretsfs/issues/6/events","html_url":"https://github.com/Muryoutaisuu/secretsfs/issues/6","id":387383698,"node_id":"MDU6SXNzdWUzODczODM2OTg=","number":6,"title":"not clearing Token!!!","user":{"login":"Muryoutaisuu","id":4759775,"node_id":"MDQ6VXNlcjQ3NTk3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/4759775?v=4","gravatar_id":"","url":"https://api.github.com/users/Muryoutaisuu","html_url":"https://github.com/Muryoutaisuu","followers_url":"https://api.github.com/users/Muryoutaisuu/followers","following_url":"https://api.github.com/users/Muryoutaisuu/following{/other_user}","gists_url":"https://api.github.com/users/Muryoutaisuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Muryoutaisuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Muryoutaisuu/subscriptions","organizations_url":"https://api.github.com/users/Muryoutaisuu/orgs","repos_url":"https://api.github.com/users/Muryoutaisuu/repos","events_url":"https://api.github.com/users/Muryoutaisuu/events{/privacy}","received_events_url":"https://api.github.com/users/Muryoutaisuu/received_events","type":"User","site_admin":false},"labels":[{"id":1150278321,"node_id":"MDU6TGFiZWwxMTUwMjc4MzIx","url":"https://api.github.com/repos/Muryoutaisuu/secretsfs/labels/bath","name":"bath","color":"76820b","default":false},{"id":968918934,"node_id":"MDU6TGFiZWw5Njg5MTg5MzQ=","url":"https://api.github.com/repos/Muryoutaisuu/secretsfs/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":1150278296,"node_id":"MDU6TGFiZWwxMTUwMjc4Mjk2","url":"https://api.github.com/repos/Muryoutaisuu/secretsfs/labels/important","name":"important","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":{"login":"Muryoutaisuu","id":4759775,"node_id":"MDQ6VXNlcjQ3NTk3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/4759775?v=4","gravatar_id":"","url":"https://api.github.com/users/Muryoutaisuu","html_url":"https://github.com/Muryoutaisuu","followers_url":"https://api.github.com/users/Muryoutaisuu/followers","following_url":"https://api.github.com/users/Muryoutaisuu/following{/other_user}","gists_url":"https://api.github.com/users/Muryoutaisuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Muryoutaisuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Muryoutaisuu/subscriptions","organizations_url":"https://api.github.com/users/Muryoutaisuu/orgs","repos_url":"https://api.github.com/users/Muryoutaisuu/repos","events_url":"https://api.github.com/users/Muryoutaisuu/events{/privacy}","received_events_url":"https://api.github.com/users/Muryoutaisuu/received_events","type":"User","site_admin":false},"assignees":[{"login":"Muryoutaisuu","id":4759775,"node_id":"MDQ6VXNlcjQ3NTk3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/4759775?v=4","gravatar_id":"","url":"https://api.github.com/users/Muryoutaisuu","html_url":"https://github.com/Muryoutaisuu","followers_url":"https://api.github.com/users/Muryoutaisuu/followers","following_url":"https://api.github.com/users/Muryoutaisuu/following{/other_user}","gists_url":"https://api.github.com/users/Muryoutaisuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Muryoutaisuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Muryoutaisuu/subscriptions","organizations_url":"https://api.github.com/users/Muryoutaisuu/orgs","repos_url":"https://api.github.com/users/Muryoutaisuu/repos","events_url":"https://api.github.com/users/Muryoutaisuu/events{/privacy}","received_events_url":"https://api.github.com/users/Muryoutaisuu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-12-04T16:55:07Z","updated_at":"2018-12-10T09:02:04Z","closed_at":"2018-12-10T09:02:03Z","author_association":"OWNER","body":"not clearing tokens although using vault-library for that:\r\n\r\n```go\r\n 61   if err := v.setToken(context); err != nil {\r\n 62     Log.Error.Print(err)\r\n 63     return nil, fuse.EACCES\r\n 64   }\r\n 65   defer Log.Debug.Printf(\"op=GetAttr msg=\\\"successfully cleared token\\\" token=%s\\\"\\n\",v.client.Token())\r\n 66   defer v.client.ClearToken()\r\n67   defer Log.Debug.Printf(\"op=GetAttr msg=\\\"successfully cleared token\\\" token=%s\\\"\\n\",v.client.Token())\r\n```\r\n\r\n```bash\r\nDEBUG: 2018/12/04 17:58:04 vault.go:238: msg=\"reading authToken\" path=\"/root/.vault-roleid\"\r\nDEBUG: 2018/12/04 17:58:04 vault.go:245: msg=\"authToken successfully read\" path=\"/root/.vault-roleid\"\r\nDEBUG: 2018/12/04 17:58:04 vault.go:217: login_payload=map[role_id:32762698-0468-38f9-258c-358da7fcf95f]\r\nDEBUG: 2018/12/04 17:58:04 vault.go:223: resp=&{d4dfcede-9172-83e3-8bdf-e9d3de0375dc  0 false map[] [] 0xc420224000 <nil>} Data=map[]\r\n ClientToken=\"s.fChABXxfIUBnUoZBMKQjZSDy\"\r\nDEBUG: 2018/12/04 17:58:04 vault.go:200: op=setToken msg=\"successfully set token\" token=s.fChABXxfIUBnUoZBMKQjZSDy\"\r\nDEBUG: 2018/12/04 17:58:04 vault.go:70: name=\"hello2\"\r\nDEBUG: 2018/12/04 17:58:04 vault.go:334: op=getType name=\"hello2\"\r\nDEBUG: 2018/12/04 17:58:04 vault.go:336: op=getType MTDATA=secret/metadata/\r\nDEBUG: 2018/12/04 17:58:04 vault.go:337: op=getType s=\"<nil>\" err=\"<nil>\"\r\nDEBUG: 2018/12/04 17:58:04 vault.go:72: op=GetAttr t=\"1\"\r\nDEBUG: 2018/12/04 17:58:04 vault.go:81: op=GetAttr t=CFile\r\nDEBUG: 2018/12/04 17:58:04 vault.go:82: op=GetAttr msg=\"successfully cleared token\" token=s.fChABXxfIUBnUoZBMKQjZSDy\"\r\nDEBUG: 2018/12/04 17:58:04 vault.go:82: op=GetAttr msg=\"successfully cleared token\" token=s.fChABXxfIUBnUoZBMKQjZSDy\"\r\n```\r\n"}}
{"actor":{"display_login":"Muryoutaisuu"}}