akka / akka/akka-http

Support HAPROXY proxy protocol on the server side

Open
#89 14 comments 14 reactions 0 assignees View on GitHub
1 - triaged help wanted nice-to-have (low-prio) t:server
Dominant language
Scala
Stars
1.4k
Forks
584
Avg merge
14h 33m
Merged PRs (30d)
24

Description

HAProxy defines a TCP-based "proxy protocol" that wraps / prefixes reverse-proxy traffic with metadata from the original client.

See http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt.

**Issue by [prettynatty](https://github.com/prettynatty)**
_Wednesday Jan 20, 2016 at 14:15 GMT_
_Originally opened as https://github.com/akka/akka/issues/19541_

---

Akka HTTP lacks proxy protocol support.
There already was a demand in spray/spray#846. It's impossible to implement anti-flood scenarios in case of plain tcp connections when there is no way to determine real client ip via HTTP headers passed from reverse proxy.

Contributor guide

Open the contributing guide

Research direction

Start by reading the HAProxy proxy protocol specification linked in the issue and then trace Akka HTTP's server-side TCP connection handling. The issue names no files or tests; done means accepting the protocol metadata and making the original client IP available for server-side anti-flood handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.