Derrick Hammer
|
46f81443c6
|
dep: update dashboard
|
2024-03-26 00:46:36 -04:00 |
Derrick Hammer
|
1185a2a56e
|
feat: add /api/meta endpoint
|
2024-03-26 00:46:11 -04:00 |
Derrick Hammer
|
73247a86fd
|
fix: handle edge case where the Protocol config map has no configs, but we are creating a default configuration for a protocol.
|
2024-03-26 00:18:42 -04:00 |
Derrick Hammer
|
c9531bc588
|
fix: update error messages to reflect full config keys
|
2024-03-26 00:00:04 -04:00 |
Derrick Hammer
|
fc6240c149
|
fix: use errors.As as viper uses a custom error struct
|
2024-03-25 22:05:24 -04:00 |
Derrick Hammer
|
eef49c34be
|
dep: update dashboard
|
2024-03-25 21:09:11 -04:00 |
Derrick Hammer
|
f6be51b942
|
refactor: move away from a granular tracking to a simpler, stage based tracking
|
2024-03-23 10:43:18 -04:00 |
Derrick Hammer
|
334fa4d788
|
feat: add UpdateProgress and UpdateStatus
|
2024-03-23 10:36:20 -04:00 |
Derrick Hammer
|
f2c68857f2
|
refactor: fix pinning logic if file exists
|
2024-03-22 20:31:44 -04:00 |
Derrick Hammer
|
0caa54f028
|
fix: if i > 0 add to bytesRead
|
2024-03-22 20:23:51 -04:00 |
Derrick Hammer
|
96713e3538
|
fix: always pass 0 to ReadBytes
|
2024-03-22 20:23:37 -04:00 |
Derrick Hammer
|
ba60a6c729
|
fix: if eof, return the byte count
|
2024-03-22 20:23:14 -04:00 |
Derrick Hammer
|
35b64515d7
|
fix: if a field changed, set its changes
|
2024-03-22 19:35:11 -04:00 |
Derrick Hammer
|
8d20659a5b
|
fix: if a field changed, set its changes
|
2024-03-22 19:34:40 -04:00 |
Derrick Hammer
|
e3022b8587
|
fix: skipExisting should be false
|
2024-03-22 19:19:31 -04:00 |
Derrick Hammer
|
66ddf67337
|
fix: wrong model registered
|
2024-03-22 18:49:56 -04:00 |
Derrick Hammer
|
085c4d69d6
|
fix: add cors to pin api
|
2024-03-22 18:47:41 -04:00 |
Derrick Hammer
|
5b2a86275f
|
refactor: if the user has the file pinned and no import exists, assume a completed status
|
2024-03-22 18:30:02 -04:00 |
Derrick Hammer
|
7665937196
|
refactor: add ImportStatusCompleted
|
2024-03-22 18:29:09 -04:00 |
Derrick Hammer
|
0a85711ead
|
feat: implement /s5/pin/:cid/status
|
2024-03-22 18:01:12 -04:00 |
Derrick Hammer
|
7696997e53
|
refactor: implement import reader in s5 pinning
|
2024-03-22 17:39:17 -04:00 |
Derrick Hammer
|
5523d5e60d
|
feat: add ImportReader class to wrap and track the reading of the import and update at every read, and support a stage number to act as an offset so it can be used for both s3 upload and sia upload stages
|
2024-03-22 17:32:30 -04:00 |
Derrick Hammer
|
0e3a25aa8a
|
feat: add import metadata db service based off the upload metadata service
|
2024-03-22 16:36:59 -04:00 |
Derrick Hammer
|
f22506b413
|
fix: add interface type check
|
2024-03-22 15:43:02 -04:00 |
Derrick Hammer
|
d06f436fa1
|
refactor: rewrite getHandler
|
2024-03-21 16:56:29 -04:00 |
Derrick Hammer
|
74cc88540d
|
fix: add rw mutex lock to getHandler
|
2024-03-21 16:53:48 -04:00 |
Derrick Hammer
|
755aff15da
|
feat: add pinned_at field to account pins
|
2024-03-21 16:28:48 -04:00 |
Derrick Hammer
|
62867f26a9
|
refactor: use CIDFromHash and extract the hash
|
2024-03-21 15:57:05 -04:00 |
Derrick Hammer
|
a48b10e50c
|
fix: we aren't pinning small files after uploading
|
2024-03-21 15:50:11 -04:00 |
Derrick Hammer
|
a8f62fd666
|
refactor: add option to SaveUpload so we have the option not to change an upload record if we are uploading or importing a file
|
2024-03-21 15:46:02 -04:00 |
Derrick Hammer
|
8bf4887dae
|
fix: add GET and DELETE to cors
|
2024-03-21 14:58:26 -04:00 |
Derrick Hammer
|
3e3f539a8b
|
refactor: change cookie approach to broadcast cookies across all protocols based on the root domain, so they can be shared.
|
2024-03-21 14:54:17 -04:00 |
Derrick Hammer
|
a289828c6f
|
fix: add cors to /s5/account/pins
|
2024-03-21 14:39:06 -04:00 |
Derrick Hammer
|
d895d047b3
|
refactor: add upload size to account pin response
|
2024-03-21 12:35:45 -04:00 |
Derrick Hammer
|
abec1877cd
|
fix: set hash and mime_type as required
|
2024-03-21 11:01:03 -04:00 |
Derrick Hammer
|
4dec430c69
|
fix: set pins as required
|
2024-03-21 10:54:15 -04:00 |
Derrick Hammer
|
facea33e0e
|
fix: need to pass api name
|
2024-03-20 17:28:25 -04:00 |
Derrick Hammer
|
be7a7977ac
|
refactor: need to pass api name to SetAuthCookie
|
2024-03-20 17:13:58 -04:00 |
Derrick Hammer
|
ee8fa2b98d
|
refactor: dont pass a domain
|
2024-03-20 17:13:31 -04:00 |
Derrick Hammer
|
ad8de8f5a1
|
refactor: switch to using MaxAge
|
2024-03-20 17:13:13 -04:00 |
Derrick Hammer
|
9587ef4941
|
refactor: require an api name to be provided and skip if not matched
|
2024-03-20 17:12:31 -04:00 |
Derrick Hammer
|
4a3028f61a
|
fix: cookies sent to us don't include the expiry time, so we need to parse from thr jwt echo it.
|
2024-03-20 14:56:18 -04:00 |
Derrick Hammer
|
da19a2e287
|
fix: use StatusUnauthorized
|
2024-03-20 14:44:28 -04:00 |
Derrick Hammer
|
52a1f18c60
|
fix: if claim is empty and ExpiredAllowed on, abort early and pass through
|
2024-03-20 14:41:54 -04:00 |
Derrick Hammer
|
7df6bb245b
|
fix: return in wrong spot
|
2024-03-20 14:34:48 -04:00 |
Derrick Hammer
|
cfce7348d4
|
fix: move error conditional outside if
|
2024-03-20 14:30:03 -04:00 |
Derrick Hammer
|
053a55c1f3
|
fix: invert check
|
2024-03-20 14:28:46 -04:00 |
Derrick Hammer
|
6c0ae8c0e6
|
refactor: if unauthorized is true, audList may be nil, and we may have to manually parse out the aud unverified to test
|
2024-03-20 14:27:02 -04:00 |
Derrick Hammer
|
9e170bae0d
|
fix: capture aud in JWTVerifyToken
|
2024-03-20 14:13:59 -04:00 |
Derrick Hammer
|
7616d9f7c9
|
refactor: set ExpiredAllowed on loginAuthMw2fa
|
2024-03-20 14:11:21 -04:00 |