Commit Graph
100 Commits
Author SHA1 Message Date
alu 9f6b03db32 fix utils.js,
implement getAllUsers/getAllGroups in backends,
add paasldap realm config option
2024-07-15 19:14:03 +00:00
alu 3b81bd20ea fix delUserFromGroup in README 2024-07-10 22:38:39 +00:00
alu 79ec20ad74 fix delUser naming,
update config template,
implement getAllUsers/getAllGroups in USER_BACKEND_MANAGER
2024-07-10 22:38:14 +00:00
alu 8f7ea51787 add missing valid pve token check to checkAuth 2024-07-08 19:25:23 +00:00
alu 800033c6f8 add get all users/groups routes 2024-07-03 23:46:00 +00:00
alu 7f48f49445 rename auth to access 2024-07-02 19:38:21 +00:00
alu c8404c366f update readme with new permissions required for proxmox 8,
improve handling of proxmox responses
2024-07-01 19:03:36 +00:00
alu c63690c181 fix linting 2024-06-28 07:18:27 +00:00
alu 34f2669ab9 add valid user cookie check to checkAuth,
add admin flag in user data
2024-06-28 07:14:41 +00:00
alu afecfcafd0 fix readme tables 2024-06-26 06:46:31 +00:00
alu ab0188a8bc add backend info to readme,
fix docstring in backends.js
2024-06-26 06:39:43 +00:00
alu 85b8ae8560 update paasldap backend 2024-06-20 03:18:52 +00:00
alu 01f55aa0cb add return values to backend docstring,
fix return values of all backends
2024-06-04 23:09:55 +00:00
alu b12f38e608 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 bb7404a82d Merge pull request 'Update DB Interface' (#2) from update-localdb into main
Reviewed-on: #2
2024-04-24 20:29:31 +00:00
alu 9279d8c083 fix instance create pool error mesage 2024-04-23 18:56:43 +00:00
alu 9360f7abec 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
alu 3ddd1f62d7 update localdb backend interface,
update all references to localdb backend
2024-04-09 21:02:41 +00:00
alu 98479205d9 add pool selection to instance create,
allow multiple pools per user
2024-04-08 21:19:57 +00:00
alu 3281788089 implement full interface for paasldap backend 2024-04-05 22:33:56 +00:00
alu 9d31e00366 add user backend documentation 2024-04-04 18:53:36 +00:00
alu 69318a2dad update backend interfaces 2024-04-03 20:03:31 +00:00
alu 6c984a7886 fix function name in AUTH_BACKEND 2024-03-25 21:30:23 +00:00
alu 98da16d4df fix linting 2024-02-24 20:57:11 +00:00
alu d61e8377e0 fix missing return value in user password set 2024-02-23 22:27:28 +00:00
alu 06fd99aca5 add localdb template,
update paasldap backend interface
2024-01-30 20:33:41 +00:00
alu f000582213 add put and delete proxmox proxy routes 2024-01-22 19:47:13 +00:00
alu 2537288b17 fix bugs in paasldap backend and auth password endpoint 2024-01-18 21:37:46 +00:00
alu a31d5a3336 fix issues in backend implementions,
auth endpoint now fetches all relevant backend tokens
2024-01-17 20:21:55 +00:00
alu 1a8e804be1 update README 2024-01-16 22:36:21 +00:00
alu fae2eb1724 fix linting 2024-01-12 01:49:24 +00:00
alu b27172dd9e 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
alu a0109d3546 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
alu 7b0549e052 fix linting 2023-12-15 08:14:39 +00:00
alu 7cb2893fc8 change default api port 2023-12-14 00:26:49 +00:00
alu d9d1846a82 move listenPort option to argv 2023-11-16 23:26:11 +00:00
alu 4a7b8c4753 update localdb template 2023-11-15 20:04:53 +00:00
alu f40d1aee79 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
alu 23cb635b75 simplify auth/password logic 2023-11-14 23:50:24 +00:00
alu 1e4413b9b1 fix bug in net create 2023-11-09 20:46:50 +00:00
alu 0c7b0309c7 add password change route 2023-11-09 18:57:52 +00:00
alu 3668cb0445 fix linting 2023-10-25 19:46:37 +00:00
alu cb1e3a776e 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
alu 3146ae76a6 change localdb interface 2023-10-23 22:09:31 +00:00
alu 384e38b760 improve getUsedResources,
remove unused params for some pve functions
2023-10-21 00:13:29 +00:00
alu 5dabc73313 update readme and db template 2023-10-13 18:01:53 +00:00
alu 05ab27c48f fix dashboard in readme 2023-10-05 21:19:15 +00:00
alu 57219020df update readme with dashboard rename 2023-10-05 21:10:49 +00:00
alu 4a63aed017 update readme 2023-10-05 20:30:25 +00:00
alu 40f36270aa simplify requestPVE args 2023-09-12 19:16:19 +00:00
alu 8912ae5f3c update resource data format,
add names to pci and cpu list resources
2023-09-08 20:48:33 +00:00
alu 93cf6d1873 update localdb template 2023-08-30 20:50:21 +00:00
alu ec26e7f6a3 fix error with empty boot order,
fix error with multiple item boot order
2023-08-28 23:34:43 +00:00
alu 72d103edaf fix linting 2023-08-24 22:28:25 +00:00
alu 098818b205 set boot order in instance config handler 2023-08-22 06:06:10 +00:00
alu e8ed9fc3b8 dynamically import routes 2023-08-07 18:48:47 +00:00
alu 491e492206 add api package cli arg,
fix comments
2023-08-05 00:38:57 +00:00
alu 7b80445cf0 fix db module imports 2023-08-03 19:51:09 +00:00
alu 698f53314b fix argument parse bug 2023-08-03 19:34:37 +00:00
alu ea94d31b0c add cli arg for localdb path 2023-08-03 19:31:11 +00:00
alu ab3bf15efe route cluster routes to /api/cluster 2023-08-03 00:36:18 +00:00
alu 9f22d76b5f finish moving routes to files 2023-08-01 19:07:45 +00:00
alu 8acaba3911 fix linting errors,
group more routes,
use mergeParams in router init
2023-07-31 19:23:22 +00:00
alu aae3bb14c0 add default export to db and package module,
start grouping routes by type,
use dynamic imports and express routers
2023-07-27 20:10:46 +00:00
alu ae58a18c9a update localdb template 2023-07-25 19:26:14 +00:00
alu 2b27a7751c add cluster iso route 2023-07-25 00:03:13 +00:00
alu f791cda3f2 fix interrupt sync desync issues 2023-07-18 20:27:51 +00:00
alu a5f7be7eed fix bug with socket close handling of poolUserMap,
improve socket init,
improve interrupt sync timing progression issues
2023-07-17 19:41:20 +00:00
alu 31d414bebc fix issue with client sync init 2023-07-15 22:59:18 +00:00
alu a48f641ab5 implement interrupt sync 2023-07-14 21:48:06 +00:00
alu f37f7cd142 fix formatting 2023-07-12 06:38:06 +00:00
alu 178ff6168f add better client sync schemes initialization,
add client sync scheme selects to localdb,
start on interrupt sync scheme implementation,
change sync endpoints to start with /sync/
2023-07-11 22:06:41 +00:00
alu aa8148fc16 add /cluster/statushash endpoint 2023-07-11 18:48:45 +00:00
alu e37969ce3f fix endpoint comment format 2023-07-10 22:18:08 +00:00
alu 445e702d8d comment a bunch of code 2023-07-10 06:50:29 +00:00
alu cd611e2590 fix some endpoint comments,
add user node permission check to /node/pci
2023-07-07 00:06:36 +00:00
alu f389087a2b fix linting issues 2023-07-06 05:13:22 +00:00
alu 4fbb64745b consolidate user config paths,
move global config values to global key in localdb
2023-07-05 23:14:45 +00:00
alu 8e476ea352 add basic regex patterns for endpoint path params 2023-07-04 21:11:46 +00:00
alu 6af9640f47 move most endpoint parameters to route 2023-07-04 04:41:25 +00:00
alu 628067a061 set brace style to Stroustrup 2023-06-29 22:09:57 +00:00
alu 79d2448a3d lint all files 2023-06-29 21:53:20 +00:00
alu b822f7f856 add eslinting, fix linting issues 2023-06-29 21:35:19 +00:00
alu ab8d9e16cc mionor fixes to localdb template 2023-06-29 20:27:05 +00:00
alu 81d2841b79 improve db format for templates,
add additional per user customization for instance network interfaces,
update tempalte localdb
2023-06-29 02:07:57 +00:00
alu 7719911d5a check storage on disk create only when disk is not ide 2023-06-23 03:37:15 +00:00
alu 5014e1d10c check resource approval only if pci device differs 2023-06-23 03:20:56 +00:00
alu 8307e07dae implement modify pci endpoint 2023-06-23 03:01:28 +00:00
alu 49e00430db implement pcie device add and delete endpoints,
change getDeviceInfo to return primary device with sun devices listed,
fix bug in approveResources when checking list type resources
2023-06-22 00:23:34 +00:00
alu 53c101ac4a add pci device resource to config,
implement endpoints for getting available devices,
update used resource calculation to include pci devices
2023-06-21 05:06:38 +00:00
alu 6c434263e3 update lcoaldb template
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-14 22:34:10 +00:00
alu cb937da256 improve user config routes,
add glocal resource config route,
remove debug console logs

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-14 22:20:30 +00:00
alu 17837fbc29 implement proc type in /instance/resources 2023-06-14 04:49:43 +00:00
alu 825b11cd56 fix bugs in network methods 2023-06-09 04:24:22 +00:00
alu 485ba0120e move source files to src folder,
move localdb to config folder,
consolidate vars.js with localdb,
move service scripts to service folder
2023-06-09 03:58:38 +00:00
alu 24df8df731 fix formatting 2023-06-09 02:05:26 +00:00
alu d2dbbea292 add checking for disk bus prefix in disk create and disk attach 2023-06-09 00:24:37 +00:00
alu 825f7ccea1 improve method comments relating to pve builtin return objects,
add paths to create and delete network interfaces,
check for interface existence in modify interface,
add vlan specification to user config and use in network interface creation,
fix disk path security by checking disk existence or nonexistence,
TODO: check create and mount disk against allowed bus types

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-08 23:33:32 +00:00
alu 3f98355d32 fix handleResponse responding with proxmox task status
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-03 00:10:33 +00:00
alu 4f654f5dcf change /api/node/pci to /api/instance/pci
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-02 23:14:13 +00:00