Commit Graph

29 Commits

Author SHA1 Message Date
Marc Bulling
f36d39e728 Added extended logging (#240), fixed bug that prevented setting Manage_Users API permission on new API key, added Manage_Logs API permission
* Added Manage_Logs API permission, added API endpoint to delete logs, added more logging, added filtering and deletion of logs in UI, fixed bug that prevented setting Manage_Users API permission on new API key
2025-03-21 15:06:17 +01:00
Marc Bulling
d88f649209 Add support for multiple different users, rewrote API, breaking API changes, UI changes
* Require 1.9.6 for upgrade, add function to get userID from request

* Automatically add user when successfully authenticated with headers / oauth, disallow modifing own user permissions

* Dont show user/pw page when using header authentication

* Only display redacted versions of API keys #228, fixed deployment password

* Added animation for deleting API key

* Only create salt once

* Disable elements on upload UI if insufficient permissions

* BREAKING: User field must be email for OAUTH2, added warning in setup when changing database

* BREAKING: Added option to restrict to only registered users

* Fixed crash due to concurrent map iteration

* Replace /uploadComplete with API call, BREAKING API is now in headers

* BREAKING: require true|false instead of only checking for true

* BREAKING API: Renamed apiKeyToModify parameter to targetKey
2025-02-04 09:22:55 +01:00
Marc Ole Bulling
53d27c2889 Make /uploadComplete non blocking (#224), added /files/list/{id} API call, changed UploadStatus from database to in-memory, internal WebUI calls return 401 if unauthorised, make specific-test verbose 2024-12-14 13:24:23 +01:00
Marc Ole Bulling
6f582b25d8 Store upload defaults locally (#214), breaking API changes 2024-12-06 14:36:08 +01:00
Marc Ole Bulling
ddc72b0a98 Use API for most of UI interactions with an internal API key (#211), breaking API changes
* Changed color of API procressing status

* Added internal system key, use system key for API page perm changes, BREAKING: removed session auth

* API: Added /auth/delete, added option to include basic parameters in /auth/create, migrated API overview page completely to use API calls

* Added toast in API menu for clipboard, removed reference to session authentication in documentation

* Changed delete button in upload menu to API call, fixed modify API call in menu #210

* Set Api key in API menu for changing permissions, renamed title for Deleting Uploads permission, refactoring

* Added tests, refactoring
2024-12-05 13:55:11 +01:00
Marc Ole Bulling
b56970bf88 Add Redis support / make database location and provider selectable in setup (#180) 2024-07-07 22:13:51 +02:00
Marc Ole Bulling
98e20beaff Replaced SSE library with own code 2024-06-09 15:27:23 +02:00
Marc Ole Bulling
6beabdebc3 Added option to display filenames in URL (#171), breaking API changes, refactoring, update OpenAPI 2024-06-08 21:52:14 +02:00
Marc Ole Bulling
06e934daa0 Added tests, removed file data for e2e config from database 2023-11-22 13:19:18 +01:00
Marc Ole Bulling
0ccca6cf19 Refactoring, table now searchable when using E2E encryption #99 2023-04-14 15:35:26 +02:00
Marc Ole Bulling
a352cf5656 Fixed tests 2023-04-03 02:19:13 +02:00
Marc Ole Bulling
9c9ea6dbb7 Add end-to-end encryption (#71)
* Added WASM module for e2e

* Added cmd util to read database

* Changed to go 1.19

* Fixed crash with random string generator

* Fixed typos and tests

* Host service worker on github
2022-08-11 13:37:55 +02:00
Marc Ole Bulling
3ea8e22042 Added comments, fixed tests 2022-07-27 14:08:17 +02:00
Marc Ole Bulling
44260f012b Use chunked uploads instead of single upload (#68)
* Change to chunked uploads

* Renamed SHA256 attribute to SHA1

* Breaking: removed /upload endpoint

* Changed timeout to 15 minutes for reading

* Change session key only after 12 hours

* Added API calls for chunk upload, refactoring, added tests

* Add content-type based on file extension for images if empty
2022-07-25 13:21:38 +02:00
Marc Ole Bulling
a72236ab70 Refactor: Rename datastorage to database 2022-03-16 18:31:55 +01:00
Marc Ole Bulling
7f9037ff1f Updated to Go 1.18, removed debug log, added Go Version to --version output 2022-03-16 10:56:46 +01:00
Marc Ole Bulling
81f6125815 Added tests 2022-02-28 22:10:09 +01:00
Marc Ole Bulling
43a3a67906 Fixed API to work with unlimited downloads and unlimited time #46 2022-02-26 20:52:53 +01:00
Marc Ole Bulling
f42faf8f53 Added option to disable upload and time limit during upload #13 2022-02-15 20:20:53 +01:00
Marc Ole Bulling
49f11e94da Reformatting, added documentation, fixed Setup_test.go 2022-01-25 16:08:28 +01:00
Marc Ole Bulling
7ae36d1a52 Changed modulename to github.com/forceu/gokapi 2022-01-25 13:44:21 +01:00
Marc Ole Bulling
3766c9257f Replace writable parts of config with database (#40) 2022-01-20 23:52:34 +01:00
Marc Ole Bulling
4eb609ece9 Fixed setup if no config directory exists
Remove temp files after upload
Set temp directory for docker to data directory by default #37
Increase default memory to 40
Added TMPDIR env
Update doc
2022-01-01 21:01:39 +01:00
Marc Ole Bulling
1b300a6691 Automated formatting for go1.17 2021-12-12 20:06:33 +01:00
Marc Ole Bulling
cbbbef41c5 Fixed Gokapi not parsing parameters when uploading through API #31 2021-12-10 18:56:54 +01:00
Marc Ole Bulling
a7888896f0 Added test tag requirement for unit tests, added minor tests 2021-06-24 13:34:53 +02:00
Marc Ole Bulling
884c2d94b5 Added AWS S3 support #14 2021-05-10 14:37:29 +02:00
Marc Ole Bulling
c8a019e22a Fixed lint issues, set Go version to 1.16.4 2021-05-07 17:15:12 +02:00
Marc Ole Bulling
c9ad7064fa Refactoring, early implementation of API 2021-05-06 12:35:07 +02:00