Commit Graph
144 Commits
Author SHA1 Message Date
wancat 9abb7f15ba fix: container removal, no secretKey panic 2023-11-12 21:23:12 +08:00
wancat 8e6227d9b4 feat: add validation before creating session 2023-11-12 21:23:12 +08:00
wancat cbe7adc3f8 feat: add error handling for choose username 2023-11-12 21:23:12 +08:00
wancat 20225093c6 feat: add rate limit for authentication
* improve error handling in frontend
2023-11-12 21:23:12 +08:00
wancat 265352d8c6 feat: add validation for login 2023-11-12 21:23:12 +08:00
wancat 643813d69d feat: complete register validation
* add password policy in frontend
2023-11-12 21:23:12 +08:00
Lin, Hung-Shin 040b2a71e5 feat: add validators for username, email, password
* not passed yet
2023-11-12 21:23:12 +08:00
Lin, Hung-Shin 6a64f75950 fix: remove default user 2023-11-12 21:23:12 +08:00
Lin, Hung-Shin f1a50067c5 feat: generate secure secret key and prevent default 2023-11-12 21:23:12 +08:00
wancat 55b61dbcab feat: add get ip endpoint
* rename handler
* change rate limit
2023-11-12 21:23:12 +08:00
wancat 1d2ad733ed feat: setup proxy and x-forwarded-for header 2023-11-12 21:23:12 +08:00
wancat 14b2c1b0d5 feat: add global and session rate limit 2023-11-12 21:23:12 +08:00
wancat ed14491cfc feat: socket error handling
* create a new session when failed to connect to socket
* reset termnal on connect
2023-11-12 21:23:12 +08:00
wancat 801d1aa07b refactor: add getOrCreateSession to simplify process 2023-11-12 21:23:12 +08:00
wancat 610894e6d8 refactor: separate createSession to sessionManager 2023-11-12 21:23:12 +08:00
Lin, Hung-Shin ca68207139 feat: disable global network in player containers 2023-11-12 21:23:12 +08:00
Lin, Hung-Shin 2285192eac feat: delete previous container on session creation 2023-10-30 13:31:59 +08:00
wancat 96678a45c3 feat: remove $ from condition field name 2023-10-29 17:42:31 +08:00
wancat 917083ad30 fix: remove debugging console log 2023-10-29 17:42:31 +08:00
wancat d724f97403 feat: add pending signal to status 2023-10-29 17:42:31 +08:00
wancat aec0cf84ad feat: include complete stage name in command 2023-10-29 17:41:38 +08:00
wancat 8f22babe7d feat: sanitize file checks 2023-10-29 17:41:38 +08:00
Lin, Hung-Shin 50b1fe5124 feat: execute files check via docker cli
WARNING: possible command injection vunerability.
2023-10-29 17:41:38 +08:00
Lin, Hung-Shin 38f3dbcd65 feat: install docker cli in backend
* change the copy order to improve performance
2023-10-29 17:41:38 +08:00
Lin, Hung-Shin 579d53a273 feat: refactor dockerfiles
* combine dev and prod into multi-stages dockerfile
* replace node with node:20-alpine to reduce image size
2023-10-29 17:41:38 +08:00
Lin, Hung-Shin 625c1a80da feat: able to test files 2023-10-29 17:41:38 +08:00
Lin, Hung-Shin b7ecfe3980 feat: implement $not and $or condition 2023-10-29 17:41:38 +08:00
Lin, Hung-Shin e52682686a fix: load .zshrc in system dir 2023-10-29 17:41:38 +08:00
Chen, Tai-Lin b4a37f7606 fix: remove order in game schema 2023-10-29 17:41:38 +08:00
wancat 5e1457c007 feat: show modal on quest completing
TODO: use setTimeout for now
need to change to capture user's activity in container in the future
2023-10-14 22:52:57 +08:00
wancat c8c9a584d0 fix: add social login to exist user 2023-10-14 17:09:50 +08:00
wancat cc95bb195b feat: add usercount, session count and complete rate 2023-10-14 16:03:44 +08:00
wancat 46071d8830 fix: remove sensative logs 2023-10-14 15:52:02 +08:00
wancat cc9040038d fix: change connect db error handling 2023-10-14 15:49:13 +08:00
wancat 916b78240c fix: oauthVerify models import 2023-10-14 15:36:03 +08:00
wancat e4e53b533f fix: clean script 2023-10-14 15:35:23 +08:00
wancat 50bf514805 feat: separate db models from server 2023-10-14 15:34:46 +08:00
Lin, Hung-Shin c5ccf03ac5 feat: add username and email check in frontend 2023-10-13 16:38:25 +08:00
wancat 7a9206fb47 refactor: reuse oauthVerify function 2023-10-13 00:51:00 +08:00
wancat 182fcf643f feat: pick username
* put new registered social login user to session data
* ask to choose username
* simplify checkUsername functions
2023-10-13 00:05:59 +08:00
Annie Huang ad5344c98b feat: github auth 2023-10-12 16:12:07 +08:00
Lin, Hung-Shin 33582a4827 fix: add baseUrl in passport oauth 2023-10-11 14:46:07 +08:00
Lin, Hung-Shin 50bed23d37 fix: remove unnecessary console log 2023-10-05 14:22:47 +08:00
Lin, Hung-Shin 72b2711367 feat: make social login optional 2023-10-05 13:32:02 +08:00
Lin, Hung-Shin aa29098954 fix: register error message "email already exists" 2023-10-05 11:50:21 +08:00
Lin, Hung-Shin 1880b30029 feat: use google to login 2023-10-05 11:50:00 +08:00
Lin, Hung-Shin 44b3304046 feat: login to google success 2023-10-04 13:23:16 +08:00
wancat b8e520152b fix: change cookie setting, prevent form trigger twice 2023-09-18 23:37:25 +08:00
wancat 59ced31094 fix: update config field name 2023-09-17 13:05:49 +08:00
wancat d745531a14 feat: update swagger, secure cookie 2023-09-17 12:48:50 +08:00