Envoy's basic_auth filter defaults the WWW-Authenticate: Basic realm value to the full request URL
Open
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
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