Commit Graph

268 Commits

Author SHA1 Message Date
rootdarkarchon
90ccfe4162 adjust metrics 2022-12-19 15:01:12 +01:00
rootdarkarchon
5c9b15545c add metrics to each shard 2022-12-19 14:12:25 +01:00
rootdarkarchon
33a134608a add more meaningful message for invalid data 2022-12-18 15:30:47 +01:00
rootdarkarchon
f278c5a762 rework authentication 2022-12-18 14:53:44 +01:00
rootdarkarchon
c358b6b3c4 move markuseroffline to before send offline message and db operations 2022-12-17 11:59:01 +01:00
rootdarkarchon
7231589098 fix removing moderators on clear, allow change invite state for moderators 2022-12-16 21:23:15 +01:00
rootdarkarchon
87fdd55c50 potential fixes for userpurge 2022-12-14 17:36:28 +01:00
rootdarkarchon
333a8dddd2 update dependencies and fix whitelisting of ips potentially 2022-12-12 19:30:06 +01:00
rootdarkarchon
6049dcf6c2 Merge branch 'main' of https://github.com/Penumbra-Sync/server 2022-11-14 01:56:52 +01:00
rootdarkarchon
0f697bc5f3 fixes issue where character hash of paused users in a syncshell was uselessly sent 2022-11-14 01:56:45 +01:00
rootdarkarchon
80de0923fe log more 2022-11-11 10:53:24 +01:00
rootdarkarchon
d3034d7c22 bruh who the fuck puts {} into filenames 2022-11-11 00:54:50 +01:00
rootdarkarchon
b53ea2e2d3 fix stupid regex once again 2022-11-11 00:54:12 +01:00
rootdarkarchon
e51244fc9d add {} to path validation 2022-11-11 00:47:29 +01:00
rootdarkarchon
182240bc16 fix regex for a folders that are single numbers (why is this a thing SE) 2022-11-10 15:02:14 +01:00
rootdarkarchon
af537ab67c adjust regex for vfx bullshit 2022-11-10 14:58:37 +01:00
rootdarkarchon
6a62dcc069 actually fix compiler error 2022-11-10 14:56:05 +01:00
rootdarkarchon
42c6bf0b7f fix compiler error 2022-11-10 14:55:17 +01:00
rootdarkarchon
c5b0f6146e print invalid paths if validation failed 2022-11-10 14:53:32 +01:00
rootdarkarchon
c585bb739a adjust gamepaths regex for special characters 2022-11-10 14:51:26 +01:00
rootdarkarchon
683c361935 clean up push data validation 2022-11-10 14:47:23 +01:00
rootdarkarchon
f37f0f8699 temporarily disable path validation again 2022-11-10 13:57:12 +01:00
rootdarkarchon
f41e233aa0 change gamepath regex 2022-11-10 13:47:48 +01:00
rootdarkarchon
29c4df1e71 fix validation 2022-11-10 13:32:19 +01:00
rootdarkarchon
f229edd510 add validation of sent filereplacements from clients 2022-11-10 13:17:41 +01:00
rootdarkarchon
d83d9a6753 OneTime Invites Server handling (#17)
* add server-side handling for one time invites
2022-10-25 00:54:51 +02:00
Stanley Dimant
8164d737bf whitelist fixes, grpc stream fixes 2022-10-20 23:08:46 +02:00
rootdarkarchon
d26daa6344 make bot less cancer to work with 2022-10-20 13:25:37 +02:00
rootdarkarchon
25772dade8 adjust command 2022-10-20 11:46:07 +02:00
rootdarkarchon
c98e2b2dd6 Switch Authentication to asynchronous streaming calls (#16)
* add base grpc service and swap auth service to streaming

* remove Authorize from hub itself

* remove unused usings

* heave files server to net 7, add exception handling in grpc auth stream

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2022-10-13 16:55:23 +02:00
rootdarkarchon
d37c1208fe Adjust Auth on server (#15)
* add auth that verifies identity is marked online

* few changes for testing

* handle identity with requirements

* remove unnecessary logging from auth handler

* change to UserRequirements

* fixes to checks

* fixes to UserRequirementHandler

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2022-10-10 19:44:30 +02:00
Stanley Dimant
0d8a401f13 adjust timings for delays 2022-10-09 16:38:37 +02:00
Stanley Dimant
4192c9b212 add more logging 2022-10-09 16:20:04 +02:00
Stanley Dimant
b58d882686 adjust to await foreach and adjust enqueue ident change 2022-10-09 16:09:14 +02:00
Stanley Dimant
1c8f16fac0 attempt with multiple grpc clients 2022-10-09 15:58:36 +02:00
Stanley Dimant
d49ee21d01 adjust logging and change faulty states 2022-10-09 15:30:43 +02:00
Stanley Dimant
e1519f2497 add some debugging info 2022-10-09 15:23:29 +02:00
Stanley Dimant
b5325b9c50 adjust grpc api for idents 2022-10-09 14:32:44 +02:00
rootdarkarchon
777a764ef1 move marehub to strong api usage (#14)
* move marehub to strong api usage

* fix merge issues

* latest api

* further optimizations
2022-10-08 14:33:25 +02:00
Stanley Dimant
a8f97aee23 switch bool around 2022-10-07 01:17:02 +02:00
Stanley Dimant
a996fc7689 send disable moderator status to user on ownership transfer 2022-10-06 22:34:32 +02:00
Stanley Dimant
7f3029e82c do not allow to ban or remove owner or moderators from syncshell 2022-10-06 22:24:41 +02:00
rootdarkarchon
520a2299d0 include alias in checking for user in group 2022-10-06 16:34:20 +02:00
rootdarkarchon
5341b5a409 fix compile error 2022-10-06 16:32:39 +02:00
rootdarkarchon
eadecff9e7 send IsModerator on SetModerator per group dto to affected user 2022-10-06 16:09:48 +02:00
rootdarkarchon
7590102dad get ismoderator from getgroups 2022-10-06 16:08:11 +02:00
rootdarkarchon
a45a923260 add group moderation and banning functionality to api (#13)
* add group moderation and banning functionality to api

* set moderator to false on group migration

* send IsModerator in addition on group join

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2022-10-06 15:50:15 +02:00
Stanley Dimant
6ffad7f723 fix servername->shardname 2022-10-05 23:21:59 +02:00
rootdarkarchon
17f26714ce Switch to GrpcClientIdentificationService and abolish Redis for Idents (#12)
* add GrpcClientIdentificationService

* remove unnecessary gauges

* set to no retry policy

* initialize metrics

Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
2022-10-05 23:10:36 +02:00
rootdarkarchon
bff21ead95 Syncshells (#11)
* some groups stuff

* further groups rework

* fixes for pause changes

* adjsut timeout interval

* fixes and namespace change to file scoped

* more fixes

* further implement groups

* fix change group ownership

* add some more stuff for groups

* more fixes and additions

* some fixes based on analyzers, add shard info to ui

* add discord command, cleanup

* fix regex

* add group migration and deletion on user deletion

* add api method for client to check health of connection

* adjust regex for vanity

* fixes for server and bot

* fixes some string comparison in linq queries

* fixes group leave and sets alias to null

* fix syntax in changeownership

* add better logging, fixes for group leaving

* fixes for group leave

Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
2022-10-04 14:13:43 +02:00