sourcegraph/internal/requestclient
Erik Seliger f61ce6e8e8
tenant: Introduce first version of tenant package (#64271)
This PR aims to craft the /internal/tenant package for use by all Sourcegraph cluster-internal services to properly scope data visibility to the correct requesting tenant.
For now, we only expose methods we know we will DEFINITELY need.

This PR also adds the required middlewares so we can start to tinker with it in implementations.

## Test plan

CI passes. We don't enforce anything for now except not passing unparseable tenant IDs, which should be fine.
2024-08-08 12:02:19 +02:00
..
geolocation Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
BUILD.bazel fix/internal/requestclient: read all instances of x-forwarded-for header, not just the first (#64137) 2024-07-30 08:35:23 -07:00
client_test.go requestclient: add country-level geolocation data (#58386) 2023-11-22 14:51:48 -08:00
client.go feat/requestclient: propagate original User-Agent as X-Forwarded-For-User-Agent (#64113) 2024-07-29 14:17:25 -07:00
grpc_test.go tenant: Introduce first version of tenant package (#64271) 2024-08-08 12:02:19 +02:00
grpc.go tenant: Introduce first version of tenant package (#64271) 2024-08-08 12:02:19 +02:00
http_test.go fix/internal/requestclient: read all instances of x-forwarded-for header, not just the first (#64137) 2024-07-30 08:35:23 -07:00
http.go fix/internal/requestclient: read all instances of x-forwarded-for header, not just the first (#64137) 2024-07-30 08:35:23 -07:00