Commit graph

2944 commits

Author SHA1 Message Date
izzy
5c6e04cc8f
refactor: lint, open-api, remove old dto 2025-11-06 17:54:29 +00:00
izzy
a597b0edb1
refactor: always validate login (i.e. check cookie) 2025-11-06 17:50:48 +00:00
izzy
c8f3eef45d
refactor: use service instead of repository
chore: read token from cookie if possible
chore: rename client event to AppRestartV1
2025-11-06 15:35:17 +00:00
izzy
f2b941b066
refactor: use request#auth key 2025-11-06 15:32:18 +00:00
izzy
0638700720
refactor: close database connection after startup check 2025-11-06 15:31:42 +00:00
izzy
657dae061d
chore: remove @types/jsonwebtoken 2025-11-06 13:06:09 +00:00
izzy
8df1b5a263
test: add base service dependency to maintenance 2025-11-06 12:30:31 +00:00
izzy
14a51c7fbe
test: add mock for maintenance repository 2025-11-06 12:21:29 +00:00
izzy
2b659986c2
chore: lint fixes for server 2025-11-06 11:27:14 +00:00
izzy
d0590f5618
refactor: introduce AppRestartEvent w/o secret passing 2025-11-06 11:17:50 +00:00
izzy
ab9951e59e
chore: swap jsonwebtoken for jose 2025-11-05 18:12:02 +00:00
izzy
8ca86d1ad8
refactor: provide closeFn in both maintenance repos. 2025-11-05 17:20:50 +00:00
izzy
57997c001e
refactor: always validate the maintenance auth on the server 2025-11-05 16:07:41 +00:00
izzy
94d32bb54d
refactor: use secret instead of token in jwt terminology
chore: log maintenance mode login URL on boot
chore: don't make CLI actions reload if already in target state
2025-11-05 15:36:18 +00:00
izzy
421bf855d3
feat: log into maintenance mode from CLI command 2025-11-05 14:39:34 +00:00
izzy
460a626089
refactor: switch from nest jwt to just jsonwebtokens 2025-11-05 14:10:30 +00:00
izzy
014669f4a4
feat: jwt auth for maintenance 2025-11-05 13:44:43 +00:00
izzy
5f4a72735c
refactor: unify maintenance code into repository
feat: add a step to generate maintenance mode token
2025-11-05 12:56:12 +00:00
izzy
37db497b12
feat: maintenance authentication guard 2025-11-05 12:27:10 +00:00
izzy
aee2227f45
fix: propagate changes from the CLI to servers 2025-11-05 12:27:00 +00:00
izzy
d219cb951d
refactor: merge common code between api/maintenance 2025-11-05 11:41:29 +00:00
izzy
60cd22bfc5
feat: add Maintenance permission 2025-11-05 11:28:34 +00:00
izzy
171e4d75e0
refactor: only spin up kysely on boot (rather than a Nest app) 2025-11-05 11:14:08 +00:00
izzy
7db6f856b3
refactor: remove redundant route for maintenance 2025-11-05 11:05:20 +00:00
izzy
6a916c4c66
refactor: add a constant enum for ExitCode 2025-11-05 11:04:23 +00:00
izzy
3e850d96d8
feat: reimplement maintenance mode exit with new module 2025-11-05 11:00:07 +00:00
izzy
809904ea3a
refactor: rename repository to include worker
chore: configure websocket adapter
2025-11-05 10:53:47 +00:00
izzy
7f30f49ab5
chore: set maintenance module app name 2025-11-05 10:48:08 +00:00
izzy
bc9c38d829
refactor: move broadcast code into notification service 2025-11-05 10:46:15 +00:00
izzy
f80782f543
feat: initial draft of maintenance module, repo., worker controller, worker service 2025-11-04 18:29:32 +00:00
izzy
c130b04af5
fix: should set default value not override in service 2025-11-03 13:49:59 +00:00
izzy
efd13542f3
refactor: use try{} block for maintenance mode check 2025-11-03 11:17:11 +00:00
izzy
78520c462f
chore: clean up linter issues 2025-11-03 11:09:07 +00:00
izzy
58c4a41eed
refactor: move maintenance resolution code to static method in service 2025-11-03 10:56:38 +00:00
izzy
018af805e6
fix: add maintenanceMode field to system config test 2025-11-03 10:44:18 +00:00
izzy
4ac0800435
fix: skip config check if database is not initialised 2025-11-03 10:43:59 +00:00
izzy
428cbcea3a
refactor: deduplicate code between api/maintenance workers 2025-11-03 10:38:12 +00:00
izzy
3de75cc768
chore: increase timeout for ungraceful restart 2025-11-03 10:30:39 +00:00
izzy
5f81c4ebb5
feat: broadcast websocket event on server restart
refactor: listen to WS instead of polling
2025-11-03 10:26:05 +00:00
izzy
2afbff36a3
refactor: use system metadata for maintenance status 2025-10-31 17:28:57 +00:00
izzy
997c6fb3aa
chore: add a failsafe on restart to prevent other exit codes from preventing restart 2025-10-31 15:53:38 +00:00
izzy
caac2453b6
fix: don't wait for nest application to close to finish request response 2025-10-31 15:53:02 +00:00
izzy
47e673ef55
chore: add additional routes to maintenance controller 2025-10-31 15:50:26 +00:00
izzy
bb5d4ce9da
feat: cli command to toggle maintenance mode 2025-10-31 15:12:00 +00:00
izzy
42ac9cf922
feat: boot a stripped down maintenance api if enabled 2025-10-31 14:47:49 +00:00
izzy
78f949afaa
feat: implement graceful restart
feat: restart when maintenance config is toggled
2025-10-31 13:21:18 +00:00
izzy
2a06960b29
feat: add a maintenance.enabled config flag 2025-10-31 12:46:06 +00:00
Jonathan Jogenfors
61a2c3ace3
chore(server): clarify asset copy parameters (#23396) 2025-10-30 23:55:39 +00:00
Daniel Dietzler
e9038193db
fix: asset copy validation error (#23387) 2025-10-30 19:40:58 -04:00
github-actions
57c8378ca7 chore: version v2.2.0 2025-10-30 14:42:44 +00:00