Trace keycloak calls
See original GitHub issueDescription
In Quarkus we can log all requests using opentracing feature. However it is not the case about requests made by the authentication mechanism using keycloak. It would be nice to add them in opentracing because keycloak can be a point of failure. Also it may be useful to collect response time to analyze them afterwards.
Implementation ideas
quarkus-keycloak-authorization
used VertX VertxHttpFacade
to make calls. VertX web seems to be also used by rest endpoint. So maybe that we could add TraceId, SpanId into VertxHttpFacade ? (It is a suggestion) by using the same traceId used from the rest call.
Some implementations on how to add trace feature for Vertx web can be found in this project:
<dependency>
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-vertx-web</artifactId>
<version>1.0.0</version>
</dependency>
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Configuring logging - Keycloak
More detailed information for debugging purposes, such as database logs. Higher frequency. TRACE. Most detailed debugging information. Very high frequency.
Read more >TRACE logging for troubleshooting Keycloak/RH-SSO issues
When TRACE logging level in keycloak is enabled, the standalone.xml (or domain.xml) should look like the following for the org.keycloak ...
Read more >Method to monitor requests that come towards Keycloak server
I'm trying to understand the functionalities of Keycloak and trying to find a way to monitor request flows (like ...
Read more >How to enable OpenTracing in Keycloak 10.x - gists · GitHub
Enable opentracing in Keycloak ... The following jboss-cli script creates the necessary bits. Copy standalone.xml to standalone-tracing.xml. Run via bin/jboss-cli ...
Read more >Keycloak Events Logging - Niko Köbler
Keycloak Events Logging ... Keycloak has this feature of “events”. There are two kinds of events: login events and admin events. Login events...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t see any problems with this, but obviously things like tokens and other credentials should not be included in the data.
Hi @pedroigor yeah, well, I was again being a bit paranoid here 😃, suggesting that exposing the KC traces to a Quarkus endpoint user is the info which is arguably sensitive - shows the traget address of the OIDC server which is outside of the scope of tracing the application specific calls through the distributed system. That said, if it is configurable (ex, block exposing these traces if needed) then may be it is all right. CC @stuartwdouglas as well