Commit Graph

289 Commits (8abdefd403b49cce550163871fa3b4d102f0560f)

Author SHA1 Message Date
AdamSBlack 2f9d45fabc Revert "updated readme"
This reverts commit 751742acf6.
2021-10-30 13:12:48 +01:00
AdamSBlack 751742acf6 updated readme 2021-10-29 21:46:48 +01:00
AdamSBlack f4cb1ef142 Athena, logging, etc 2021-10-29 21:45:15 +01:00
AdamSBlack 32325111c6 Added new tables to database,
added logging to athena
2021-10-26 23:38:31 +01:00
AdamSBlack 9361043d83 Added proof of concept for Athena 2021-10-25 22:56:40 +01:00
AdamSBlack 4075e5730a Fixed admin API's middleware to not filter through
other routes
2021-10-13 19:06:46 +01:00
AdamSBlack 3596013e2f TODO: Fix admin api auth catching any undefined routes
Removed pointlessly stateful controllers, admin api fleshed out
2021-10-11 19:37:58 +01:00
AdamSBlack e33b10e7d0 disable useradminapi 2021-10-03 17:48:52 +01:00
AdamSBlack acf084743d updated database, sessions managed via signed JWT
token.

TODO: sign tokens based user unique token, instead of
global salt key
2021-10-03 17:44:43 +01:00
AdamSBlack 7590e9b644 userAdminApi now allows users to change their
password
2021-10-03 15:35:44 +01:00
AdamSBlack f642360a5d Device pair logic removed from route
and moved into devices controller using
ORM now, not 100% tested
2021-10-03 14:11:34 +01:00
AdamSBlack aaedd0bfd6 minor 2021-10-03 00:08:21 +01:00
AdamSBlack f5a0fc8c0d include new models 2021-10-02 23:11:51 +01:00
AdamSBlack cbea324a05 Implemented Sequelize ORM, moved over users.js
to new ORM
2021-10-02 23:08:56 +01:00
AdamSBlack 6521cda85a Created branch "cursed"
Modified pairing to support new registrations
2021-09-30 20:18:37 +01:00
Adam Black 5ca26f7b19
Merge branch 'florianbrede-ayet:main' into main 2021-09-30 19:22:47 +01:00
Florian Brede 3ddd73ea45 TODO: ignore the "not before" timestamps in JWT - some eons seem to have a slightly off RTC 2021-09-29 23:43:23 +02:00
Florian Brede 78f7ed77e0
Merge pull request #7 from AdamSBlack/no-change
removed requirement for imei to register device
2021-09-29 23:35:33 +02:00
AdamSBlack 9be7c45a96 removed requirement for imei to register device 2021-09-29 20:27:33 +01:00
AdamSBlack 2fd31d993e removed requirement for imei to register device 2021-09-29 20:24:50 +01:00
Adam Black bfc3f6806e
Merge branch 'florianbrede-ayet:main' into main 2021-09-29 19:33:28 +01:00
Florian Brede fcdc8fa509 FIX: incorrect null checks can lock up the worker 2021-09-13 02:04:41 +02:00
Florian Brede 5005a444d5
Merge pull request #5 from lover-of-memes/dockerfile
dockerfile & bunzip2 check fix
2021-09-13 02:04:11 +02:00
Scott Conway f86db032b8 `bunzip2 --version` exits with a non-zero status on latest build of
Alpine Linux
2021-09-08 19:48:41 -04:00
Scott Conway bab4be2437 added dockerfile 2021-09-08 19:48:24 -04:00
AdamSBlack c5aa180c9a old changes + base for admin actions 2021-08-14 23:11:32 +01:00
Adam Black 72ca4b12cd
Merge branch 'florianbrede-ayet:main' into main 2021-07-27 22:11:41 +01:00
Florian Brede 8f15bf56ba TODO: added drive preview with videojs 2021-06-10 01:17:37 +02:00
Florian Brede de33ebf6d7 FIX: overwrite existing rlog files (in case the previous parsing failed, this would fail again because bunzip2 exits non 0 without "-f") 2021-06-08 13:02:23 +02:00
Florian Brede ff96091cee FIX: rewritten dashboard calls to return more plausible responses and show the username 2021-06-08 13:02:23 +02:00
Florian Brede 2e9ed8aa4c
Update README.md 2021-06-05 16:07:53 +02:00
Florian Brede ebdaa2e738 FIX: another fix for the dashboard statistics (minutes) 2021-06-05 05:11:43 +02:00
Florian Brede 562d932827 FIX: fixes for dashboard statistics 2021-06-05 04:56:00 +02:00
Florian Brede b14f7bc083 TODO: implemented api calls for the dashboard statistics, registration feedback, account status 2021-06-05 04:36:50 +02:00
Florian Brede a3c6c1955f FIX: added sqlite concurrency protections to prepare threaded execution of worker.js 2021-06-04 05:03:50 +02:00
Florian Brede f6dfe782bf TODO: added welcomeMessage to overview, added some statistics 2021-06-04 05:02:03 +02:00
Adam Black 5280f339f4 Merge branch 'florianbrede-ayet:main' into main 2021-05-31 19:03:34 +01:00
Florian Brede 9bd1259f66 FIX: fixed the gps distance validation (now assumes > 250km/h is corrupt), some cleanup / reduced logging 2021-05-30 03:56:48 +02:00
Florian Brede dd2b7cae35 TODO: set maximum segments per batch to 15 (from initially 50) to reduce the per-batch duration for slower devices. 2021-05-30 03:20:34 +02:00
Florian Brede cd133d5e9f FIX: correctly check if metadata is defined 2021-05-30 03:19:12 +02:00
Florian Brede 7b6472dd20 DATABASE MIGRATION:
ALTER TABLE 'drives' ADD COLUMN 'metadata' TEXT;
-----
TO UPDATE EXISTING DRIVES:
UPDATE drive_segments SET upload_complete=0, is_processed=0 WHERE id IN (SELECT MIN(id) FROM "drive_segments" GROUP BY drive_identifier, dongle_id)
2021-05-30 03:08:02 +02:00
Florian Brede 61f2f8ecd5 TODO: added vehicle parameters & general device / openpilot / drive information 2021-05-30 03:06:27 +02:00
Florian Brede 094e9c2790 FIX:
- uploads and device registration for openpilot 0.7.x devices
- possible security exploit (directory not protected with token for boot/crash logs)
2021-05-30 03:04:50 +02:00
Florian Brede 08051fb86f FIX: correctly parse dates and ignore exceptions for boot & crash logs 2021-05-30 01:11:59 +02:00
Florian Brede 065f05e6ea FIX: worker missing crashlog path / unable to delete old logs. 2021-05-30 01:11:23 +02:00
Florian Brede e83f2b2481 TODO: updated cabana to persist dbcs for routes and added an option to pass custom dbcs through the retropilot configuration 2021-05-30 01:10:07 +02:00
Adam Black 2ec6e7650f Wrote test for /retropilot/0/useradmin
Converted a few more routes to return json

New config option: flag: { useUserAdminApi: BOOLEAN } this will load the userAdminApi routes into the express app.
2021-05-25 20:36:35 +01:00
Adam Black 6028036aa4 API to register users
Amended table: Accounts
* verified - int - default: 0
* email_verify_token - text
2021-05-23 19:36:16 +01:00
Adam Black 33b630e893 moving mail logic into controller 2021-05-23 15:40:55 +01:00
Adam Black 0ef1b2a940 Merge branch 'main' of https://github.com/florianbrede-ayet/retropilot-server into main 2021-05-23 14:33:22 +01:00