storj / edge

Storj edge services (including multi-tenant, S3-compatible server to interact with the Storj network)
GNU Affero General Public License v3.0
53 stars 18 forks source link

Implement Proxy protocol for the gateway, linksharing, and authservice #357

Closed amwolff closed 7 months ago

amwolff commented 1 year ago

Background

What is the problem/pain point?

Gateway, Link Sharing, and Auth Service don't have the ability to see IP addresses associated with the incoming traffic when they terminate TLS and are behind a load balancer.

Who is impacted?

-

What is the impact?

-

Why now?

-

Requirements

User Story

-

Acceptance Criteria

-

Success Metrics

-

pwilloughby commented 8 months ago

It would be nice to listen on a new additional port for proxy protocol to help with the migration

storj-gerrit[bot] commented 8 months ago

Change pkg/httpserver: support PROXY protocol mentions this issue.

jewharton commented 8 months ago

I've decided to use the pires/go-proxyproto library to add support for PROXY protocol requests.

Dependency review results:

halkyon commented 8 months ago

Here's my review on https://github.com/pires/go-proxyproto. It looks usable to me.

storj-gerrit[bot] commented 8 months ago

Change cmd/{gateway-mt,linksharing}: add config for PROXY protocol address mentions this issue.

storj-gerrit[bot] commented 7 months ago

Change pkg/auth: support PROXY protocol in authservice mentions this issue.