envoy icon indicating copy to clipboard operation
envoy copied to clipboard

Add User-Agent to jwks http requests

Open yerkulees opened this issue 1 year ago • 1 comments

Title: Add User-Agent to jwks http requests

Description: Requests to get the jwks url fail because the requests lack a user-agent header. This is a requirement from the IDP. I'm currently using Envoy Gateway in EKS.

The below request fails, I'd like to add a user-agent to get that working.

[2024-08-21 22:46:23.522][1][debug][router] [source/common/router/router.cc:750] [Tags: "ConnectionId":"0","StreamId":"17207847609171885090"] router decoding headers:
':path', '/path/oauth/jwks'
':authority', 'auth.url.dev'
':method', 'GET'
':scheme', 'http'
'x-envoy-internal', 'true'
'x-forwarded-for', '10.100.4.34'
'x-envoy-expected-rq-timeout-ms', '10000'

yerkulees avatar Aug 21 '24 23:08 yerkulees

cc @tyxia as code owner

KBaichoo avatar Aug 23 '24 20:08 KBaichoo

I guess I can work on this issue @KBaichoo is this issue still open

Athishpranav2003 avatar Aug 30 '24 05:08 Athishpranav2003

Incase of programs what should we mention in the UA string? Some generic browser UA string or the go library we are using?

Athishpranav2003 avatar Aug 30 '24 05:08 Athishpranav2003

For my case, the generic go browser UA would work.

Thank you for your time.

yerkulees avatar Aug 30 '24 13:08 yerkulees

@Athishpranav2003 I think it is still open. Your help/contribution would be appreciated. Thanks!

tyxia avatar Sep 05 '24 02:09 tyxia

I will work on it this week ✌️

Athishpranav2003 avatar Sep 05 '24 02:09 Athishpranav2003

@KBaichoo @tyxia could you guys please check this. I am not sure how i can test it.

Athishpranav2003 avatar Sep 05 '24 05:09 Athishpranav2003