Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-9305

rbac-backend plugin fails to load conditional yaml with extra delimiter

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 1.9.0
    • None
    • RBAC Plugin
    • None

      Bug description:

      rbac-backend plugin fails to load conditional yaml with extra delimiter. For example

      ```

      result: CONDITIONAL
      roleEntityRef: 'role:default/test-2'
      pluginId: catalog
      resourceType: catalog-entity
      permissionMapping:
        - update
      conditions:
        rule: IS_ENTITY_OWNER
        resourceType: catalog-entity
        params:
          claims:
            - 'group:default/team-a'

      result: CONDITIONAL
      roleEntityRef: 'role:default/test-3'
      pluginId: catalog
      resourceType: catalog-entity
      permissionMapping:
        - read
        - delete
      conditions:
        rule: IS_ENTITY_OWNER
        resourceType: catalog-entity
        params:
          claims:
            - 'group:default/team-a'
            - 'group:default/team-b'

      ```

              oandriie Aleksander Andriienko
              oandriie Aleksander Andriienko
              RHIDP - Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: