summaryrefslogtreecommitdiffhomepage
path: root/debug-me.cabal
Commit message (Collapse)AuthorAge
* releasing package debug-me version 1.202008201.20200820Joey Hess2020-08-20
|
* 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.
* releasing package debug-me version 1.201812081.20181208Joey Hess2018-12-08
|
* 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.
* Update to lts-9.0.1.20170810Joey Hess2017-08-10
|
* releasing package debug-me version 1.201705201.20170520Joey Hess2017-05-20
|
* developer keyring verificationJoey Hess2017-05-20
| | | | | | | | | | | | | | * gpg keyrings in /usr/share/debug-me/ will be checked to see if a connecting person is a known developer of software installed on the system, and so implicitly trusted already. Software packages/projects can install keyrings to that location. (Thanks to Sean Whitton for the idea.) * make install will install /usr/share/debug-me/debug-me_developer.gpg, which contains the key of Joey Hess. (stack and cabal installs don't include this file because they typically don't install system-wide) * debug-me.cabal: Added dependency on time. This commit was sponsored by Francois Marier on Patreon.
* releasing package debug-me version 1.201705091.20170509Joey Hess2017-05-09
|
* wordingJoey Hess2017-05-05
|
* sanitize gpg output and chat messagesJoey Hess2017-05-04
| | | | | Just in case, only allow printable characters in this, not control characters.
* no INSTALL file so farJoey Hess2017-05-04
|
* nearing releaseJoey Hess2017-05-04
|
* debug-me server addedJoey Hess2017-05-04
|
* add init script, systemd service file, MakefileJoey Hess2017-05-04
| | | | | | for debug-me server installation Adapted from keysafe
* allow building with versions in debianJoey Hess2017-05-02
| | | | | | When built with old websockets, compression is not supported. Client and server will negotiate that so version skew between them is not a problem.
* capitalizationJoey Hess2017-05-02
|
* add --use-server option for userJoey Hess2017-04-30
|
* server: email logs to user, and option to delete old onesJoey Hess2017-04-30
|
* make url work without --debugJoey Hess2017-04-30
|
* add Gpg web of trust parserJoey Hess2017-04-29
|
* split moduleJoey Hess2017-04-29
|
* automatically open control windowJoey Hess2017-04-28
|
* reorgJoey Hess2017-04-28
|
* expand descriptionJoey Hess2017-04-28
|
* control window and chattingJoey Hess2017-04-28
| | | | Works!
* improved description and man pageJoey Hess2017-04-28
| | | | documenting well ahead of implementation now
* boundsJoey Hess2017-04-27
|
* 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.
* switch wire message seralization to use protocol buffersJoey Hess2017-04-27
| | | | | | | | | | | | | | | | | | | | | | | | This way it's not tied to details of the haskell binary library, and implementations in other languages should be fairly simple to do. The haskell protobuf library was used because it does not need extra tooling or build steps. So I didn't write a .proto file, but one could fairly easily be written by following ProtocolBuffers.hs and translating it. ProtocolBuffers.hs is *extremely* repetative and tedious code. Surely there must be a way to not need to write all of that? Oh well, I wrote it.. Sizes of serialized messages: ">>> debug-me session started": 121 sending a single key press: 169 This seems equally as efficient as the binary serialization was; that was 165 bytes before elapsedTime was added. This commit was sponsored by Ethan Aubin.
* websockets-0.11.0.0 including enabling compressionJoey Hess2017-04-24
| | | | | Does not currently work, see https://github.com/jaspervdj/websockets/issues/140
* 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.
* improve selection of command to runJoey Hess2017-04-21
|
* use UUID to generate a unique SessionIDJoey Hess2017-04-21
|
* client now fully workingJoey Hess2017-04-21
|
* initial http serverJoey Hess2017-04-21
| | | | | | | | | | | | Incomplete, but the client is able to connect and send messages which get logged. Split up debug-me.hs into Role/* Switched from cereal to binary, since websockets operate on lazy ByteStrings, and using cereal would involve a copy on every receive. This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
* http server scaffoldingJoey Hess2017-04-21
|
* use cereal for efficient serialization for wire formatJoey Hess2017-04-21
| | | | | | | | | | | I tried both binary and cereal. For a ActivityMessage that takes 341 bytes in JSON and has a dataSize of 129, both used 165 bytes. Went with cereal since lazy bytestrings are not needed, and I might want to use https://hackage.haskell.org/package/safecopy later. (Perhaps I should be using protocol buffers or something to make it easier for non-haskell implementations? But that would complicate things a lot.)
* initial CryptoJoey Hess2017-04-18
| | | | | Will use Ed25519 because it's from DJB and well regarded and in common use now.
* memory DOS preventionJoey Hess2017-04-18
| | | | | | | | | | | | Prevent DOS of user side by limiting the size of the BackLog that is maintained. This should not cause problems in even high latency environments, and should prevent memory use > 16 mb. The developer side does not keep much data, other than a list of the Hashes of things it has recently sent, so is not susceptable to memory DOS. This commit was sponsored by Brock Spratlen on Patreon.
* add --replay optionJoey Hess2017-04-18
| | | | This commit was sponsored by Ole-Morten Duesund on Patreon.
* refactor out LogJoey Hess2017-04-18
|
* improve typesJoey Hess2017-04-18
| | | | Including adding a timestamp to logs
* add --graphviz modeJoey Hess2017-04-14
| | | | This commit was sponsored by Shane-o on Patreon.
* log JSON to debug-me.log (for now)Joey Hess2017-04-14
| | | | | | useful for debugging, etc This commit was sponsored by Alexander Thompson on Patreon.
* improve JSONJoey Hess2017-04-14
| | | | | | | | | | | | | | | | | | | | | | | Most of the time, ByteStrings will be able to be encoded as utf8, so avoid base64 when not needed. Adjusted some of the types in order to generate more usual JSON. In particular, removed StartActivity. The JSON now looks like this (with the signature still not populated): {"signature":{"v":""},"prevActivity":{"hashValue":{"v":"3b1abe614dd43bdb2d9a56777884e2d0f3bac9796e2d25c1ad52bb689c117286"},"hashMethod":"SHA256"},"activity":{"echoData":{"v":""},"enteredData":{"v":"l"}}} 203 bytes to send a single keystroke is not great when there's really only 1+64(hash) bytes of unique data. So, may end up adding a wire encoding on top of this. But, JSON is good to have for storage of the proofs, etc. Also, it does compress well. Two such JSON objects gzip -9 to 219 bytes, and three to 265 bytes. So, 37 bytes per keystroke. This is *exactly* as efficient as gzip -9 of $c$hash formatted data. This commit was sponsored by Jack Hill on Patreon.
* add JSON serializationJoey Hess2017-04-14
| | | | | | | Fairly straightforward, but did have to decide how to encode all the ByteStrings, since they are not necessarily utf-8. Used base64. This commit was sponsored by Henrik Riomar on Patreon.
* use posix-pty, and forward SIGWINCHJoey Hess2017-04-13
| | | | | | | | | | | | | | | | I discovered the posix-pty library while looking for a way to forward SIGWINCH to the slave pty. It's taken care of a lot of nasty pty handling details, so let's use it! Unfortunately, this broke control-d exiting debug-me, which used to work great. I think that the problem is that readPty never returns B.empty, even on control-d. Or perhaps, posix-pty is doing something to the pty that prevents control-d getting through. I kept all the withoutMode code; at least withoutMode EnableEcho is still needed. This commit was sponsored by Jochen Bartl on Patreon.
* use Activity types for user<->developer communicationJoey Hess2017-04-12
| | | | | | | | | | | | | | | Still all in a single process with no serialization, but now there are separate threads for the user and developer sides, and they communicate Activity back and forth. Signatures are not checked yet, but both user and developer check that the other side is sending Activity that forms a valid hash chain with previous Activity. The echo simulation is included, but may be buggy. This seems to work well enough with 0 latency at least. This commit was sponsored by Thom May on Patreon.
* debug-me is able to run a shell in a slave ptyJoey Hess2017-04-11
| | | | | | | Lots of terminal mode fun. Has a few warts still, but it works well enough to be comfortable, and even vim works ok. This commit was sponsored by John Peloquin on Patreon.