Skip to content

Conversation

zaharidichev
Copy link
Member

This change removes the authority label on inbound HTTP requests.

The label is derived from the Host headers on inbound HTTP requests. This means
that the presence of this label can be exploited by a malicious client in order to produce
unbounded increase in the cardinality of the metrics reported in the proxy by sending
a large amount of HTTP requests with random Host headers.

Signed-off-by: Zahari Dichev [email protected]

@zaharidichev zaharidichev marked this pull request as ready for review January 23, 2025 08:32
@zaharidichev zaharidichev requested a review from a team as a code owner January 23, 2025 08:32
@olix0r olix0r enabled auto-merge (squash) January 24, 2025 16:50
@olix0r olix0r merged commit 3ab83ed into main Jan 24, 2025
15 checks passed
@olix0r olix0r deleted the zd/remove-inbound-authority-label branch January 24, 2025 16:50
olix0r added a commit that referenced this pull request Mar 31, 2025
olix0r added a commit that referenced this pull request Apr 1, 2025
In #3547, we removed unsafe authority labels. This was a
breaking change, since the behavior was considered unsafe.

To support a graceful migration, this change adds an environment configuration,
`LINKERD2_PROXY_INBOUND_AUTHORITY_LABELS=unsafe`, that reverts to the prior
behavior.

It may be configured in linkerd2 via the proxy.additionalEnv helm value.
olix0r added a commit that referenced this pull request Apr 1, 2025
In #3547, we removed unsafe authority labels. This was a
breaking change, since the behavior was considered unsafe.

To support a graceful migration, this change adds an environment configuration,
`LINKERD2_PROXY_INBOUND_AUTHORITY_LABELS=unsafe`, that reverts to the prior
behavior.

It may be configured in linkerd2 via the proxy.additionalEnv helm value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants