Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.
Go to file
Eliza Weisman 694f691b71
Add timeout to Outbound::bind_service (#436)
Closes #403.

When the Destination service does not return a result for a service, the proxy connection for that service will hang indefinitely waiting for a result from Destination. If, for example, the requested name doesn't exist, this means that the proxy will wait forever, rather than responding with an error.

I've added a timeout wrapping the service returned from `<Outbound as Recognize>::bind_service`. The timeout can be configured by setting the `CONDUIT_PROXY_BIND_TIMEOUT` environment variable, and defaults to 10 seconds (because that's the default value for [a similar configuration in Linkerd](https://linkerd.io/config/1.3.5/linkerd/index.html#router-parameters)).

Testing with @klingerf's reproduction from #403:
```
curl -sIH 'Host: httpbin.org' $(minikube service proxy-http --url)/get | head -n1
HTTP/1.1 500 Internal Server Error
```
proxy logs:
```rust
proxy-5698f79b66-8rczl conduit-proxy INFO conduit_proxy using controller at HostAndPort { host: Domain("proxy-api.conduit.svc.cluster.local"), port: 8086 }
proxy-5698f79b66-8rczl conduit-proxy INFO conduit_proxy routing on V4(127.0.0.1:4140)
proxy-5698f79b66-8rczl conduit-proxy INFO conduit_proxy proxying on V4(0.0.0.0:4143) to None
proxy-5698f79b66-8rczl conduit-proxy INFO conduit_proxy::transport::connect "controller-client", DNS resolved proxy-api.conduit.svc.cluster.local to 10.0.0.240
proxy-5698f79b66-8rczl conduit-proxy ERR! conduit_proxy::map_err turning service error into 500: Inner(Timeout(Duration { secs: 10, nanos: 0 }))
```
2018-02-26 10:18:35 -08:00
.github Add a newline to dco.yml (#254) 2018-02-01 15:16:02 -08:00
bin Make build scripts location-agnostic (#409) 2018-02-23 10:02:14 -08:00
cli Make prometheus URL in config fully qualified DNS name (#443) 2018-02-26 09:40:31 -08:00
controller Base control plane Docker images on scratch instead of base. (#368) 2018-02-23 13:03:19 -10:00
pkg Update go-run to set version equal to root-tag (#393) 2018-02-20 12:25:55 -08:00
proto Require timestamp on all telemetry requests (#342) 2018-02-13 13:52:21 -08:00
proxy Add timeout to Outbound::bind_service (#436) 2018-02-26 10:18:35 -08:00
proxy-init Use Go 1.10.0 to build Go components. (#408) 2018-02-21 14:31:29 -10:00
web Use Go 1.10.0 to build Go components. (#408) 2018-02-21 14:31:29 -10:00
.dockerignore Use bin/dep in Dockerfile-go-deps. (#324) 2018-02-12 13:32:08 -10:00
.editorconfig Add links to each deployment name in the Conduit dashboard (#44) 2017-12-19 15:40:24 -08:00
.gcp.json.enc Fix docker-build stage in CI (#21) 2017-12-08 00:52:06 -06:00
.gitattributes Introducing Conduit, the ultralight service mesh 2017-12-05 00:24:55 +00:00
.gitignore Allow bin/dep wrapper script for dep to work on Windows. (#271) 2018-02-05 09:24:18 -10:00
.prometheus.dev.yml Introducing Conduit, the ultralight service mesh 2017-12-05 00:24:55 +00:00
.travis.yml Use Go 1.10.0 to build Go components. (#408) 2018-02-21 14:31:29 -10:00
BUILD.md Make build scripts location-agnostic (#409) 2018-02-23 10:02:14 -08:00
CHANGES.md Prepare for the v0.3.0 release (#406) 2018-02-21 11:14:11 -08:00
CONTRIBUTING.md Add contributing doc and DCO file (#88) 2017-12-22 14:54:27 -08:00
Cargo.lock proxy: don't send transfer-encoding for empty GET requests (#410) 2018-02-23 16:22:45 -08:00
Cargo.toml Move the Rust gRPC bindings to a dedicated crate (#275) 2018-02-06 10:31:48 -08:00
DCO Add contributing doc and DCO file (#88) 2017-12-22 14:54:27 -08:00
Dockerfile-base Introducing Conduit, the ultralight service mesh 2017-12-05 00:24:55 +00:00
Dockerfile-go-deps Use Go 1.10.0 to build Go components. (#408) 2018-02-21 14:31:29 -10:00
Gopkg.lock Use Go 1.10.0 to build Go components. (#408) 2018-02-21 14:31:29 -10:00
Gopkg.toml Optimize Prometheus queries (#298) 2018-02-09 10:55:07 -08:00
LICENSE Introducing Conduit, the ultralight service mesh 2017-12-05 00:24:55 +00:00
README.md update readme: experimental -> alpha, and minor tweaks (#391) 2018-02-19 15:41:04 -08:00
docker-compose.yml Upgrade to Prometheus 2.1.0 (#344) 2018-02-13 13:22:53 -08:00

README.md

conduit

Build Status GitHub license Slack Status

🎈 Welcome to Conduit! 👋

Conduit is an ultralight service mesh for Kubernetes. It features a minimalist control plane written in Go, and a native proxy data plane written in Rust that boasts the performance of C without the heartbleed.

Conduit is alpha. It is capable of proxying all TCP traffic, and reporting top-line metrics (success rates, latencies, etc) for all HTTP, HTTP/2, and gRPC traffic. It currently does not work with websockets or with HTTP tunneling--see the --skip-outbound-ports flag for how to exclude these types of traffic.

Get involved

Documentation

View Conduit docs for more a more comprehensive guide to getting started, or view the full Conduit roadmap.

Getting started with Conduit

  1. Install the Conduit CLI with curl https://run.conduit.io/install | sh .

  2. Add $HOME/.conduit/bin to your PATH.

  3. Install Conduit into your Kubernetes cluster with: conduit install | kubectl apply -f -.

  4. Verify that the installation succeeded with conduit check.

  5. Explore the Conduit controller with conduit dashboard.

  6. Optionally, install a demo application to run with Conduit.

  7. Add your own service to the Conduit mesh!

Working in this repo

BUILD.md includes general information on how to work in this repo.

Code of conduct

This project is for everyone. We ask that our users and contributors take a few minutes to review our code of conduct.

License

Conduit is copyright 2018 Buoyant, Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files 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.