Commit Graph

208 Commits

Author SHA1 Message Date
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
Derrick Hammer 5579ab85a3
feat: pin file after tus upload 2023-06-09 07:04:52 -04:00
Derrick Hammer 8692a0225e
feat: add pin service method 2023-06-09 07:04:06 -04:00
Derrick Hammer 9e52cd671b
refactor: standardize errors to global error objects 2023-06-09 06:24:42 -04:00
Derrick Hammer d1d4f6b679
refactor: try to decode the token claim for pre-verification 2023-06-09 04:29:18 -04:00
Derrick Hammer 16f2ac3604
refactor: verify the token is a valid format, then check the db, then validate, and if it fails, delete from the db 2023-06-09 04:26:50 -04:00
Derrick Hammer f941ee46d4
fix: we can't use AddHandler inside BeginRequest 2023-06-09 04:16:58 -04:00
Derrick Hammer e98e2d0c89
refactor: add jwt auth middleware to files controller 2023-06-09 04:06:03 -04:00
Derrick Hammer 34be432af7
refactor: use controller base class 2023-06-09 04:05:19 -04:00
Derrick Hammer 73e1c5a363
refactor: move all primary logic to service packages and standardize error objects 2023-06-09 04:03:29 -04:00
Derrick Hammer d18be0acc8
refactor: move error helpers to controller.go 2023-06-07 13:17:49 -04:00
Derrick Hammer 98fd2a097e
refactor: move more response structs to response package 2023-06-07 13:17:11 -04:00
Derrick Hammer cfa7ceb2f4
fix: output error info 2023-06-07 13:12:37 -04:00
Derrick Hammer 2f7c31d53c
refactor: completely restructure validation. split request and respond structs to their own package 2023-06-07 13:04:38 -04:00
Derrick Hammer bfbf13a57d
refactor: use tryParseRequest 2023-06-07 08:50:29 -04:00
Derrick Hammer 9d843bffdb
refactor: use tryParseRequest 2023-06-07 08:49:07 -04:00
Derrick Hammer f3e43f522f
refactor: add validation for all auth request structs 2023-06-06 23:28:33 -04:00
Derrick Hammer dd8e5704c8
refactor: rename checkPubkey to CheckPubkeyValidator 2023-06-06 23:27:43 -04:00
Derrick Hammer 9bacd95c9d
refactor: move to ozzo-validation 2023-06-06 23:16:34 -04:00
Derrick Hammer 27e7ea7d7a
fix: PostPubkeyLogin should not preload any model 2023-06-06 22:28:58 -04:00
Derrick Hammer 09d53ffa76
fix: PostPubkeyLogin should be lowercasing the pubkey and signature 2023-06-06 22:28:40 -04:00
Derrick Hammer d680f0660f
fix: PostPubkeyChallenge should be lowercasing the pubkey for consistency 2023-06-06 22:28:17 -04:00
Derrick Hammer 36745bb55b
fix: PostPubkeyChallenge should be using ChallengeRequest 2023-06-06 22:27:34 -04:00
Derrick Hammer db3ba1f014
fix: PostPubkeyChallenge should not be checking email, but pubkey 2023-06-06 22:27:07 -04:00
Derrick Hammer c20dec0204
fix: abort if we don't have a password for the account, assume its pubkey only 2023-06-06 22:05:49 -04:00