36 Commits

Author SHA1 Message Date
Milan Pavlik
e49e61c469
[server] Store only User ID on WS connection instance - WEB-460 (#17905)
* [server] Store only User ID on WS connection instance

* Fix

* Fix
2023-06-12 20:07:02 +08:00
Milan Pavlik
314159065a
[server] Remove old session cookies - WEB-103 (#17846)
* [server] Remove Session ID from logs, ahead of session removal

* [server] Remove sessions - take 2

* fix up

* fix

* fix

* fix

* fix

* Fix

* retest

* add ws handler

* fix

* fix

* retest

* fix

* clean up

* fix
2023-06-07 20:01:57 +08:00
Milan Pavlik
84aec6d694
[server] Log user errors as info (#16445)
* [server] Log user errors as info

* Fix

* Fix
2023-03-02 09:09:59 +01:00
Gero Posmyk-Leinemann
0ce9556b36 [server] Fix extraction of clientIp 2022-12-15 11:27:25 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Milan Pavlik
9bc39df509 [server] Remove gitpod_server_api_calls_user_total metric 2022-10-31 14:54:06 +01:00
Milan Pavlik
9bcc741a4a [server] Observe request duration even for failures, report statusCode 2022-10-04 08:04:19 +02:00
Gero Posmyk-Leinemann
8991e4a500 [server] Guard against bogus RPC method names 2022-09-06 08:58:21 +02:00
Jan Keromnes
12b58f4979 [server] Introduce and use a ErrorCodes.INTERNAL_SERVER_ERROR 2022-06-09 17:01:19 +05:30
Milan Pavlik
45f13cf8e9 Format components/server with prettier 2022-03-14 21:30:24 +05:30
Jan Keromnes
2d443923f2 [server] Restrict snapshot access based on repository access
Also refactor:
- Simplify GuardedSnapshot.workspace
- WorkspaceLogAccessGuard → RepositoryResourceGuard
- RepositoryService.canAccessHeadlessLogs → RepositoryProvider.hasReadAccess
2022-02-21 15:47:01 +05:30
Gero Posmyk-Leinemann
24551594b9 [server] tracing: Avoid using FOLLOWS_FROM references due to lots of errors 2022-02-14 16:17:35 +01:00
Gero Posmyk-Leinemann
087d569306 [server] Trace userAgent 2022-02-14 16:17:35 +01:00
Gero Posmyk-Leinemann
d955ce10f0 [server, dashboard] Do basic rate limiting on startWorkspace 2022-02-07 18:54:29 +01:00
Anton Kosyakov
dea0999778 [server] add JB plugins as client types for tracing 2022-01-27 10:15:19 +01:00
Gero Posmyk-Leinemann
907ca5d3d3 [server] Avoid bubbling up any errors into ws.close(...) 2022-01-17 13:17:10 +01:00
Anton Kosyakov
ac4526ea3f fix #7054: fix disposing of listeners 2022-01-15 16:41:08 +01:00
Laurie T. Malau
ea76aec273 Add metric and plug in 2022-01-13 15:52:06 +01:00
Gero Posmyk-Leinemann
f8218bda23 [server] Refer to connection TraceContext when sending notifications to websocket clients 2022-01-12 12:39:05 +01:00
Gero Posmyk-Leinemann
469d0b2aef [server] Add client.version and .origin (workspaceId/instanceId) to websocket spans 2022-01-12 12:39:05 +01:00
Gero Posmyk-Leinemann
226951c18b [tracing] Set status_code to improve honeycomb reporting 2022-01-07 09:28:00 +01:00
Pudong
fb99a9f5eb [ide] add user-agent header to ws connection to server 2021-12-20 07:21:44 +01:00
Gero Posmyk-Leinemann
af137395fb [server] Trace websocket connections as parent of API calls 2021-12-15 10:42:39 +01:00
Gero Posmyk-Leinemann
1fc9d31098 [server] Refactor: Push methods into RpcConnectionHandler 2021-12-15 10:42:39 +01:00
Gero Posmyk-Leinemann
6be4928bc3 [server] Share ClientMetadata and trace clientType 2021-12-15 10:42:39 +01:00
Gero Posmyk-Leinemann
9972d25505 [server] Trace ws rate limiter (429s) and access guards (403s) 2021-12-15 10:42:39 +01:00
Gero Posmyk-Leinemann
0189125c45 [protocol] Rename TraceContext.log* to TraceContext.set* 2021-12-10 14:26:35 +01:00
Gero Posmyk-Leinemann
0846c58a50 [server] Improve API-level tracing
- better distinguish between API errors and "internal" errors
 - use tags instead of log for errors
 - use standarized error fields
2021-12-10 14:26:35 +01:00
Gero Posmyk-Leinemann
9443de8154 [server, protocol] Improve tracing II
- add TraceContext.setOWI to trace context info just like for Go components, including sessionId
  - change TraceContext.addJsonRPCParameters to accept shapes
 - switch to opt-in tracing for a) parameter names, and b) easier filtering for PII
2021-12-07 09:35:32 +01:00
Gero Posmyk-Leinemann
8e111f6604 [server] Add all arguments to API span 2021-12-01 17:34:27 +01:00
Gero Posmyk-Leinemann
ad8b7f0f48 [server] Log API connections without user-agent 2021-12-01 17:34:27 +01:00
Gero Posmyk-Leinemann
93efd2c8d4 [server] Follow tracing convetions for errors 2021-12-01 17:34:27 +01:00
Gero Posmyk-Leinemann
67ff0e4f8f [server] Create and inject TraceContext into every API method 2021-12-01 17:34:27 +01:00
Gero Posmyk-Leinemann
662bb20388 [server] GitpodServerImpl: Remove superfluous generics 2021-12-01 17:34:27 +01:00
Gero Posmyk-Leinemann
e4d2e268bc [server] Add WebsocketClientContext 2021-11-18 10:50:15 +01:00
Gero Posmyk-Leinemann
c494a0ba63 [server] Move websocket-connection-manager.ts 2021-11-18 10:50:15 +01:00