Commit Graph

232 Commits

Author SHA1 Message Date
Derrick Hammer f11b285d4e
fix: make an attempt to look for the token before adding to db 2023-08-04 12:54:45 -04:00
Derrick Hammer a7ac5a5b72
refactor: change generateToken to set audience based on a type to separate auth and challenge tokens 2023-08-04 12:54:13 -04:00
Derrick Hammer e2db880038
fix: temp workaround on race condition 2023-08-04 12:53:13 -04:00
Derrick Hammer e09e51bb52
fix: wrap Register api in an atomic transaction to avoid dead locks 2023-08-04 11:51:18 -04:00
Derrick Hammer dff3ca4589
fix: add missing request connection close 2023-08-04 11:46:25 -04:00
Derrick Hammer 8d3f490c01
Merge remote-tracking branch 'origin/develop' into develop 2023-08-03 08:49:20 -04:00
Derrick Hammer 78ee15cf4b
fix: close db on shutdown 2023-08-03 08:48:49 -04:00
Derrick Hammer 1cfc2223a6
fix: iris context.User needs to be embedded in our User struct for type checking to properly work 2023-06-29 07:05:46 -04:00
Derrick Hammer a23d165caa
fix(auth): eager load the account relation to return it 2023-06-29 07:04:24 -04:00
Derrick Hammer 934f8e6236
fix: ensure all models auto increment the id field 2023-06-29 06:19:50 -04:00
Derrick Hammer 504dcefb35
ci: allow both "deps" and "dep" to be a patch 2023-06-29 06:01:38 -04:00
Derrick Hammer 76d3043dda
deps: update 2023-06-29 06:01:05 -04:00
Derrick Hammer faaec649ea
fix(tus): switch to normal clone package, not generic 2023-06-29 06:00:45 -04:00
Derrick Hammer ceb729f11d
refactor(tus): add auth requirement on TUS and add support for tracking and storing the uploader throughout the upload lifecycle 2023-06-29 05:48:56 -04:00
Derrick Hammer 0bc862e35d
dep: used forked tusd 2023-06-29 05:46:51 -04:00
Derrick Hammer 53f29c99bc
dep: update package deps 2023-06-29 05:46:37 -04:00
Derrick Hammer e018a4b743
fix(upload): add account to upload record 2023-06-29 05:42:59 -04:00
Derrick Hammer 637b656d36
refactor(auth): move getCurrentUserId to auth package and make public 2023-06-29 05:41:26 -04:00
Derrick Hammer 5d15ca330a
fix(db): need to set charset, parseTime and loc in connection for mysql 2023-06-29 02:54:31 -04:00
Derrick Hammer 993b9e8208
ci: add .releaserc.json 2023-06-29 00:38:11 -04:00
Derrick Hammer 66f2545781
ci: add dummy index.html 2023-06-28 01:56:03 -04:00
Derrick Hammer 2062562f6b
ci: ensure app dir exists 2023-06-28 01:53:22 -04:00
Derrick Hammer b122626e97
ci: fix swag command path 2023-06-28 01:49:19 -04:00
Derrick Hammer 976394b29d
ci: setup swagger build 2023-06-28 01:38:18 -04:00
Derrick Hammer 914313a585
ci: setup and add semantic-release 2023-06-28 01:33:42 -04:00
Derrick Hammer 1f5a3d19e4
feat: add global cors 2023-06-28 01:31:55 -04:00
Derrick Hammer 1dd4fa22cd
feat: add auth status endpoint 2023-06-15 01:26:36 -04:00
Derrick Hammer 30ad92fb8d
refactor: rename to FileStatusResponse 2023-06-15 00:25:38 -04:00
Derrick Hammer ce1b5e31d5
fix: rewrite sql logic 2023-06-11 03:57:56 -04:00
Derrick Hammer bb26cfca5b
fix: rewrite streaming logic and centralize in a helper function 2023-06-11 03:19:07 -04:00
Derrick Hammer 4ff1334d8a
fix: use getWorkerObjectUrl 2023-06-11 03:17:32 -04:00
Derrick Hammer c197b1425b
fix: register request validation 2023-06-11 02:04:36 -04:00
Derrick Hammer c0df04d7d5
fix: properly handle missing size bytes 2023-06-11 01:38:19 -04:00
Derrick Hammer 385a51e504
refactor: fix not_found status code 2023-06-10 02:50:20 -04:00
Derrick Hammer b104af5e4c
refactor: change to use hash metadata key 2023-06-10 01:59:56 -04:00
Derrick Hammer b77bebe3b1
feat: add files/upload/limit endpoint 2023-06-10 01:58:45 -04:00
Derrick Hammer 86380c7b3a
fix: wrong algo 2023-06-10 01:15:17 -04:00
Derrick Hammer 9b82fa7828
fix: use challengeObj 2023-06-10 01:02:31 -04:00
Derrick Hammer bf576dfaee
fix: change jwtKey to ed25519.PrivateKey 2023-06-10 00:54:57 -04:00
Derrick Hammer 3b1e860256
feat: add proof download 2023-06-09 15:52:58 -04:00
Derrick Hammer 160a9f7ebb
refactor: use getWorkerProofUrl 2023-06-09 15:48:41 -04:00
Derrick Hammer 85a02952df
feat: generate and/or load an ed25519 private key for jwt token generation 2023-06-09 15:36:45 -04:00
Derrick Hammer da0efcdd0c
refactor: store config path options in ConfigFilePaths 2023-06-09 15:35:33 -04:00
Derrick Hammer 0d0a46e5e1
refactor: use errors.Is and gorm.ErrRecordNotFound 2023-06-09 07:57:06 -04:00
Derrick Hammer be03a6c686
feat: add PostPinBy controller endpoint for pinning a file 2023-06-09 07:39:43 -04:00
Derrick Hammer 29d6db2009
feat: add getCurrentUserId helper function 2023-06-09 07:38:59 -04:00
Derrick Hammer 40309311bd
refactor: Set the current user in the request for VerifyJwt middleware 2023-06-09 07:38:21 -04:00
Derrick Hammer a9d153a22f
refactor: modify VerifyLoginToken to return a pointer to the account model 2023-06-09 07:37:45 -04:00
Derrick Hammer a14dad43ed
feat: add new user service object that implements iris context User interface 2023-06-09 07:36:44 -04:00
Derrick Hammer 892f093d93
feat: pin file after basic upload 2023-06-09 07:06:33 -04:00