Skip to content

Commit

Permalink
Add envSubst support for basic password authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
bartjkdp committed Oct 5, 2023
1 parent 5976650 commit a08b20d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/filter-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ func main() {
transport := &http.Transport{TLSClientConfig: tlsConfig}

if backend.Auth.Basic.Username != "" && backend.Auth.Basic.Password != "" {
backendRequest.SetBasicAuth(backend.Auth.Basic.Username, backend.Auth.Basic.Password)
parsedPassword := utils.EnvSubst(backend.Auth.Basic.Password)
backendRequest.SetBasicAuth(backend.Auth.Basic.Username, parsedPassword)
}

for headerKey, headerValue := range backend.Auth.Header {
Expand Down

0 comments on commit a08b20d

Please sign in to comment.