2f7c31d53c
refactor: completely restructure validation. split request and respond structs to their own package
bfbf13a57d
refactor: use tryParseRequest
9d843bffdb
refactor: use tryParseRequest
f3e43f522f
refactor: add validation for all auth request structs
dd8e5704c8
refactor: rename checkPubkey to CheckPubkeyValidator
27e7ea7d7a
fix: PostPubkeyLogin should not preload any model
09d53ffa76
fix: PostPubkeyLogin should be lowercasing the pubkey and signature
d680f0660f
fix: PostPubkeyChallenge should be lowercasing the pubkey for consistency
36745bb55b
fix: PostPubkeyChallenge should be using ChallengeRequest
db3ba1f014
fix: PostPubkeyChallenge should not be checking email, but pubkey
99d7b8347a
feat: add debug mode logging support
670bc9d64c
refactor: enable automatic env parsing
4831b8b68f
refactor: need to add renterd-api-password config arg
38b76155af
feat: add a status endpoint and move cid validation to a utility method
1f195cf328
feat: add a Status method for uploads
8331136f7f
chore: update renterd
325ab7044f
refactor: sync cli options and env code with upstream
d1742265b6
chore: update renterd
09cd274d29
chore: update renterd
26042b62ac
fix: Use gorm save, and return nil if successful
038d2c440b
fix: save upload info after every chunk
96ac75bf3f
refactor: add logging
56d61895f5
refactor: pass id to FileInfo and use info in fileUpload
89ef950432
refactor: use provided file hash
4b712a3a80
refactor: see if proof exists and only if both the proof and file are not 404, do we abort as already existing
7fe05862b1
chore: update renterd
90170e5b81
fix: if we have an existing upload, just return it as if successful
ed6220fc7d
refactor: optionally compare passed hash with computed one and reject if they don't match
09f9a5bdfd
refactor: update id fields
75e5838b01
refactor: move tus record delete logic to terminateUpload and delete by tus upload id
6ddef03790
fix: if uploading returns a 500 and its a slab error, treat as a 404
bef2ed7431
refactor: add logging
748cac542e
refactor: add zap logger
0a90ff6439
refactor: add terminateUpload method
80561f89e9
fix: missing setting SetTusComposer
ee33da755c
refactor: use BaoEncodedSize
aa702ffd02
refactor: move to new golang bao implementation
2f514c02be
refactor: move shared global state to a shared package
503cb55c55
refactor: tus needs to move to its own package
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
4548de5c60
refactor: change storing path to just ID and fetch from upload via the tus store
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
687f26cc77
feat: add ComputeFile bao RPC method
35878a2427
chore: update deps
3005be6fec
feat: tus support
a8d2ad3393
refactor: move to a go-plugin based GRPC approach for bao
435445dda5
refactor: change where to use a struct
294370d88d
fix: hasher needs the size set to 32
b44b12f85e
refactor: change download controller method to use a path argument and not a query
90e4ce6408
fix: use bufio reader
b48db1d8c4
refactor: add Download function to files service
73bc836cbc
refactor: change files controller to use new files service api
118c679f76
feat: add StringHash
9b17557d14
chore: update deps
79fd550c54
feat: add download endpoint
fb65690abd
fix: add shutdown signal and flag for renterd
4e6c29f1fd
feat: add Valid, and Decode methods, and create CID struct
2dc9d4dcf6
refactor: rename encode method