This website requires JavaScript.
09d53ffa76
fix: PostPubkeyLogin should be lowercasing the pubkey and signature
Derrick Hammer
2023-06-06 22:28:40 -0400
d680f0660f
fix: PostPubkeyChallenge should be lowercasing the pubkey for consistency
Derrick Hammer
2023-06-06 22:28:08 -0400
36745bb55b
fix: PostPubkeyChallenge should be using ChallengeRequest
Derrick Hammer
2023-06-06 22:27:34 -0400
db3ba1f014
fix: PostPubkeyChallenge should not be checking email, but pubkey
Derrick Hammer
2023-06-06 22:27:07 -0400
c20dec0204
fix: abort if we don't have a password for the account, assume its pubkey only
Derrick Hammer
2023-06-06 22:05:49 -0400
def1b50cfc
fix: ensure we store the pubkey in lowercase
Derrick Hammer
2023-06-06 22:04:59 -0400
f3172b0d31
fix: handle duplicate tus uploads by hash
Derrick Hammer
2023-06-06 17:25:29 -0400
f8aaeff6de
fix: rewrite gorm query logic for tus uploads
Derrick Hammer
2023-06-06 17:01:54 -0400
99d7b8347a
feat: add debug mode logging support
Derrick Hammer
2023-06-06 16:37:22 -0400
670bc9d64c
refactor: enable automatic env parsing
Derrick Hammer
2023-06-06 16:35:58 -0400
4831b8b68f
refactor: need to add renterd-api-password config arg
Derrick Hammer
2023-06-06 16:35:20 -0400
38b76155af
feat: add a status endpoint and move cid validation to a utility method
Derrick Hammer
2023-06-06 16:34:05 -0400
1f195cf328
feat: add a Status method for uploads
Derrick Hammer
2023-06-06 16:33:14 -0400
d0e59c8729
refactor: no longer embed renterd
Derrick Hammer
2023-06-06 16:32:07 -0400
72255eb3c5
fix: newer gorm version causes db rebuilds every boot
Derrick Hammer
2023-06-02 04:48:46 -0400
8331136f7f
chore: update renterd
Derrick Hammer
2023-05-31 19:28:24 -0400
325ab7044f
refactor: sync cli options and env code with upstream
Derrick Hammer
2023-05-31 00:17:02 -0400
d1742265b6
chore: update renterd
Derrick Hammer
2023-05-31 00:15:36 -0400
09cd274d29
chore: update renterd
Derrick Hammer
2023-05-29 13:06:32 -0400
26042b62ac
fix: Use gorm save, and return nil if successful
Derrick Hammer
2023-05-23 20:16:26 -0400
038d2c440b
fix: save upload info after every chunk
Derrick Hammer
2023-05-23 20:15:49 -0400
96ac75bf3f
refactor: add logging
Derrick Hammer
2023-05-23 20:15:24 -0400
56d61895f5
refactor: pass id to FileInfo and use info in fileUpload
Derrick Hammer
2023-05-23 20:15:08 -0400
89ef950432
refactor: use provided file hash
Derrick Hammer
2023-05-23 20:14:21 -0400
396b3f60a8
refactor: move terminateUpload db logic to store
Derrick Hammer
2023-05-23 20:12:48 -0400
e7d1bd0f09
refactor: add getStore helper
Derrick Hammer
2023-05-23 20:10:51 -0400
e8c232dfdd
refactor: change shared to use interfaces to avoid an import cycle
Derrick Hammer
2023-05-23 20:10:17 -0400
39936b3b14
refactor: create a new tus store that uses the db for meta instead of the filesystem
Derrick Hammer
2023-05-22 19:07:06 -0400
7845f95776
refactor: move logger to its own package
Derrick Hammer
2023-05-22 19:05:38 -0400
6d5b9d880b
refactor: deduplicate building api urls
Derrick Hammer
2023-05-22 17:14:32 -0400
4b712a3a80
refactor: see if proof exists and only if both the proof and file are not 404, do we abort as already existing
Derrick Hammer
2023-05-22 16:36:19 -0400
7fe05862b1
chore: update renterd
Derrick Hammer
2023-05-22 11:02:59 -0400
90170e5b81
fix: if we have an existing upload, just return it as if successful
Derrick Hammer
2023-05-22 11:02:47 -0400
ed6220fc7d
refactor: optionally compare passed hash with computed one and reject if they don't match
Derrick Hammer
2023-05-22 11:00:24 -0400
09f9a5bdfd
refactor: update id fields
Derrick Hammer
2023-05-22 10:59:16 -0400
75e5838b01
refactor: move tus record delete logic to terminateUpload and delete by tus upload id
Derrick Hammer
2023-05-22 10:26:48 -0400
6ddef03790
fix: if uploading returns a 500 and its a slab error, treat as a 404
Derrick Hammer
2023-05-19 09:05:40 -0400
bef2ed7431
refactor: add logging
Derrick Hammer
2023-05-19 09:04:47 -0400
748cac542e
refactor: add zap logger
Derrick Hammer
2023-05-17 13:34:44 -0400
0a90ff6439
refactor: add terminateUpload method
Derrick Hammer
2023-05-17 13:34:27 -0400
80561f89e9
fix: missing setting SetTusComposer
Derrick Hammer
2023-05-17 13:34:05 -0400
df08fc980a
fix: add a check for a 500 error
Derrick Hammer
2023-05-17 13:33:22 -0400
76b6fb34fe
chore: update renterd
Derrick Hammer
2023-05-17 10:55:06 -0400
033522222f
chore: remove unused deps
Derrick Hammer
2023-05-17 10:53:42 -0400
ee33da755c
refactor: use BaoEncodedSize
Derrick Hammer
2023-05-17 10:12:22 -0400
aa702ffd02
refactor: move to new golang bao implementation
Derrick Hammer
2023-05-17 09:52:25 -0400
2f514c02be
refactor: move shared global state to a shared package
Derrick Hammer
2023-05-16 18:46:08 -0400
503cb55c55
refactor: tus needs to move to its own package
Derrick Hammer
2023-05-16 18:45:32 -0400
55d8dda6e8
refactor: have the Download method check for a tus upload thats still in progress and use it if a upload item does not exist
Derrick Hammer
2023-05-16 18:42:03 -0400
4548de5c60
refactor: change storing path to just ID and fetch from upload via the tus store
Derrick Hammer
2023-05-16 17:11:38 -0400
673f7c6dfd
refactor: have Upload take both a io.ReaderSeeker and os.File and update usages based of if we are streaming a small file or handling a big one via filename
Derrick Hammer
2023-05-15 15:47:34 -0400
687f26cc77
feat: add ComputeFile bao RPC method
Derrick Hammer
2023-05-15 15:45:05 -0400
35878a2427
chore: update deps
Derrick Hammer
2023-05-15 12:36:08 -0400
3005be6fec
feat: tus support
Derrick Hammer
2023-05-15 12:36:00 -0400
a8d2ad3393
refactor: move to a go-plugin based GRPC approach for bao
Derrick Hammer
2023-05-15 12:34:55 -0400
435445dda5
refactor: change where to use a struct
Derrick Hammer
2023-05-11 15:25:31 -0400
294370d88d
fix: hasher needs the size set to 32
Derrick Hammer
2023-05-11 15:24:49 -0400
b44b12f85e
refactor: change download controller method to use a path argument and not a query
Derrick Hammer
2023-05-10 15:09:18 -0400
90e4ce6408
fix: use bufio reader
Derrick Hammer
2023-05-10 14:50:36 -0400
b48db1d8c4
refactor: add Download function to files service
Derrick Hammer
2023-05-10 14:41:12 -0400
73bc836cbc
refactor: change files controller to use new files service api
Derrick Hammer
2023-05-10 14:40:29 -0400
118c679f76
feat: add StringHash
Derrick Hammer
2023-05-10 14:36:45 -0400
a93add8f70
refactor: create new files package with Upload
Derrick Hammer
2023-05-10 14:28:32 -0400
2dae0c8687
refactor: rename services to controllers
Derrick Hammer
2023-05-10 14:23:22 -0400
488f8737c0
feat: add EncodeString function
Derrick Hammer
2023-05-10 14:17:50 -0400
8f3af2084c
refactor: rename services to controllers
Derrick Hammer
2023-05-10 07:07:56 -0400
6ceefc11cf
refactor: make encode fixed method to take a [32]byte, and change Encode to take a byte array that just copies and calls EncodeFixed
Derrick Hammer
2023-05-09 12:48:48 -0400
b21a425e24
fix: dont try to stream if we have an error
Derrick Hammer
2023-05-08 10:16:47 -0400
9b17557d14
chore: update deps
Derrick Hammer
2023-05-08 10:11:19 -0400
79fd550c54
feat: add download endpoint
Derrick Hammer
2023-05-08 10:10:57 -0400
fb65690abd
fix: add shutdown signal and flag for renterd
Derrick Hammer
2023-05-08 10:09:33 -0400
4e6c29f1fd
feat: add Valid, and Decode methods, and create CID struct
Derrick Hammer
2023-05-08 10:09:00 -0400
2dc9d4dcf6
refactor: rename encode method
Derrick Hammer
2023-05-06 04:38:09 -0400
5ba0111d08
core: update deps
Derrick Hammer
2023-05-06 03:56:48 -0400
9b8cb38496
fix: disable client warnings
Derrick Hammer
2023-05-06 03:56:38 -0400
7aea462ab7
fix: uploading of main file
Derrick Hammer
2023-05-04 09:11:31 -0400
5aca66d919
fix: encode size as uint64 to the end of the cid
Derrick Hammer
2023-05-04 08:16:44 -0400
479df7eb39
chore: update deps
Derrick Hammer
2023-05-04 08:01:46 -0400
039a4a3354
fix: if upload status code isn't 200, make it an err based on the body
Derrick Hammer
2023-05-04 07:58:06 -0400
fbc9133df5
chore: update deps
Derrick Hammer
2023-05-04 04:21:51 -0400
37033bf45c
refactor: register files service
Derrick Hammer
2023-05-04 04:21:39 -0400
ca3d3588a4
refactor: call renterd earlier but wait until its ready
Derrick Hammer
2023-05-04 04:20:39 -0400
b16beebabb
feat: add files service with upload endpoint
Derrick Hammer
2023-05-04 04:18:38 -0400
4c649bfcb9
feat: add bao package and rust bao wasm library
Derrick Hammer
2023-05-04 04:18:15 -0400
706f7a05b9
feat: add cid package
Derrick Hammer
2023-05-04 04:14:47 -0400
13d1adb717
refactor: add upload and pin models to migration
Derrick Hammer
2023-05-04 04:14:31 -0400
ea99108327
feat: add jwt package
Derrick Hammer
2023-05-04 04:13:53 -0400
aaa2c17212
feat: add pin model
Derrick Hammer
2023-05-04 04:13:27 -0400
f73a04bb2e
feat: add upload model
Derrick Hammer
2023-05-04 04:13:19 -0400
782ac58ed2
refactor: update LoginSession
Derrick Hammer
2023-05-04 04:13:00 -0400
7bb7edb7d9
refactor: make seed/password public to be called, and create a chan to be checked with Ready to see if the renter is ready
Derrick Hammer
2023-05-04 04:12:26 -0400
5ad91ad263
fix: upstream renterd updates
Derrick Hammer
2023-05-04 04:11:11 -0400
a3cfebab30
fix: ctx needs to be public in AuthService
Derrick Hammer
2023-04-30 04:49:19 -0400
699e4244e0
feat: add more validation, and put account creation, with optional pubkey in a transaction
Derrick Hammer
2023-04-30 04:48:56 -0400
00f2b962a0
fix: remove PrivateKey, rename PublicKey in Key model
Derrick Hammer
2023-04-30 04:47:32 -0400
48164ec320
fix: register LoginSession model
Derrick Hammer
2023-04-30 04:47:07 -0400
7257b5d597
feat: add validation to account register
Derrick Hammer
2023-04-30 04:09:24 -0400
53264dfb24
refactor: change var name to not conflict
Derrick Hammer
2023-04-30 03:30:19 -0400
b023105b21
refactor: setup api versioning
Derrick Hammer
2023-04-30 03:30:03 -0400
a0d747fdf4
fix: Ctx must be public
Derrick Hammer
2023-04-30 03:29:24 -0400