sourcegraph/internal/httpcli
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
..
BUILD.bazel tenant: Introduce first version of tenant package (#64271) 2024-08-08 12:02:19 +02:00
client_test.go httpcli: add prometheus metric for monitoring the rate that Sourcegraph issues requests to external services 2024-04-02 13:50:07 -07:00
client.go tenant: Introduce first version of tenant package (#64271) 2024-08-08 12:02:19 +02:00
CODENOTIFY all: remove tsenart from CODENOTIFY (#41035) 2022-08-30 09:35:14 +02:00
doc.go Rename pkg to internal (#5898) 2019-10-07 15:36:41 -07:00
external.go httpcli: Move init function from conf package into httpcli (#62318) 2024-05-02 18:30:44 +02:00
init.go httpcli: Move init function from conf package into httpcli (#62318) 2024-05-02 18:30:44 +02:00
noop_response_cache.go Use uncached doer for downloading packages (#48977) 2023-03-22 18:56:31 +00:00
redis_logger_middleware_test.go httpcli: Move init function from conf package into httpcli (#62318) 2024-05-02 18:30:44 +02:00
redis_logger_middleware.go rcache: Explicitly pass redis pool to use (#63644) 2024-07-10 01:23:19 +02:00
transport.go httpcli: introduce mutable, wrapped transports (#39775) 2022-08-02 13:12:10 +00:00