Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14009

Download log file from Widfly Console forbidden with Keycloak setup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 17.0.1.Final
    • Management, Web Console
    • None

    Description

      We have a WildFly instance setup with KeyCloak protecting console/management interface.
       
      In menu 'Runtime > Log files' there is 2 places to download those. In context menu of the log entry or in toolbar of log entry viewer.
       
      Both options can't download log file because no bearer token is send in request. Download request is a simple link html tag like this one: 

      <a data-element="download" href="https://server.none.com/management/subsystem/logging/log-file/server.log?operation=attribute&name=stream&useStreamAsResponse" class="btn btn-default clickable" data-toggle="tooltip" data-container="body" data-placement="top" data-animation="false" title="" data-original-title="Download" download="server.log"><i class="fa fa-download"></i></a>

       
       

      Keycloak steps: https://docs.jboss.org/author/display/WFLY/Protecting%20Wildfly%20Adminstration%20Console%20With%20Keycloak.html

      Attachments

        Issue Links

          Activity

            People

              mpetrov@redhat.com Michal Petrov
              ceweiler Claudio Weiler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: