Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-6901

Hawtio security: Keycloak integration does not support files without file:// protocol

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • fuse-6.x-GA
    • Hawtio

      When try to secure Hawtio admin console by keycloak, there is an error in the log during Fuse startup:

      | KeycloakServlet | 282 - io.hawt.hawtio-web - 1.4.0.redhat-630278 | Couldn't find keycloak config file on location: /tmp/fuse/etc/keycloak-hawtio-client.json

      08:29:07,516 | WARN | ender-2-thread-1 | KeycloakServlet | 282 - io.hawt.hawtio-web - 1.4.0.redhat-630278 | Keycloak client configuration not found!

      The error is caused by this line (which expects URL instead of file path)
      https://github.com/hawtio/hawtio/blob/master/hawtio-system/src/main/java/io/hawt/web/keycloak/KeycloakServlet.java#L126

      This change is not backward compatible. It would be also nice to log the exception and don't hide it.

      Tested Fuse version: 6.3.0.redhat-278

            pantinor@redhat.com Paolo Antinori
            pdrozd1@redhat.com Pavel Drozd
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: