12 breaking releases

0.14.0 Jul 24, 2024
0.13.0 Jan 12, 2024
0.12.0 Dec 4, 2023
0.11.0 Jul 10, 2023
0.2.0 Jul 16, 2021

#304 in Network programming

Download history 1273/week @ 2024-07-27 660/week @ 2024-08-03 450/week @ 2024-08-10 467/week @ 2024-08-17 539/week @ 2024-08-24 1126/week @ 2024-08-31 632/week @ 2024-09-07 551/week @ 2024-09-14 1041/week @ 2024-09-21 1237/week @ 2024-09-28 1403/week @ 2024-10-05 1060/week @ 2024-10-12 863/week @ 2024-10-19 677/week @ 2024-10-26 547/week @ 2024-11-02 553/week @ 2024-11-09

2,851 downloads per month

Apache-2.0

790KB
17K SLoC

Go 13K SLoC // 0.1% comments Rust 4K SLoC // 0.0% comments Just 75 SLoC // 0.4% comments

Linkerd Proxy API

This repo contains the gRPC bindings that the Linkerd Proxy uses to communicate with the Linkerd control plane.

APIs

Generally, the proxy's APIs are Kubernetes-agnostic and expose abstractions that allow proxies to discover runtime configuration.

destination

The destination API is used by proxies to discover information about outbound traffic. This configuration includes:

  • the protocol of the destination, if known
  • whether the destination is a load balanced service or individual endpoint
  • labels to describe the destination in telemetry
  • the mTLS identity of destination pods

identity

The identity API is used by proxies to obtain TLS certificates used for authenticed pod-to-pod communication.

inbound

The inbound API is used by the proxy to discover inbound serving policies--especially per-port authorization requirements.

tap

The proxy can be configured to expose a gRPC server that allows the control plane to query metadata about live requests transiting the proxy.

Languages

Protobuf

The ./proto directory includes protobuf definitions.

Go

The ./go directory contains statically generated Go bindings, which are generally used by controller implementations.

Rust

Crates.io Documentation License

This repository publishes the linkerd2-proxy-api crate, which uses tonic to expose client and server implementations for each API. Each API may be enabled independently with cargo feature flags.

The proxy generally uses API clients. Some server implementations are also used by the control plane.

Issues

Issues may be opened in the linkerd2 repository.

License

Copyright 2022 The Linkerd Authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependencies

~4–11MB
~111K SLoC