Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1764

[RBAC] More verbose log whenever a plugin does not have permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • RBAC Plugin
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Release Note Not Required
    • Release Note Not Required
    • RHDH Plugins 3260

      Description of problem:

      When adding a new plugin to be captured by the RBAC Backend and Frontend plugin, if there is no permissions attached to said plugin, we do not notify them with a not found error. This can make it difficult to troubleshoot if there is an issue with your plugin's permissions or with the way that they are being loaded in.

       

      You can see where we are returning undefined in the event that there is a not found error here.

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. Create a simple plugin with no permissions
      2. Enable the RBAC Frontend and Backend plugins
      3. Add the following to your app config
      permission:
        enabled: true
        rbac:
          pluginsWithPermission:
            - <plugin_id>
          admin:
            users:
              - name: user:default/<user-name> 

      Actual results:

      No information is logged if the permissions for a particular plugin could not be found

      Expected results:

      We should log that permissions were not found for a particular plugin

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              rh-ee-dzemanov Dominika Zemanovicova
              rh-ee-pknight Patrick Knight
              RHIDP - Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: