11 Commits

Author SHA1 Message Date
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
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03: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
9d1a82446d [public-api] Implement connection pool with LRU cache 2022-10-31 13:59:05 +01:00
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