{"action":"closed","issue":{"url":"https://api.github.com/repos/amark/gun/issues/553","repository_url":"https://api.github.com/repos/amark/gun","labels_url":"https://api.github.com/repos/amark/gun/issues/553/labels{/name}","comments_url":"https://api.github.com/repos/amark/gun/issues/553/comments","events_url":"https://api.github.com/repos/amark/gun/issues/553/events","html_url":"https://github.com/amark/gun/issues/553","id":329431558,"node_id":"MDU6SXNzdWUzMjk0MzE1NTg=","number":553,"title":"Node always being signed after user.auth","user":{"login":"sundaywork","id":5270094,"node_id":"MDQ6VXNlcjUyNzAwOTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5270094?v=4","gravatar_id":"","url":"https://api.github.com/users/sundaywork","html_url":"https://github.com/sundaywork","followers_url":"https://api.github.com/users/sundaywork/followers","following_url":"https://api.github.com/users/sundaywork/following{/other_user}","gists_url":"https://api.github.com/users/sundaywork/gists{/gist_id}","starred_url":"https://api.github.com/users/sundaywork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sundaywork/subscriptions","organizations_url":"https://api.github.com/users/sundaywork/orgs","repos_url":"https://api.github.com/users/sundaywork/repos","events_url":"https://api.github.com/users/sundaywork/events{/privacy}","received_events_url":"https://api.github.com/users/sundaywork/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-05T12:22:55Z","updated_at":"2018-06-30T01:46:58Z","closed_at":"2018-06-30T01:46:58Z","author_association":"NONE","body":"After user.auth, the put will always add signatures to all fields, even it's not under the \"user\" node and at the root level.\r\n\r\n```\r\nconst gun = Gun();\r\nconst trans = gun.get(\"trans\");\r\n\r\nvar d = '{\"index\":2,\"timestamp\":1527753636152,\"action\":\"out\",\"amount\":\"66.6666\"}';\r\nvar n = JSON.parse(d);\r\ntrans.get(\"AAA\").put(n);\r\n\r\nvar SEA=Gun.SEA;\r\n\r\nvar user = gun.user();\r\n\r\nuser.auth(myName, myPass, (ack)=>{\r\n    console.log(`logged in as ${ack.alias} pub key=${ack.pub}`);\r\n\r\n    trans.get(\"BBB\").put(n);\r\n    gun.get(\"_trans\").put(n);\r\n});\r\n```\r\nThe pictures below showed the difference between plain text node and signed node:\r\n![image](https://user-images.githubusercontent.com/5270094/40975390-e8e9db1c-691e-11e8-9a09-b995e8a39a2b.png)\r\n![image](https://user-images.githubusercontent.com/5270094/40975439-137c5508-691f-11e8-9963-f7bc571acfbb.png)\r\n\r\n\r\nExpect: data is not signed under normal locations, unless inside the user node. Or a mechanism to allow exit the auth so I can go back to put plaintext data."}}
{"actor":{"display_login":"amark"}}