Is it possible to ignore OIDCXForwardedHeaders mismatch warnings? #1333
-
Hi all, It seems we have an issue where https://github.com/OpenIDC/mod_auth_openidc/blob/v2.4.17.1/src/cfg/cfg.c#L445-L455 For context, we run mod_auth_openidc in conjunction with Open OnDemand ("OOD"). Httpd is at the edge of the network, so there is no proxy in front. Therefore, one would assume the However, OOD is using a Lua module in httpd to set up its own proxy settings, and will inject request headers while doing this. OOD is primarily architected around proxying user-specific requests to per-user Nginx servers via unix sockets on the same host. See the relevant Lua line here: https://github.com/OSC/ondemand/blob/v4.0.5/mod_ood_proxy/lib/ood/proxy.lua#L23 Also see the OOD https://github.com/OSC/ondemand/blob/v4.0.5/ood-portal-generator/templates/ood-portal.conf.erb I tried reading debug logs from mod_auth_openidc a while ago, and it seems like httpd is invoking mod_auth_openidc multiple times during the same request. Possibly due to the multiple stages of processing ( The fact that mod_ood_proxy will add the Around 35% of our httpd log lines from the Open OnDemand VirtualHost consist of these warnings, which feels a bit wasteful. I.e.:
See my issue at the OOD project: OSC/ondemand#3880 Thanks in advance! -- |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
support for suppressing those warnings was just added in a96e0f1; you'd use e.g.: SetEnvIfExpr true OIDC_CHECK_X_FORWARDED_HDR_LOG_DISABLE=X-Forwarded-Proto |
Beta Was this translation helpful? Give feedback.
-
this is included in release 2.4.17.2 now: https://github.com/OpenIDC/mod_auth_openidc/releases/tag/v2.4.17.2 |
Beta Was this translation helpful? Give feedback.
support for suppressing those warnings was just added in a96e0f1; you'd use e.g.: