Alex Tugarev
c8c4c3bda9
Root out obsolete self-hosted setup ( #17729 )
2023-05-25 15:44:59 +08:00
Anton Kosyakov
0ba64e3d3e
[public-api] refine mapping of json rpc error codes ( #17591 )
...
* [public-api] refine mapping of json rpc error codes
- map 4xx and 650 codes as invalid argument (client errors)
- map 401, 411 related to unauthedicated and permission denied
- mapp 429 to resource exhausted
* Update errors.go
2023-05-12 16:09:57 +08:00
Milan Pavlik
16b4b1e284
[public-api] Correctly map 401 to Unathenticated ( #16711 )
2023-03-07 17:31:04 +01:00
Milan Pavlik
0a7ca4c08a
Use context to store and populate origin
2023-02-15 15:39:20 +01:00
Gero Posmyk-Leinemann
1a9094756a
[public-api-server] Forward Origin header where provided
2023-02-15 15:39:20 +01:00
Andrew Farries
f4bfe9f1a4
[public-api] Strip /api prefix
...
When making a ws connection to `server` we no longer need the `/api`
prefix in the URL as that is only valid for requests from outside the
cluster - the `/api` is stripped by proxy in that case.
2023-01-10 20:52:50 +01:00
Andrew Farries
d92cf9a08c
[public-api] Set NoOrigin on connect to server
...
Don't set an Origin header on the websocket connection request when
connecting to `server` as the connection is now made from the public api
to server using a cluster-local connection.
2023-01-10 20:52:50 +01:00
Milan Pavlik
e47f2d5718
[public-api] Handle context cancelled as deadline exceeded error
2022-12-13 05:32:22 -03:00
Christian Weichel
478a75e744
Switch license to AGPL
2022-12-08 13:05:19 -03:00
Milan Pavlik
2926d142ed
[public-api] Make publiic api package match path
2022-11-09 09:42:39 +01:00
Milan Pavlik
59c57b4821
[public-api] Properly extract errors from Websocket RPC
2022-11-08 09:14:38 +01:00
Milan Pavlik
4da5f03cb9
[public-api] Handle blocked user error
2022-11-07 12:16:37 +01:00
Milan Pavlik
f5bbb50df0
[public-api] Parametrize connection URL based on token
2022-11-04 10:14:08 +01:00
Milan Pavlik
7f3e1e4c50
[public-api] Proxy Cookies to downstream for auth
2022-11-04 08:49:08 +01:00
Milan Pavlik
a470cdbfc2
[public-api] Refactor to support multiple token types
2022-11-03 13:38:08 +01:00
Milan Pavlik
4c3007af75
[public-api] Implement experimental TeamsService.CreateTeam
2022-11-01 13:56:06 +01:00
Milan Pavlik
9d1a82446d
[public-api] Implement connection pool with LRU cache
2022-10-31 13:59:05 +01:00
Milan Pavlik
2d888a5ded
[public-api] Move API definitions to experimental package
2022-10-19 17:23:34 +02:00
Milan Pavlik
0a476c52e8
[public-api] U Refactor to use connect handlers, route to HTTP server
2022-10-12 12:19:27 +02:00
Andrew Farries
155efaacfc
Make proxy treat 403 error as rpc PermissionDenied
2022-05-17 22:11:32 +05:30
Christian Weichel
5dd9465378
[public-api] Adapt to new baseserver structure
2022-05-16 13:23:31 +05:30
Milan Pavlik
5361bab694
[public-api] Convert server errors to appropriate RPC errors
2022-05-13 13:08:28 +05:30
Laurie T. Malau
2250729ffd
Add request duration metric
2022-05-10 15:17:25 +05:30
Milan Pavlik
d2d84646c4
[public-api] Convert to a cobra command and add config
2022-05-04 19:30:20 +05:30