envoyproxy / envoy

Cloud-native high-performance edge/middle/service proxy
https://www.envoyproxy.io
Apache License 2.0
24.53k stars 4.73k forks source link

BasicAuth HTTP filter: emit metadata containing username #34797

Open zhaohuabing opened 2 months ago

zhaohuabing commented 2 months ago

Title: Emit metadata with username after successfully authenticated

Description: Once a request has been successfully authenticated using the BasicAuth filter, emit metadata containing username. The username can be used by the subsequent filters, such as the RBAC filter for authz.

tyxia commented 2 months ago

@zhaohuabing Side note: Please add BasicAuth in https://github.com/envoyproxy/envoy/blob/main/CODEOWNERS

Looks like you and @wbpcode are the expert in this filter

wbpcode commented 2 months ago

SGTM. :)