Commit Graph

198 Commits

Author SHA1 Message Date
Arthur Lu
b81dbc9006 add backend info to readme,
fix docstring in backends.js
2024-06-26 06:39:43 +00:00
Arthur Lu
6fc1c388fa update paasldap backend 2024-06-20 03:18:52 +00:00
Arthur Lu
a660379233 add return values to backend docstring,
fix return values of all backends
2024-06-04 23:09:55 +00:00
Arthur Lu
29013821b3 add getUserObjFromUsername util function,
update all backends to use userObj,
add user backend manager wrapper which calls all linked backends dealing with user data,
list backend handlers for each realm
2024-06-03 18:09:28 +00:00
alu
4dcb369a66 Merge pull request 'Update DB Interface' (#2) from update-localdb into main
Reviewed-on: #2
2024-04-24 20:29:31 +00:00
Arthur Lu
f9ad56a283 fix instance create pool error mesage 2024-04-23 18:56:43 +00:00
Arthur Lu
0a8bd87ed4 check instance pool matches user allowed pools,
update user allowed nodes format,
add get user ct templates route
2024-04-15 21:52:20 +00:00
Arthur Lu
e032038100 update localdb backend interface,
update all references to localdb backend
2024-04-09 21:02:41 +00:00
Arthur Lu
1c41d55ceb add pool selection to instance create,
allow multiple pools per user
2024-04-08 21:19:57 +00:00
Arthur Lu
848eb5d1d1 implement full interface for paasldap backend 2024-04-05 22:33:56 +00:00
Arthur Lu
0b5cfff519 add user backend documentation 2024-04-04 18:53:36 +00:00
Arthur Lu
b3c9bb48c1 update backend interfaces 2024-04-03 20:03:31 +00:00
Arthur Lu
cea8d80ea2 fix function name in AUTH_BACKEND 2024-03-25 21:30:23 +00:00
Arthur Lu
06d160d9ce fix linting 2024-02-24 20:57:11 +00:00
Arthur Lu
67a17cfef0 fix missing return value in user password set 2024-02-23 22:27:28 +00:00
Arthur Lu
fae79e4ab0 add localdb template,
update paasldap backend interface
2024-01-30 20:33:41 +00:00
Arthur Lu
c347a3b8c0 add put and delete proxmox proxy routes 2024-01-22 19:47:13 +00:00
Arthur Lu
1ffe9fbe7c fix bugs in paasldap backend and auth password endpoint 2024-01-18 21:37:46 +00:00
Arthur Lu
bb047a3782 fix issues in backend implementions,
auth endpoint now fetches all relevant backend tokens
2024-01-17 20:21:55 +00:00
Arthur Lu
0013833bce update README 2024-01-16 22:36:21 +00:00
Arthur Lu
c9e4bb7484 fix linting 2024-01-12 01:49:24 +00:00
Arthur Lu
68f92493b7 fix various formatting,
add interface for generic backends,
add interfaces for DB and AUTH type backends,
implement basic user password change method
2024-01-09 00:47:33 +00:00
Arthur Lu
18590011cc major rework of backend loading and usage:
- split config from user data to config.json, add config.hson.template
- moved default user data localdb to root folder
- moved pve, localdb, ldap backend handlers to backends sub folder
- add dynamic loading of all backends
- add dynamic mapping for auth backends to support multiple auth sources
- update affected endpoints
2024-01-06 22:36:18 +00:00
Arthur Lu
c801ca99df fix linting 2023-12-15 08:14:39 +00:00
Arthur Lu
3d746791e3 change default api port 2023-12-14 00:26:49 +00:00
Arthur Lu
a55b9a58d7 move listenPort option to argv 2023-11-16 23:26:11 +00:00
Arthur Lu
e2cf883e64 update localdb template 2023-11-15 20:04:53 +00:00
Arthur Lu
c2ab19b6d6 add per instance resource quotas,
move getFullInstanceConfig to utils.js,
rework resource related utilities to use new quota format
2023-11-15 19:57:59 +00:00
Arthur Lu
02764c8f6a simplify auth/password logic 2023-11-14 23:50:24 +00:00
Arthur Lu
6e2b284118 fix bug in net create 2023-11-09 20:46:50 +00:00
Arthur Lu
5989d86ef8 add password change route 2023-11-09 18:57:52 +00:00
Arthur Lu
eb71f57427 fix linting 2023-10-25 19:46:37 +00:00
Arthur Lu
2f20992e7c fix issue with localdb,
rename db.js to localdb.js
add option to dynamically load db backend
2023-10-24 19:01:53 +00:00
Arthur Lu
bf8c8d1f00 change localdb interface 2023-10-23 22:09:31 +00:00
Arthur Lu
2d7df40b04 improve getUsedResources,
remove unused params for some pve functions
2023-10-21 00:13:29 +00:00
Arthur Lu
75c80fd271 update readme and db template 2023-10-13 18:01:53 +00:00
Arthur Lu
ad293d890a fix dashboard in readme 2023-10-05 21:19:15 +00:00
Arthur Lu
31463cb55f update readme with dashboard rename 2023-10-05 21:10:49 +00:00
Arthur Lu
e3e2ec272b update readme 2023-10-05 20:30:25 +00:00
Arthur Lu
43988e9815 simplify requestPVE args 2023-09-12 19:16:19 +00:00
Arthur Lu
a366918256 update resource data format,
add names to pci and cpu list resources
2023-09-08 20:48:33 +00:00
Arthur Lu
45006171ee update localdb template 2023-08-30 20:50:21 +00:00
Arthur Lu
abeb307de1 fix error with empty boot order,
fix error with multiple item boot order
2023-08-28 23:34:43 +00:00
Arthur Lu
33660b9f8c fix linting 2023-08-24 22:28:25 +00:00
Arthur Lu
0e836d50c4 set boot order in instance config handler 2023-08-22 06:06:10 +00:00
Arthur Lu
212d9721f8 dynamically import routes 2023-08-07 18:48:47 +00:00
Arthur Lu
0232b2208e add api package cli arg,
fix comments
2023-08-05 00:38:57 +00:00
Arthur Lu
221c854d50 fix db module imports 2023-08-03 19:51:09 +00:00
Arthur Lu
c5f7239813 fix argument parse bug 2023-08-03 19:34:37 +00:00
Arthur Lu
c9807668ea add cli arg for localdb path 2023-08-03 19:31:11 +00:00