Vincent23412
af2f1ef707
feat(auth): add LoginAttempt schema and record login attempts with failure rate limit
...
- Added `LoginAttempt` Mongoose schema to store login history
- Integrated login attempt recording into login flow (success/failure)
- Created `rateLimitByAccount` middleware to block login if 10 failed attempts in 10 minutes
2025-04-27 15:57:34 +08:00
Justin Lin
eaced63c68
feat: add console logger in production
2025-04-27 12:34:27 +08:00
Justin Lin
aeed963a75
fix: use wrong parsed command body
2025-04-26 18:43:43 +08:00
Justin Lin
b86697b6db
fix: validate command input in newCommand controller
2025-04-26 18:10:33 +08:00
Justin Lin
cb1e395579
refactor: update project root detection and quest directory path
2025-04-26 18:02:49 +08:00
Justin Lin
9498bb77ef
fix: linting
2025-04-26 17:02:47 +08:00
Justin Lin
3985d5d089
fix: server and app build
2025-04-26 13:22:32 +08:00
Justin Lin
253564376d
fix: analytics type errors
2025-04-26 13:10:48 +08:00
Justin Lin
d450613816
clean: remove unused code
2025-04-26 12:48:29 +08:00
Justin Lin
f7860c6197
fix: update CLIFileExistenceChecker to accept containerId in constructor
2025-04-26 11:09:10 +08:00
Justin Lin
fba92dad46
feat: integrate filegraph
2025-04-24 23:30:12 +08:00
Justin Lin
87b8ca5d04
wip: replace packages with pure files
2025-04-24 23:20:40 +08:00
Justin Lin
2d95ca382f
wip: integrate filegraph into session
2025-04-24 22:05:10 +08:00
Justin Lin
cdd22634e0
refactor: replace "folder" with "directory" across file handling components and tests
2025-04-24 21:24:55 +08:00
Justin Lin
7e50c8e06c
refactor: remove condition tests and update file node interfaces in game session
...
TODO: replace "folder" with "directory"
2025-04-24 18:10:47 +08:00
Justin Lin
52e9a13645
feat: add isFinished method to GameSession and update commandController to handle session completion
2025-04-23 17:10:51 +08:00
Justin Lin
92173bb7e9
refactor: migrate session management to TRPC and remove legacy API endpoints
2025-04-23 16:37:12 +08:00
Justin Lin
b4b8f8baee
feat: load responses and tasks from existing session
2025-04-23 16:17:10 +08:00
Justin Lin
2fcca0c4b9
refactor: update session management to handle tasks and responses in a single update
2025-04-23 16:03:39 +08:00
Justin Lin
66434ff897
fix: save new created session
2025-04-22 19:06:57 +08:00
Justin Lin
1616f62755
wip: migrate backend to new game package
2025-04-21 22:40:11 +08:00
Justin Lin
1d843f7355
refactor: remove unused quest-related schemas and consolidate exports
2025-04-21 21:42:54 +08:00
Justin Lin
6043226142
wip: migrating game handler
2025-04-18 14:27:36 +08:00
Justin Lin
61d1871e95
feat: parse all quest
2025-04-16 19:06:47 +08:00
Justin Lin
ed4d04b658
feat: parse quest using zod, basic
2025-04-16 17:37:42 +08:00
Justin Lin
963655c1f7
wip: get active session
2025-04-16 16:58:24 +08:00
Justin Lin
423548804a
feat: migreate get user profile to trpc
2025-04-16 16:40:03 +08:00
Justin Lin
ac92950177
feat: migrate quest api to trpc
2025-04-16 16:24:29 +08:00
Justin Lin
55a41dd3b5
feat: integrate trpc to app
2025-04-16 16:02:23 +08:00
Justin Lin
529869671c
feat: createContext
2025-04-16 15:36:12 +08:00
Justin Lin
6326b84a60
feat: init trpc
2025-04-16 15:27:00 +08:00
Justin Lin
fab02d03a9
fix: update env samples, use dash only for naming networks
2024-12-27 21:01:31 +08:00
Justin Lin
9e44ebe415
fix: remove unwanted error logging
2024-12-27 20:56:23 +08:00
Justin Lin
cb4b9f429a
fix: set mongodb version to 6
2024-10-21 13:43:58 +08:00
Justin Lin
5cf375905d
feat: remove debug logs
2024-10-21 12:12:52 +08:00
Justin Lin
44ecd3b87a
fix: mounting quest home into production container
2024-10-21 12:11:24 +08:00
Justin Lin
1888781a47
fix: copy entrypoint into quest container. Disable mounting for entrypoint & public key. Use Env to pass ssh public key into container.
2024-10-21 11:54:32 +08:00
Justin Lin
b449d84c54
feat: auto create config folder and player network
2024-10-16 14:13:41 +08:00
Justin Lin
91ebaec22c
feat: update document and remove some debug logging
2024-10-14 18:32:02 +08:00
Justin Lin
31301419ad
feat: add ssh connection retry
2024-10-14 17:31:35 +08:00
Justin Lin
a4ed4cf533
feat: remove unnecessary quest Dockerfiles
2024-10-14 12:40:53 +08:00
Justin Lin
247f03b71a
feat: mount quest home to /etc/skel to prevent building images
2024-10-14 12:30:28 +08:00
Justin Lin
be22a121c8
feat: use entrypoint to create user account and copy ssh key
2024-10-14 12:06:05 +08:00
Justin Lin
261c6fc029
feat: generate key pair using ssh2 for right public key format
2024-10-14 11:34:53 +08:00
Justin Lin
03b2993b56
feat: load or create key
2024-10-14 11:23:25 +08:00
Justin Lin
2cc348687a
feat: generate key pair function
2024-10-14 10:53:15 +08:00
Justin Lin
2a3429106c
feat: remove welcome banner
2024-10-13 16:31:17 +08:00
Justin Lin
a6720cfe39
feat: connect through ssh
2024-10-13 15:59:01 +08:00
Justin Lin
4c292fd6ba
wip: allow connection from docker container
2024-10-13 15:05:20 +08:00
Justin Lin
19897e607f
wip: connect container through ssh
2024-10-10 20:54:42 +08:00