David Dworken
9bfd4bf173
Make uploading skipped history entries more efficient and use only one HTTP request
2022-10-09 17:13:40 -07:00
David Dworken
c16d260643
Make the reupload command more efficient by sending multiple entries at once
2022-10-09 17:10:11 -07:00
David Dworken
52c3b13cb6
Add reupload command + include source_device_id query param when submitting entries
2022-10-09 12:13:05 -07:00
David Dworken
e1c968fb21
Support an undocumented hishtory import command that can be used to import hishtory items from a pipe
2022-10-03 23:14:06 -07:00
David Dworken
30e6f048ab
Add better handling for SLSA errors
2022-10-02 20:14:54 -07:00
David Dworken
757ebb9547
Prompt people if they run hishtory init and already have a bunch of entries + fix tests + add TODOs + add hishtory version to requests
2022-10-01 09:50:06 -07:00
David Dworken
a108268925
Add TODOs
2022-09-27 22:15:31 -07:00
David Dworken
b0c4780d48
hishtory --> hiSHtory
2022-09-24 15:30:51 -07:00
David Dworken
6c8810059a
Add TODO(feature) for session id
2022-09-24 01:01:32 -07:00
David Dworken
ee6680f571
Remove debugging information and give up on that test, and add work around for weird zsh bug with importing
2022-09-22 18:09:51 -07:00
David Dworken
d226fab7ec
Pipe ctx into the Update function
2022-09-21 20:20:43 -07:00
David Dworken
486feb3fea
Add missing new lines
2022-09-21 19:13:53 -07:00
David Dworken
ceb1becfa6
Fix ctx wiring so installs work properly
2022-09-20 23:30:57 -07:00
David Dworken
694c2e2679
Untested: ctx wired through
2022-09-20 22:28:40 -07:00
David Dworken
e47bcfc993
Part way through migrating to context
2022-09-20 22:03:15 -07:00
David Dworken
28c7486a0e
Add hishtory redact to the help page
2022-09-20 21:42:09 -07:00
David Dworken
5391ecd220
First version of working redaction with passing integration tests
2022-09-19 22:49:48 -07:00
David Dworken
1bf510ff8a
Better offline handling, implemented the local portion of delete, and maybe fixed the bug when running tests on github actions
2022-09-18 09:42:24 -07:00
David Dworken
6c6acc5473
Fix another actions only bug + add todo
2022-09-18 09:14:34 -07:00
David Dworken
3bfe88d73e
Improve error message + remove code that disabled error checking on github actions
2022-09-17 22:45:07 -07:00
David Dworken
bad123a3dd
Add tests for history importing and add output showing the number of imported entries
2022-09-17 11:49:31 -07:00
David Dworken
23315a7e75
Fix code signing bug and add the implementation for initial importing of existing history files
2022-09-17 11:21:42 -07:00
David Dworken
c190b80837
Add TODO for importing at install time
2022-09-10 15:19:40 -07:00
David Dworken
aef13b16d0
Offline first! Now if a devide is offline it will detect this and upload the entries later
2022-09-04 18:37:46 -07:00
David Dworken
ad7e412855
Add help command
2022-06-05 18:26:02 -07:00
David Dworken
5e44e7ef36
Support queries as part of the export command + more info sent to the banner endpoint
2022-06-05 18:05:06 -07:00
David Dworken
30ee41a6ea
Automatic retries when the DB is busy
2022-06-04 22:06:50 -07:00
David Dworken
de15305fb5
Patch vendored slsa verifier and fix updates
2022-06-04 21:31:16 -07:00
David Dworken
dd4e2e9278
Add TODO + better error messages
2022-06-04 20:35:47 -07:00
David Dworken
47d13a9c27
Passing the basic dump testss
2022-05-22 19:45:46 -07:00
David Dworken
feaa8b2bd1
Add a DB dump test that passes on zsh (is failing for an unknown reason on bash currently) + fix backup and restore for WAL files + better offline support
2022-05-01 22:37:26 -04:00
David Dworken
cbc4e70605
Integrated client-side with dump requests, haven't written any integration tests yet
2022-04-28 11:46:14 -07:00
David Dworken
da30659f64
Another alternative error message for when offline
2022-04-28 11:01:49 -07:00
David Dworken
0499010981
Remove the 'e' prefix from api endpoints + implement backend APIs for clean loading of all data from other instances
2022-04-28 10:56:59 -07:00
David Dworken
4cb5773632
Add hex parsing for xattr setting + log rather than error when offline
2022-04-28 09:51:01 -07:00
David Dworken
158f08f5c6
Improved update flow
...
Using the previously added new API endpoint, the update flow can now skip updates if the latest version is already installed. This also improves the output by making it so update can print the version. Also improved the error handling.
2022-04-16 20:50:02 -07:00
David Dworken
3d7af0cd4b
Add SLSA verification of updated binary
...
Currently the SLSA verifier is meant to be used a standalone binary. I copied a bit of code from their main (and imported the rest of their code as a library) in order to support embedding it as a library. This ensures that the updated hishtory passes SLSA L3.
2022-04-16 16:02:07 -07:00
David Dworken
a436edbd16
Add backend code to delete entries that have already been read + start collecitng data on usage data so we can eventually prune data from users that are no longer using hishtory
2022-04-16 11:37:43 -07:00
David Dworken
def83d6b0e
Add verbose flag for the status subcommand
2022-04-16 10:46:57 -07:00
David Dworken
c369661e53
More server-side logging + client-side logging
2022-04-16 00:44:47 -07:00
David Dworken
b09b725f49
Properly skip recording of commands prefixed with a space to match bash's history behavior
2022-04-15 00:04:49 -07:00
David Dworken
dc6fb6a47b
Refactor tests to make them non-flakey and pass on actions
...
This required adding the ability to have hishtory run synchronously to avoid reconditions. I also added additional waiting code. Also a whole bunch of new tests and disabled gorm's default logger which also caued flakeyness
2022-04-14 20:18:49 -07:00
David Dworken
d39ca42cea
Attempt to fix broken timezone test
2022-04-11 22:56:23 -07:00
David Dworken
97670c92f5
Display the hostname in the table
2022-04-09 14:52:10 -07:00
David Dworken
2bb06b568a
Add version to binary
2022-04-09 14:37:21 -07:00
David Dworken
108e1526b8
trying again with ldflags + fixed update url
2022-04-08 22:56:44 -07:00
David Dworken
966f73757b
moved client/client.go to hishtory.go to support slsa l3 border
2022-04-08 21:17:11 -07:00