summaryrefslogtreecommitdiffhomepage
path: root/Role
Commit message (Collapse)AuthorAge
* Update to lts-13.29, support ghc 8.6.5, and aeson 1.4.Joey Hess2019-09-26
| | | | | | | | | First tried lts-14.7, but the version of cabal-install currently in debian unstable (2.2.0.0) is not able to parse its cabal files. Small fix for MonadFail changes. This commit was sponsored by Jochen Bartl on Patreon.
* Update to lts-12.10, support ghc 8.4, and aeson 1.3.Joey Hess2018-12-08
| | | | | | | | | | | | | | | | Don't fully understand the need for the MonoLocalBinds language extension, which was not needed before but now ghc complains if it's not included, but I've tested it and it does work. All the rest of the changes are straightforward AMP changes and dep updates. Removed fgl from stack.yaml because it seems that indirect dep no longer needs to be specified for stack to build. Added custom-setup stanza since stack now warns without one. This commit was sponsored by Trenton Cronholm on Patreon.
* add protocol versionJoey Hess2017-05-05
| | | | | | | | | | | | | | | | | | | This is distinct from the wire protocol version used in the websocket framing of messages. Versioning the high level protocol will let later features be added. The user controls the protocol version, since they send the first several messages. Developers that connect need to avoid using features from newer protocol versions. So, developers and servers will need to support the most recent version, while the user can have an old version of debug-me and it will continue to work. This commit changes the protocol buffer encoding, and is the last such free change. All changes past this point will need to be versioned. This commit was sponsored by Jochen Bartl on Patreon.
* include gpg public key export in GpgSignedJoey Hess2017-05-04
| | | | | | | | | | | | This makes debug-me not rely on the gpg keyservers at all. Before, it was only working when the user had the developer's public key already. I thought that --verify would download from --keyserver, but seems not. This is a protocol breaking change! Luckily done before any release, so ok. ProtocolBuffers renumbered. This commit was sponsored by Denis Dzyubenko on Patreon.
* capitalizationJoey Hess2017-05-02
|
* /quitJoey Hess2017-05-02
| | | | This commit was sponsored by Jake Vosloo on Patreon.
* add prevEntered pointerJoey Hess2017-05-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Client requires this always point to the previous Entered it accepted, so a hash chain of Entered is built up, and there is no possibility for ambiguity about which order a client received two Entered activies in. So restoreHashes now has to try every possible combination of known hashes for both prevEntered and prevActivity. That could be significantly more work, but it would be unusual for there to be a lot of known hashes, so it should be ok. --graphviz shows this additional hash chain with grey edges (and leaves out edges identical to the other hash chain) While testing this with an artifical network lag, it turned out that signature verification was failing for Reject messages sent by the user. Didn't quite figure out what was at the bottom of that, but the Activity Entered that was sent back in a Reject message was clearly not useful, because it probably had both its prevEntered and prevActivity hashes set to Nothing (because restoreHashes didn't restore them, because the original Activity Entered was out of the expected chain). So, switched Rejected to use a Hash. (And renamed Rejected to EnteredRejected to make it more clear what it's rejecting.) Also, added a lastAccepted hash to EnteredRejected. This lets the developer find its way back to the accepted chain when some of its input gets rejected. This commit was sponsored by Trenton Cronholm on Patreon.
* add --use-server option for userJoey Hess2017-04-30
|
* add license headers to all source filesJoey Hess2017-04-30
|
* server: email logs to user, and option to delete old onesJoey Hess2017-04-30
|
* improveJoey Hess2017-04-30
|
* more message improvementsJoey Hess2017-04-30
|
* simplifyJoey Hess2017-04-30
| | | | Last commit allows this simplification
* fix probable race in use of restoreHashesJoey Hess2017-04-30
| | | | | | | | | | | | | I think there was a race where a SessionKey message had been drained from the TChan, but not yet added to the developer state, which was resonsible for recent instability at startup. It manifested as protocol errors where the prevActivity hash was wrongly Nothing. Fixed by adding a MissingHashes type to tag things whose hashes have been stripped, and adding back the hashes when needed, which always happens inside atomically blocks, so won't have such a race.
* dump developer state on protocol errorJoey Hess2017-04-30
|
* fix displayJoey Hess2017-04-30
|
* log remote logs to subdirJoey Hess2017-04-30
|
* avoid STM crash on protocol errorJoey Hess2017-04-30
|
* prevent terminal echo before user grants write accessJoey Hess2017-04-30
| | | | And improve some messages.
* make url work without --debugJoey Hess2017-04-30
|
* don't forward other developer's SessionKey control messages to control windowJoey Hess2017-04-29
| | | | | The control window doesn't know it's running for a developer, so it would prompt to allow these, which was pointless.
* fix server to not relay developer messages back to selfJoey Hess2017-04-29
| | | | This fixes chat message echoing consistency too.
* use developer control window to tell when write access is grantedJoey Hess2017-04-29
|
* user gpg key checking and prompting done!Joey Hess2017-04-29
|
* split moduleJoey Hess2017-04-29
|
* improve connection to done session displayJoey Hess2017-04-28
|
* reorder "Using gpg to sign the debug-me session key" message before session ↵Joey Hess2017-04-28
| | | | start
* reorgJoey Hess2017-04-28
|
* control window and chattingJoey Hess2017-04-28
| | | | Works!
* log to ~/.debug-me/log/Joey Hess2017-04-28
| | | | | | | | | Make watcher also log and display the name of the logfile at start and end of session. --download still downloads to current directory because that seems less surprising than downloading to elsewhere. Also, the user might want to keep a copy of the local log while downloading the server log.
* Leave the prevMessage out of Activity serialization to save BW.Joey Hess2017-04-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do include it in the data that gets signed, so it can be recovered by trying each likely (recently seen) Activity as the prevMessage, and checking the signature. The UserState and DeveloperState already had the necessary state about recently seen hashes, so this does not impact data use. One tricky bit is that relayFromSocket needs to wait for the TMChan to be empty before calling restorePrevActivityHash. Otherwise, the hashes of items in the channel that have not been processed yet won't be tried. The TMChan is not really being used as a channel since only 1 item can be in it. It could be converted to a TMVar, but closeTMChan is used so I left it as a channel. Note that the server does not restore hashes of messages that pass through it; it's just a dumb relay. Sending a single key press now only needs 94 bytes of data to be sent, down from 169! --- Also switched to SHA512, since hashes are no longer being sent over the wire and so the larger size does not matter. SHA512 is slightly faster and more secure. This commit was sponsored by Ewen McNeill.
* don't need Maybe ElapsedTimeJoey Hess2017-04-27
| | | | Make it a monoid and use mempty = 0
* rename LogMessage to AnyMessageJoey Hess2017-04-27
| | | | Not related to the Log anymore.
* gpg sign developer session keyJoey Hess2017-04-26
| | | | | | And part of what we need to have users verify them. This commit was sponsored by andrea rota.
* include elapsedTime in ActivityJoey Hess2017-04-26
| | | | | | | | | | | | Time is relative, so the debug-me proof chain doesn't prove when things happened, but it's still useful to have some idea of how long things took to happen. This makes --replay work with logs gotten by --download. Log still includes loggedTimestamp. This is a bit redundant, and is unused now, but it's useful for log files to record when messages were received. This commit was sponsored by Riku Voipio.
* make developer accept messages from user that chain to other developer's ↵Joey Hess2017-04-26
| | | | | | | | | | | | | | messages This makes --download always work, which was the real motivation. It's probably a good ways to having multiple connected developers able to simulantaneously interact. I tested that breifly, and it seems to work ok! It may however, not handle it perfectly when both developers are trying to type at the same time. Still, nice that's basically working for free! This commit was sponsored by Jeff Goeke-Smith on Patreon.
* rename fieldsJoey Hess2017-04-26
|
* have server relay Devloper messages to other DevelopersJoey Hess2017-04-26
|
* include "session is done" in the session transcriptJoey Hess2017-04-25
| | | | | | Including the process exit status. And cleaner Role.User shutdown sequence.
* fix downloader and watcherJoey Hess2017-04-24
|
* fix connection closingJoey Hess2017-04-24
| | | | Now when the user quits, the developer also exits.
* switch to TMChans so they can be closed when a connection is DoneJoey Hess2017-04-24
|
* better workaround for https://github.com/jaspervdj/websockets/issues/142Joey Hess2017-04-24
|
* add framing protocol for websocketsJoey Hess2017-04-22
|
* it worksJoey Hess2017-04-22
| | | | | | | | | Multi-user client-server debug-me is working, almost perfectly. All that was missing was replaying the log when the developer connected. A number of race conditions had to be avoided to do that sanely. This commit was sponsored by Ignacio on Patreon.
* minorJoey Hess2017-04-22
|
* clean up connection closingJoey Hess2017-04-22
| | | | | | For some reason, runClient throws ConnectionClosed on apparently clean shutdown. This happens even though clientApp uses sendClose, and the server receives it and shuts down entirely cleanly.
* Loop user input and output between Pty and outer TtyJoey Hess2017-04-22
|
* added debug-me --watch modeJoey Hess2017-04-21
| | | | This commit was sponsored by Ewen McNeill.
* add --download modeJoey Hess2017-04-21
| | | | | | | Nice, was able to reuse all the protocol stuff from Role.Developer for this. This commit was sponsored by Fernando Jimenez on Patreon.