Commit Graph

42 Commits

Author SHA1 Message Date
SeanOMik b46a7a844b
Use jwt secret by verifying it in the auth middleware 2023-07-14 21:25:38 -04:00
SeanOMik 7cc19bc1cd
Store jwt secret in database 2023-07-14 16:30:12 -04:00
SeanOMik 95914653e0
Rewrite auth endpoint to allow anonymous tokens, and better tokens 2023-07-14 15:42:39 -04:00
SeanOMik 618c04c29b
Redo auth once again to add a proper 'auth gate' middleware 2023-07-14 00:37:40 -04:00
SeanOMik 2ecebab330
Create sqlite database file if it doesn't exist, implement tls 2023-07-13 01:11:31 -04:00
SeanOMik 0150a1a11e
fix pulling from public repositories when not logged in 2023-06-22 23:34:26 -04:00
SeanOMik 603c0062ba
update todo 2023-06-18 02:33:12 -04:00
SeanOMik 12827ca37e
add log level to config, create /data dir in docker image 2023-06-17 00:55:12 -04:00
SeanOMik 8b59e2b32a
update builder stage in dockerfile, update readme 2023-06-17 00:15:02 -04:00
SeanOMik 0546b71c5e
create dockerfile, create more configuration options 2023-06-16 01:15:12 -04:00
SeanOMik b9e41f6d6e
respond with forbidden error if the user doesn't have access to an image 2023-06-16 00:28:50 -04:00
SeanOMik 875a1ed2b7
restrict users access to repositories, fix bugs with pushing and pulling, and database bugs 2023-06-16 00:20:51 -04:00
SeanOMik b09757d382
Update readme 2023-06-13 00:59:29 -04:00
SeanOMik bbf0854958 Update 'docs/todo.md' 2023-06-07 18:35:30 +00:00
SeanOMik 279daed555
remove warnings 2023-05-29 23:37:27 -04:00
SeanOMik c4b25e1415
remove ALL necessary unwraps 2023-05-29 23:36:30 -04:00
SeanOMik 7637faf047
update config example 2023-05-28 23:48:03 -04:00
SeanOMik be59462741
implement ldap support 2023-05-28 23:47:22 -04:00
SeanOMik d98a8e3790
create AuthDriver trait for checking user permissions 2023-05-28 02:06:49 -04:00
SeanOMik b5c770b349
create auth check helper function 2023-05-27 00:56:48 -04:00
SeanOMik e3a0554823
Implement user auth for pushing and pulling images 2023-05-06 19:24:03 -04:00
SeanOMik 5f74e46607
Implement user login using bcrypt hashed passwords 2023-04-29 01:55:56 -04:00
SeanOMik f70e04c52d
Create a middleware that requires auth 2023-04-28 14:55:05 -04:00
SeanOMik 4c768753ab
Generate token for auth, kind of hacky currently 2023-04-28 12:28:37 -04:00
SeanOMik 89757973a9
Create config using figment 2023-04-25 21:50:34 -04:00
SeanOMik a3eda9e883
update todo.md 2023-04-25 15:55:36 -04:00
SeanOMik 81ddb75b77
Allow slashes in repository names 2023-04-25 15:55:12 -04:00
SeanOMik dfb91a9cd8
Implement a simpler method of request byte streaming to StorageProviders 2023-04-25 14:57:01 -04:00
SeanOMik 8206171216
Switch to using axum so bytes can be streamed 2023-04-25 14:21:31 -04:00
SeanOMik 6107a49b44
Clean up the byte streaming code for pulling images 2023-04-21 00:02:07 -04:00
SeanOMik a232e59788
Implement streaming bytes for pulling images 2023-04-20 23:56:54 -04:00
SeanOMik 72c3aa2ecd
forgot to save 2023-04-20 22:22:34 -04:00
SeanOMik 4cb24d3cd3
Remove some comments 2023-04-20 22:18:53 -04:00
SeanOMik 6df253c030
Implement streaming bytes during image pushes 2023-04-20 18:05:20 -04:00
SeanOMik 2d9b4d33d8
Dont store blobs in database, create StorageProvider 2023-04-18 18:59:26 -04:00
SeanOMik 5431c2d9d3
Implement check upload status endpoint 2023-04-18 01:16:29 -04:00
SeanOMik 3d70301c54
Cleanup all other resources when deleting an image 2023-04-18 00:47:13 -04:00
SeanOMik 82774a4931
Add _catalog endpoints for listing repositories 2023-04-18 00:23:03 -04:00
SeanOMik 16da8aa190
Delete manifests, list tags 2023-04-17 23:18:56 -04:00
SeanOMik 3c0259d49c
Remove some compiler warnings, most were dead_code warnings 2023-04-17 21:50:03 -04:00
SeanOMik 38c83f4ac7
Implement image pulling and pushing 2023-04-17 21:47:24 -04:00
SeanOMik d7390da019
First commit 2023-04-17 19:37:18 -04:00