Commit Graph

36 Commits

Author SHA1 Message Date
Savanni D'Gerinel 05c9e26c0f Remove the Iron middleware files 2023-10-03 17:57:11 -04:00
Savanni D'Gerinel 2aa21d304b Remove dead comments 2023-10-03 17:56:38 -04:00
Savanni D'Gerinel 50ef8a77be Remove a legacy file 2023-10-03 17:56:17 -04:00
Savanni D'Gerinel 0187969571 Remove an excess comment 2023-10-03 17:55:05 -04:00
Savanni D'Gerinel cab0fc92df Remove old placeholder directories 2023-10-03 17:54:37 -04:00
Savanni D'Gerinel 5b7faf556f Handle file uploads with a validated session 2023-10-03 17:47:54 -04:00
Savanni D'Gerinel f2bbb4e720 Validate the session token with file uploads
File uploads now check the session token before continuing.

Resolves: https://www.pivotaltracker.com/story/show/186174680
2023-10-03 17:30:43 -04:00
Savanni D'Gerinel 09df915296 Validate the session token
A previous commit added authentication token checks. Auth tokens are replaced with session tokens, which can (and should) expire. This commit validates sessions, which now allows access to gated operations.
2023-10-03 17:04:35 -04:00
Savanni D'Gerinel 529f22f49e Add a CLI application for user management 2023-10-03 16:32:00 -04:00
Savanni D'Gerinel 1b161435df Split out a support library 2023-10-03 16:18:19 -04:00
Savanni D'Gerinel f3940111c4 Add session checks 2023-10-03 13:56:55 -04:00
Savanni D'Gerinel 0209f72a9b Add the ability to create and list users 2023-10-03 13:31:58 -04:00
Savanni D'Gerinel 2b1d010540 Create the initial database migration 2023-10-03 13:31:43 -04:00
Savanni D'Gerinel 00f76d4f4b Finish the auth handler and create app auth stubs 2023-10-03 11:28:09 -04:00
Savanni D'Gerinel 791adbb085 Set up authentication routes 2023-10-03 11:10:37 -04:00
Savanni D'Gerinel 2cabcc46aa Complete upload 2023-09-26 22:43:33 -04:00
Savanni D'Gerinel 3294262d8d Set up temperory working directories 2023-09-25 00:58:35 -04:00
Savanni D'Gerinel afa8134644 Correctly set up file ids from list_files 2023-09-25 00:17:34 -04:00
Savanni D'Gerinel f7012ee11a Refactor PathResolver so it cannot fail 2023-09-25 00:05:45 -04:00
Savanni D'Gerinel 759a4b6a1a Remove old test files 2023-09-24 23:52:44 -04:00
Savanni D'Gerinel 4fa3a89e08 Lots more refactoring :( 2023-09-24 23:52:29 -04:00
Savanni D'Gerinel 6c1fa7cc2f Clean up the filehandle logic 2023-09-24 12:08:09 -04:00
Savanni D'Gerinel b0641bf5e9 Add cool_asserts 2023-09-23 20:20:57 -04:00
Savanni D'Gerinel 98a07ce03e Provide a unified interface for the File and Thumbnail 2023-09-23 20:20:35 -04:00
Savanni D'Gerinel 809861a38e Load file by ID 2023-09-23 19:15:56 -04:00
Savanni D'Gerinel bda0caff95 Get thumbnail creation working again 2023-09-23 15:17:49 -04:00
Savanni D'Gerinel 90f9b80dd9 Add some tests to verify that a file can be added to the system
Still gutting a lot of the old code, but this MR focuses more on ensuring that a file can be added and that the metadata gets saved.
2023-09-22 23:43:45 -04:00
Savanni D'Gerinel 163e1e1de1 Add some testing for the PathResolver 2023-09-22 21:56:43 -04:00
Savanni D'Gerinel d658747202 Start ripping out lots of infrastructure
Much of the infrastructure is old and seems to be based on some assumptions about how Iron handled multipart posts. I don't understand how much of this works, so I'm slowly ripping parts out and rebuilding how the separation of concerns works.
2023-09-22 20:03:58 -04:00
Savanni D'Gerinel 8c099d0586 Set up the delete route
Sets up the delete route, including post-delete redirect back to the root.
Also adds logging.

Delete does not actually delete things yet.
2023-09-22 00:38:26 -04:00
Savanni D'Gerinel f440e6f7ad Refactor file and thumbnail serving to common code 2023-09-21 22:15:58 -04:00
Savanni D'Gerinel 1bb6bd78e6 Attempt to add etag caching 2023-09-21 00:00:09 -04:00
Savanni D'Gerinel f4b3e811fc Render thumbnails 2023-09-20 23:31:52 -04:00
Savanni D'Gerinel a02e335492 Swap from iron to warp and start rebuilding the app 2023-09-20 23:06:34 -04:00
Savanni D'Gerinel 75bfae02c4 Add orizentic and file-service to the build 2023-09-19 19:01:09 -04:00
Savanni D'Gerinel 81aa7410de Import a questionably refactored version of file-service 2023-09-19 18:55:53 -04:00