Commit Graph

230 Commits

Author SHA1 Message Date
Tsu-ba-me
5c7ddbfb5e refactor(striker-ui-api): group API-related types by endpoint 2023-06-20 00:48:21 -04:00
Tsu-ba-me
46891f322b refactor(striker-ui-api): rename session->expressSession, sessionHandler->session 2023-06-20 00:48:21 -04:00
Tsu-ba-me
74175c538a refactor(striker-ui-api): remove unused import in passport 2023-06-20 00:48:21 -04:00
Tsu-ba-me
cbf6ac0ff9 refactor(striker-ui-api): rename authenticationHandler->guardApi 2023-06-20 00:48:21 -04:00
Tsu-ba-me
9170f78650 fix(striker-ui-api): make static files available through root 2023-06-20 00:48:21 -04:00
Tsu-ba-me
d8a2c77cf0 fix(striker-ui-api): add default authentication handler for private /api/* 2023-06-20 00:48:21 -04:00
Tsu-ba-me
193727b93f fix(striker-ui-api): add assert authentication 2023-06-20 00:48:21 -04:00
Tsu-ba-me
4a1cc577b5 fix(striker-ui-api): correct extend handler list in register routers 2023-06-20 00:48:21 -04:00
Tsu-ba-me
a4524b6d27 fix(striker-ui-api): add /auth/logout 2023-06-20 00:48:21 -04:00
Tsu-ba-me
ffe3c0853f fix(striker-ui-api): make all writes in session store async to reduce response time 2023-06-20 00:48:21 -04:00
Tsu-ba-me
9b750c57f9 fix(striker-ui-api): add async database write function 2023-06-20 00:48:21 -04:00
Tsu-ba-me
a1c7be94d6 fix(striker-ui-api): add isObject() 2023-06-20 00:48:21 -04:00
Tsu-ba-me
17583ad4b9 fix(striker-ui-api): add formatSql() 2023-06-20 00:48:21 -04:00
Tsu-ba-me
410a5de48d fix(striker-ui-api): generate db timestamp from date 2023-06-20 00:48:21 -04:00
Tsu-ba-me
b0e7859d2d fix(striker-ui-api): simplify local host name/uuid getter 2023-06-20 00:48:21 -04:00
Tsu-ba-me
448a956313 refactor(striker-ui-api): merge Express.User and SessionData declarations 2023-06-20 00:48:21 -04:00
Tsu-ba-me
0fa614ca07 fix(striker-ui-api): output user name when login succeed 2023-06-20 00:48:21 -04:00
Tsu-ba-me
1c8050caa9 feat(striker-ui-api): apply session handler and add /auth/login 2023-06-20 00:48:21 -04:00
Tsu-ba-me
38181ac301 feat(striker-ui-api): add session handler 2023-06-20 00:48:21 -04:00
Tsu-ba-me
eb2c66de9f fix(striker-ui-api): add de/serialize user functions to passport 2023-06-20 00:48:21 -04:00
Tsu-ba-me
de2e8e45e1 fix(striker-ui-api): add function to get session secret 2023-06-20 00:48:21 -04:00
Tsu-ba-me
180aa54800 refactor(striker-ui-api): simplify DB refresh timestamp function name 2023-06-20 00:48:21 -04:00
Tsu-ba-me
7c657dfbd5 fix(striker-ui-api): add uuidgen to shell 2023-06-20 00:48:21 -04:00
Tsu-ba-me
f911a335ac fix(striker-ui-api): add openssl to shell 2023-06-20 00:48:21 -04:00
Tsu-ba-me
2746e500de chore(striker-ui-api): install express-session package 2023-06-20 00:48:21 -04:00
Tsu-ba-me
617998e22b fix(striker-ui-api): add passport login strategy 2023-06-20 00:48:21 -04:00
Tsu-ba-me
c40b7ff7d4 fix(striker-ui-api): allow customize handlers per route batch in register routers function 2023-06-20 00:48:21 -04:00
Tsu-ba-me
67b292dd95 fix(striker-ui-api): change process ownership after port binding 2023-06-20 00:48:21 -04:00
Tsu-ba-me
aacbf3003a chore(striker-ui-api): install passport and local strategy 2023-06-20 00:48:21 -04:00
Tsu-ba-me
f15391010c fix(striker-ui-api): organize routes into map 2023-06-20 00:48:21 -04:00
Tsu-ba-me
aadc84ea70 feat(striker-ui-api): add initial login request handler 2023-06-20 00:48:21 -04:00
Tsu-ba-me
84f708f5d1 fix(striker-ui-api): correct ntp and network gateway asserts in build manifest 2023-06-19 15:15:33 -04:00
Tsu-ba-me
d8c6c2bec9 fix(striker-ui-api): set host list from anvil data hash in /run-manifest 2023-06-19 15:15:33 -04:00
Tsu-ba-me
88077810bc fix(striker-ui-api): remove computed props from host entry of manifest execution 2023-06-19 15:15:33 -04:00
Tsu-ba-me
2ca1277b3f fix(striker-ui-api): only include node(s) in manifest detail 2023-06-19 15:15:32 -04:00
Tsu-ba-me
f7dea00ae6 fix(striker-ui-api): include host name in manifest detail 2023-06-19 15:15:32 -04:00
Tsu-ba-me
a50321eb9f fix(striker-ui-api): add command to run manifest 2023-06-19 15:15:32 -04:00
Tsu-ba-me
b7b4e13028 fix(striker-ui-api): add POST (create) and PUT (update) for /manifest 2023-06-19 15:15:32 -04:00
Tsu-ba-me
5de6046715 fix(striker-ui-api): add install manifest builder 2023-06-19 15:15:32 -04:00
Tsu-ba-me
2e599971cc fix(striker-ui-api): add DELETE one or more manifest 2023-06-19 15:15:32 -04:00
Tsu-ba-me
d368f8dd7b fix(striker-ui-api): ignore deleted manifest(s) when listing 2023-06-19 15:15:32 -04:00
Tsu-ba-me
a4359b1fa4 docs(striker-ui-api): explain sorting networks in GET manifest detail 2023-06-19 15:15:32 -04:00
Tsu-ba-me
340a04de47 fix(striker-ui-api): change sequence number type in manifest detail 2023-06-19 15:15:32 -04:00
Tsu-ba-me
4104b87b2d fix(striker-ui-api): add next sequence number to manifest template 2023-06-19 15:15:32 -04:00
Tsu-ba-me
a066fb7ede fix(striker-ui-api): allow get manifest detail 2023-06-19 15:15:32 -04:00
Tsu-ba-me
7575bf8aed fix(striker-ui-api): add function to disassemble entity id 2023-06-19 15:15:32 -04:00
Tsu-ba-me
9e9b84604f fix(striker-ui-api): add /manifest/template 2023-06-19 15:15:32 -04:00
Tsu-ba-me
db248efd96 fix(striker-ui-api): consolidate disassemble host name functions 2023-06-19 15:15:32 -04:00
Tsu-ba-me
7b0a7e711d fix(striker-ui-api): add get host name to access module 2023-06-19 15:15:32 -04:00
Tsu-ba-me
6cdca8ee5f feat(striker-ui-api): add /manifest 2023-06-19 15:15:31 -04:00
Tsu-ba-me
58549eb3ed fix(striker-ui-api): extract link from UPS type description 2023-04-04 00:23:00 -04:00
Tsu-ba-me
ddb1cd61f1 fix(striker-ui-api): add GET UPS overviews 2023-04-04 00:23:00 -04:00
Tsu-ba-me
288597a95f fix(striker-ui-api): limit UPS types to APC 2023-04-04 00:23:00 -04:00
Tsu-ba-me
f3a2a9355e feat(striker-ui-api): add /ups 2023-04-04 00:23:00 -04:00
Tsu-ba-me
508c7aa1f5 fix(striker-ui-api): make getAnvilData generic to identify return value 2023-04-04 00:23:00 -04:00
Tsu-ba-me
92a38374cb fix(striker-ui-api): add /fence 2023-04-03 13:13:59 -04:00
dependabot[bot]
b0ada6fba5
build(deps-dev): bump webpack from 5.70.0 to 5.76.0 in /striker-ui-api
Bumps [webpack](https://github.com/webpack/webpack) from 5.70.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.70.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 22:20:16 +00:00
Tsu-ba-me
271b33eaf7 fix(striker-ui-api): filter /host with host type(s) 2023-02-14 22:42:50 -05:00
Tsu-ba-me
58c9e05a9b fix(striker-ui-api): add hostType to /host/:hostUUID 2023-02-14 22:42:50 -05:00
Tsu-ba-me
32c32350bd fix(striker-ui-api): get NICs on specified host 2023-02-14 22:42:50 -05:00
Tsu-ba-me
18ad881ff8 build(striker-ui-api): rebuild UI API 2023-02-02 23:24:51 -05:00
Tsu-ba-me
950a98558f fix(striker-ui-api): improve receive server screenshot from named pipe 2023-02-02 19:25:40 -05:00
dependabot[bot]
a24618f15e
build(deps): bump json5 from 1.0.1 to 1.0.2 in /striker-ui-api
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-08 02:40:33 +00:00
Digimer
590879a47b
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui-api/qs-and-express-6.11.0 2022-12-13 19:32:01 -05:00
dependabot[bot]
d4680dbbd8
build(deps): bump qs and express in /striker-ui-api
Bumps [qs](https://github.com/ljharb/qs) to 6.11.0 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `qs` from 6.7.0 to 6.11.0
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.7.0...v6.11.0)

Updates `express` from 4.17.1 to 4.18.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 06:21:59 +00:00
dependabot[bot]
93d22abde5
build(deps): bump loader-utils from 1.4.0 to 1.4.2 in /striker-ui-api
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 06:21:56 +00:00
Tsu-ba-me
97b94eae50 build: rebuild both front-end and back-end 2022-11-28 14:37:22 -05:00
Tsu-ba-me
9d52213ef9 fix(striker-ui-api): add short name and rename to installTarget in GET /host/:hostUUID 2022-11-28 14:37:21 -05:00
Tsu-ba-me
81974ef626 fix(striker-ui-api): add short host name to GET /host 2022-11-28 14:37:21 -05:00
Tsu-ba-me
6d114b6d99 fix(striker-ui-api): add enterpriseUUID to prepareHost 2022-11-28 14:37:21 -05:00
Tsu-ba-me
099b2c9470 feat(striker-ui-api): add POST, DELETE /host/connection 2022-11-28 14:37:21 -05:00
Tsu-ba-me
e20a3a4af1 fix(striker-ui-api): add optional local host UUID in toHostUUID() 2022-11-28 14:37:21 -05:00
Tsu-ba-me
e394b0736e fix(striker-ui-api): add getPeerData() to accessModule 2022-11-28 14:37:21 -05:00
Tsu-ba-me
0a3d36c340 fix(striker-ui-api): add stdoutVar() 2022-11-28 14:37:21 -05:00
Tsu-ba-me
5e9c38b008 fix(striker-ui-api): add PUT /host/prepare and revise PUT /host/:hostUUID 2022-11-28 14:37:20 -05:00
Tsu-ba-me
54b78e9f25 fix(striker-ui-api): make return type in sanitize required 2022-11-28 14:37:20 -05:00
Tsu-ba-me
fcf999b11b fix(striker-ui-api): add prepareHost() 2022-11-28 14:37:20 -05:00
Tsu-ba-me
7033b64bb3 fix(striker-ui-api): add bad SSH keys to /command/inquire-host 2022-11-28 14:37:20 -05:00
Tsu-ba-me
5424fc3858 feat(striker-ui-api): add /command/inquire-peer 2022-11-28 14:37:20 -05:00
Tsu-ba-me
e67e732fd8 fix(striker-ui-api): split /ssh-key and /ssh-key/conflict 2022-11-28 14:37:20 -05:00
Tsu-ba-me
14a5b178dd fix(striker-ui-api): add PUT /update-system 2022-11-28 14:37:20 -05:00
Tsu-ba-me
00aa2c02df fix(striker-ui-api): wrap missed job calls in try-catch 2022-11-28 14:37:20 -05:00
Tsu-ba-me
3a01052e03 feat(striker-ui-api): add PUT /host/:hostUUID 2022-11-28 14:37:20 -05:00
Tsu-ba-me
1b6f1c2a2e refactor(striker-ui-api): replace 'local' with constant 2022-11-28 14:37:20 -05:00
Tsu-ba-me
f9bd775ed6 fix(striker-ui-api): add install-target state to GET /host/:hostUUID 2022-11-28 14:37:20 -05:00
Tsu-ba-me
0aec411e1a feat(striker-ui-api): add GET /ssh-key 2022-11-28 14:37:20 -05:00
Tsu-ba-me
c023c08310 fix(striker-ui-api): allow direct destructure from match() result 2022-11-28 14:37:20 -05:00
Tsu-ba-me
e3d4c243b9 feat(striker-ui-api): add /ssh-key WIP 2022-11-28 14:37:20 -05:00
Tsu-ba-me
6afa296858 refactor(striker-ui-api): relocate getLocalHostUUID try-catch 2022-11-28 14:37:20 -05:00
Tsu-ba-me
be1332b4f3 fix(striker-ui-api): prioritize /host/connection over /host/:hostUUID 2022-11-28 14:37:20 -05:00
Tsu-ba-me
df77899be1 fix(striker-ui-api): add /user 2022-11-28 14:37:20 -05:00
Tsu-ba-me
884742cb0a fix(striker-ui-api): remove excess from GET /host detail 2022-11-28 14:37:20 -05:00
Tsu-ba-me
59ddc232e7 feat(striker-ui-api): add cap function 2022-11-28 14:37:20 -05:00
Tsu-ba-me
e31d4564ee fix(striker-ui-api): add /host/:hostUUID WIP 2022-11-28 14:37:20 -05:00
Tsu-ba-me
72e070bc38 fix(striker-ui-api): remove empty functions in buildCondition functions 2022-11-28 14:37:20 -05:00
Tsu-ba-me
28e12251d6 fix(striker-ui-api): simplify modify query result 2022-11-28 14:37:20 -05:00
Tsu-ba-me
1fec480af7 fix(striker-ui-api): rename buildCondition functions 2022-11-28 14:37:20 -05:00
Tsu-ba-me
e38864e256 fix(striker-ui-api): allow replace modifier in sanitizeQS 2022-11-28 14:37:20 -05:00
Tsu-ba-me
bbb0fa503e fix(striker-ui-api): replace empty function with call in join 2022-11-28 14:37:20 -05:00
Tsu-ba-me
ca7288cbdd fix(striker-ui-api): simplify build ID condition 2022-11-28 14:37:20 -05:00