keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.9k stars 1.23k forks source link

Error trying to track gbrl27 (it has a github proof error) #139

Closed gabriel closed 9 years ago

gabriel commented 9 years ago

Calling keybase.1.track.track(gbrl27):

15:52:44.300372 ▶ DEBU b81 + LoadUser(uid=<nil>, name=gbrl27)
15:52:44.300414 ▶ DEBU b82 + Resolving username gbrl27
15:52:44.300453 ▶ DEBU b83 | resolved to b88c777e52a04c178841eacfbf3b5f00
15:52:44.300467 ▶ DEBU b84 + LockTable.Lock(b88c777e52a04c178841eacfbf3b5f00)
15:52:44.300481 ▶ DEBU b85 - LockTable.Lock(b88c777e52a04c178841eacfbf3b5f00)
15:52:44.300496 ▶ DEBU b86 + LoadUserFromLocalStorage(b88c777e52a04c178841eacfbf3b5f00)
15:52:44.300561 ▶ DEBU b87 - LoadUserFromLocalStorage(b88c777e52a04c178841eacfbf3b5f00): Not found
15:52:44.300580 ▶ DEBU b88 + MerkleClient.LookupUser(map[uid:b88c777e52a04c178841eacfbf3b5f00])
15:52:44.300661 ▶ DEBU b89 + MerkleClient.LoadRoot()
15:52:44.300944 ▶ DEBU b8a - MerkleClient.LoadRoot() -> 146615
15:52:44.300978 ▶ DEBU b8b + API GET request to https://api.keybase.io:443/_/api/1.0/merkle/path.json?uid=b88c777e52a04c178841eacfbf3b5f00
15:52:44.463551 ▶ DEBU b8c | Result is: 200 OK
15:52:44.559544 ▶ DEBU b8d - succesful API call
15:52:44.559616 ▶ DEBU b8e | Merkle root: got back 146615, >= cached 146615
15:52:44.561227 ▶ DEBU b8f + ParsingMerkleUserLeaf
15:52:44.561260 ▶ DEBU b90 - ParsingMerkleUserLeaf -> <nil>
15:52:44.561270 ▶ DEBU b91 - MerkleClient.LookupUser(map[uid:b88c777e52a04c178841eacfbf3b5f00]) -> OK
15:52:44.561285 ▶ DEBU b92 | No local user stored for b88c777e52a04c178841eacfbf3b5f00
15:52:44.561292 ▶ DEBU b93 | Freshness: basics=false; for b88c777e52a04c178841eacfbf3b5f00
15:52:44.561300 ▶ DEBU b94 + Load User from server: b88c777e52a04c178841eacfbf3b5f00
15:52:44.561316 ▶ DEBU b95 + API GET request to https://api.keybase.io:443/_/api/1.0/user/lookup.json?uid=b88c777e52a04c178841eacfbf3b5f00
15:52:44.714947 ▶ DEBU b96 | Result is: 200 OK
15:52:44.715766 ▶ DEBU b97 - succesful API call
15:52:44.716530 ▶ DEBU b98 + ImportKeys
15:52:44.718568 ▶ DEBU b99 | Imported Key 0101924d577a1f46a5e78ea19ec76fc640655ecf02e69a08e7bc4d2893f9dfc9c9c70a
15:52:44.718604 ▶ DEBU b9a | Imported Key 0120c47f2a3f17c2100823855846807796ec22d813cd023f646d55561fe304b9ea890a
15:52:44.718621 ▶ DEBU b9b | Imported Key 01212c25ebd793912b6f9bf13cab3bc6d97325a0b07501cd5aaf3d461291c461ae640a
15:52:44.718649 ▶ DEBU b9c - ImportKeys -> ok
15:52:44.718664 ▶ DEBU b9d - Load user from server: b88c777e52a04c178841eacfbf3b5f00 -> ok
15:52:44.718677 ▶ DEBU b9e + SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00)
15:52:44.718686 ▶ DEBU b9f | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) GetFingerprint
15:52:44.718696 ▶ DEBU ba0 | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) AccessPreload
15:52:44.718705 ▶ DEBU ba1 | Preload failed
15:52:44.718713 ▶ DEBU ba2 | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) LoadLinksFromStorage
15:52:44.718723 ▶ DEBU ba3 + SigChainLoader.LoadFromStorage(b88c777e52a04c178841eacfbf3b5f00)
15:52:44.718772 ▶ DEBU ba4 | LastLinkId was null
15:52:44.718782 ▶ DEBU ba5 | Failed to load last link ID
15:52:44.718792 ▶ DEBU ba6 - SigChainLoader.LoadFromStorage(b88c777e52a04c178841eacfbf3b5f00) -> ok
15:52:44.718802 ▶ DEBU ba7 | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) MakeSigChain
15:52:44.718812 ▶ DEBU ba8 | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) VerifyChain
15:52:44.718821 ▶ DEBU ba9 | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) CheckFreshness
15:52:44.718830 ▶ DEBU baa + CheckFreshness
15:52:44.718838 ▶ DEBU bab | Server triple: &{16 [78 102 160 127 2 238 237 121 137 56 132 13 104 149 192 80 138 136 17 142 68 45 205 198 126 40 71 138 36 112 192 219] 0xc20c46f240}
15:52:44.718862 ▶ DEBU bac | Client triple=nil
15:52:44.718870 ▶ DEBU bad | Future triple=nil
15:52:44.718878 ▶ DEBU bae | Local chain version is out-of-date: -1 < 16
15:52:44.718889 ▶ DEBU baf - CheckFreshness (b88c777e52a04c178841eacfbf3b5f00) -> (false,ok)
15:52:44.718901 ▶ DEBU bb0 | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) LoadFromServer
15:52:44.718910 ▶ DEBU bb1 + GetLastLoadedSeqno()
15:52:44.718919 ▶ DEBU bb2 - GetLastLoadedSeqno() -> 0
15:52:44.718929 ▶ DEBU bb3 + Load SigChain from server (uid=b88c777e52a04c178841eacfbf3b5f00, low=0)
15:52:44.718954 ▶ DEBU bb4 + API GET request to https://api.keybase.io:443/_/api/1.0/sig/get.json?low=0&uid=b88c777e52a04c178841eacfbf3b5f00
15:52:44.816625 ▶ DEBU bb5 | Result is: 200 OK
15:52:44.912789 ▶ DEBU bb6 - succesful API call
15:52:44.912817 ▶ DEBU bb7 | Got back 16 new entries
15:52:44.912871 ▶ DEBU bb8 | Unpacked Link 177ccefaaf52f45270ae66849b61cde5b4d73af1aad1a4b85c5f6f3b1108f8ca
15:52:44.912923 ▶ DEBU bb9 | Unpacked Link 4a5f8f24863fbfae7f065b0e695426e05b58742e2b7a5fe9594a349e280acc1d
15:52:44.912969 ▶ DEBU bba | Unpacked Link 428234e47ea47f1672c596779d0e36454e50af6fc2ce48fe8d8aa7c8f43a81d1
15:52:44.913132 ▶ DEBU bbb | Unpacked Link d8bb331342ae38aa0a1b8ff7ec2b882a551bfb658ac4913d5f886befb49eadf1
15:52:44.913263 ▶ DEBU bbc | Unpacked Link 372ca4cfca66696c313a7a87dbb53b9de243221aa3f9f376c82113087148008f
15:52:44.913314 ▶ DEBU bbd | Unpacked Link 1073e965df0ada6c9cd7b5029ce1b4be9ef0115625aeb020e51f29aa3f5ec5d1
15:52:44.913360 ▶ DEBU bbe | Unpacked Link c97091a40d48288f1742468044cd5a1125cdc7dff959eb46486f8d6e32c74763
15:52:44.913406 ▶ DEBU bbf | Unpacked Link fd41fa835c4b41eef8ee924a5ce7ea48c6c9391210ab03474f20e06c067b537c
15:52:44.913453 ▶ DEBU bc0 | Unpacked Link 79d19c68b3b4fe9d014505e45aec8f9ddecf6debc517baa45dbe2d7e3d98a98a
15:52:44.913521 ▶ DEBU bc1 | Unpacked Link 36dd54a157b2c0aafb4384f4154c82b661d13f0fced2853790fca9e00d8d0017
15:52:44.913571 ▶ DEBU bc2 | Unpacked Link 89e1136bcc24be18016529bb05423bf0ab9de9d7745c5c745c6c5601bdc57409
15:52:44.913619 ▶ DEBU bc3 | Unpacked Link c2aea56c0d21d2d9d3320d868d87106c926568f2b98a338e66ecc3dcb1ae483f
15:52:44.913666 ▶ DEBU bc4 | Unpacked Link 943ca334a306c4ef08f9d8fad342cbecc82f296bfbfe35eb6a6d3717efb4cfc1
15:52:44.913712 ▶ DEBU bc5 | Unpacked Link f530cb62ba47a68346619cf578d5fa7d708131208515281c24b231494354e0c7
15:52:44.913756 ▶ DEBU bc6 | Unpacked Link 75b055b1b96d5b6ce98bf5c9bbdcd42b6d51b49c401b1fc5d247cfdbe3f9009f
15:52:44.913799 ▶ DEBU bc7 | Unpacked Link 4e66a07f02eeed798938840d6895c0508a88118e442dcdc67e28478a2470c0db
15:52:44.913808 ▶ DEBU bc8 | Found chain tail advertised in Merkle tree @16
15:52:44.913816 ▶ DEBU bc9 - Loaded SigChain -> ok
15:52:44.913822 ▶ DEBU bca | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) VerifyChain
15:52:44.915355 ▶ DEBU bcb | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) Store
15:52:44.915438 ▶ DEBU bcc | Store Link 4e66a07f02eeed798938840d6895c0508a88118e442dcdc67e28478a2470c0db
15:52:44.915511 ▶ DEBU bcd | Store Link 75b055b1b96d5b6ce98bf5c9bbdcd42b6d51b49c401b1fc5d247cfdbe3f9009f
15:52:44.915566 ▶ DEBU bce | Store Link f530cb62ba47a68346619cf578d5fa7d708131208515281c24b231494354e0c7
15:52:44.915615 ▶ DEBU bcf | Store Link 943ca334a306c4ef08f9d8fad342cbecc82f296bfbfe35eb6a6d3717efb4cfc1
15:52:44.915672 ▶ DEBU bd0 | Store Link c2aea56c0d21d2d9d3320d868d87106c926568f2b98a338e66ecc3dcb1ae483f
15:52:44.915731 ▶ DEBU bd1 | Store Link 89e1136bcc24be18016529bb05423bf0ab9de9d7745c5c745c6c5601bdc57409
15:52:44.915780 ▶ DEBU bd2 | Store Link 36dd54a157b2c0aafb4384f4154c82b661d13f0fced2853790fca9e00d8d0017
15:52:44.915826 ▶ DEBU bd3 | Store Link 79d19c68b3b4fe9d014505e45aec8f9ddecf6debc517baa45dbe2d7e3d98a98a
15:52:44.915872 ▶ DEBU bd4 | Store Link fd41fa835c4b41eef8ee924a5ce7ea48c6c9391210ab03474f20e06c067b537c
15:52:44.915919 ▶ DEBU bd5 | Store Link c97091a40d48288f1742468044cd5a1125cdc7dff959eb46486f8d6e32c74763
15:52:44.915972 ▶ DEBU bd6 | Store Link 1073e965df0ada6c9cd7b5029ce1b4be9ef0115625aeb020e51f29aa3f5ec5d1
15:52:44.916068 ▶ DEBU bd7 | Store Link 372ca4cfca66696c313a7a87dbb53b9de243221aa3f9f376c82113087148008f
15:52:44.916194 ▶ DEBU bd8 | Store Link d8bb331342ae38aa0a1b8ff7ec2b882a551bfb658ac4913d5f886befb49eadf1
15:52:44.916238 ▶ DEBU bd9 | Store Link 428234e47ea47f1672c596779d0e36454e50af6fc2ce48fe8d8aa7c8f43a81d1
15:52:44.916289 ▶ DEBU bda | Store Link 4a5f8f24863fbfae7f065b0e695426e05b58742e2b7a5fe9594a349e280acc1d
15:52:44.916330 ▶ DEBU bdb | Store Link 177ccefaaf52f45270ae66849b61cde5b4d73af1aad1a4b85c5f6f3b1108f8ca
15:52:44.916340 ▶ DEBU bdc | SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) VerifySig
15:52:44.916347 ▶ DEBU bdd + VerifyWithKey for user b88c777e52a04c178841eacfbf3b5f00
15:52:44.916801 ▶ DEBU bde - VerifySigsAndComputeKeys for user b88c777e52a04c178841eacfbf3b5f00 -> false %!v(MISSING)
15:52:44.916813 ▶ DEBU bdf - SigChainLoader.Load(b88c777e52a04c178841eacfbf3b5f00) -> (true, ERROR)
15:52:44.916820 ▶ DEBU be0 + LockTable.Unlock(b88c777e52a04c178841eacfbf3b5f00)
15:52:44.916827 ▶ DEBU be1 | LockTable.unref(b88c777e52a04c178841eacfbf3b5f00)
15:52:44.916833 ▶ DEBU be2 - LockTable.Unlock(b88c777e52a04c178841eacfbf3b5f00)
Error Domain=MPMessagePack Code=218 "EOF" UserInfo=0x608000075740 {NSLocalizedDescription=EOF}

Tried from a few accounts, same error. Looks like sigchain error in gbrl27 (I have a failing github proof on that account.)

I'll try to leave that test account alone.

maxtaco commented 9 years ago

Ah, I think I know, let me check in a workaround. Try it now? (Workaround was in 3c585b0a8b2acf0f11dd30e22594d5afb4b32555)

gabriel commented 9 years ago

yep thx!

maxtaco commented 9 years ago

Sorry about that. It's a a security feature introduced in #123 that wasn't intended to be backwards-compatible with some of the keys we've been generating in the clients. I disabled the check but we should come up with a plan to sunset the old keys. No sense in supporting the old system since it's less secure.

maxtaco commented 9 years ago

@gabriel in general I might need to make some changes that break our test users. I'll try to batch them all into one DB purge... (Site users aren't using any of these features, so they'll be unaffected.)

gabriel commented 9 years ago

oh yeah np! I can regenerate test users easily (and from the client instead of web) and I very very often clear my state as I switch users and stuff so no biggie