mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-08 23:02:40 -05:00
Undefined user agent #468
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cristhianwon on GitHub (Jul 12, 2025).
I have a problem from Komodo with OIDC, I have this IDP protected with a WAF and this block the request from komodo to OIDC because the request does not have a user agent.
A recommended protection from WAF is only accept request with defined user agent.
Now my solution is disable this protection from WAF but I recommend to add the user agent from http client in komodo.
@eleith commented on GitHub (Jul 15, 2025):
this would also help with general investigation and tuning.
for example, i'm seeing a call to
/application/o/komodo/jwks/and/application/o/komodo/.well-known/openid-configurationevery minute!the current hypothesis is that since the
userAgentis empty, it's coming from komodo.it's unclear how to turn this down as 1 minute doesn't correspond to any configurable interval (
MONITORING,RESOURCE_POLLandJWT_TTL)@eleith commented on GitHub (Aug 1, 2025):
i can confirm why and where this happens.
komodo spawns an oidc check every 60 seconds to keep the jwk refresh here:
118ae9b92c/bin/core/src/auth/oidc/client.rs (L43-L62)this was introduced in
3f767ed42e@eleith commented on GitHub (Aug 1, 2025):
setting the user agent might be a small change, according to the reqwest docs the following method:
118ae9b92c/bin/core/src/auth/oidc/mod.rs (L34-L42)could be modified to call something like
@cristhianwon commented on GitHub (Aug 1, 2025):
@eleith maybe the problem is with the reqwest lib where is missing the User-Agent header
118ae9b92c/bin/core/src/auth/oidc/mod.rs (L34-L42)@eleith commented on GitHub (Aug 1, 2025):
@cristhianwon you beat me to it.
my next question would be why is the oidc happening every 60s and if it could be tuned down or made configurable. but that might deserve it's own issue.
@cristhianwon commented on GitHub (Aug 1, 2025):
Yes @eleith , i think the configuration about the timing of oidc refresh should be handled in another issue.
@eleith commented on GitHub (Aug 1, 2025):
i've proposed a PR to resolve this issue and branched out my discussion to another issue.
@cristhianwon commented on GitHub (Aug 1, 2025):
thanks @eleith !