envoyproxy / envoyproxy/envoy

Envoy's basic_auth filter defaults the WWW-Authenticate: Basic realm value to the full request URL

Open
#46,940 0 comments 0 reactions 0 assignees View on GitHub
area/basic_auth bug
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 22h
Merged PRs (30d)
430

Description

*Description*:
Envoy's basic_auth filter defaults the WWW-Authenticate: Basic realm="..." value to the full request URL (scheme+host+path) when no realm is configured. Since SecurityPolicy.spec.basicAuth (v1alpha1) only exposes users and forwardUsernameHeader — no realm field — every distinct path under a protected route gets a different realm.

Contributor guide

Open the contributing guide

Research direction

Start by locating Envoy's basic_auth filter and the SecurityPolicy.spec.basicAuth handling described in the issue. Reproduce the WWW-Authenticate header on protected routes with different paths, then verify that an unconfigured realm no longer varies with the full request URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
authentication, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.