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

Authorization - Chapter 2: Configuring policy administrators

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

      See https://docs.google.com/document/d/1hzho44sCs1Y-m4UTy2kDuZg_0jm8LNJXruJDusAQ4aI/edit#heading=h.9wkl0zm0iw87

       

      Chapter 2: Configuring policy administrators

       

      Declare policy administrators to allow a certain limited number of authenticated users to configure RBAC policies by using the REST API or the Web UI, rather than editing the CSV file.

      The actual policies are defined in a separate CSV file and referenced in the app-config-rhdh ConfigMap.

       

      Prerequisites

      • You enabled an authentication provider.
      • You enabled the RBAC plugin.
      • You have administrative access to the OpenShift project or Kubernetes namespace where RHDH is running.

       

      Procedure

      1. To declare users as policy administrators, add the following permission attribute to the app-config-rhdh ConfigMap (At the same indentation level as the app and below the catalog attribute). Ensure that you added a valid authenticated user for the admin.users attribute:

       

      permission:

               enabled: true

               rbac:

                   admin:

                       users:

                           - name: user:default/rsriniva

       

      1. Sign out from the existing RHDH session and log in again using the GitHub ID of the declared policy administrator.
      1. Navigate to the Catalog page in RHDH. Note that the Create button is not visible. You are not allowed to create new components.
      2. Next, try navigating to the API page. The Register button is not visible. With RBAC enabled, most features are disabled by default. You need to explicitly enable permissions to resources in RHDH.

          There are no Sub-Tasks for this issue.

              ffloreth@redhat.com Fabrice Flore-Thébault
              ffloreth@redhat.com Fabrice Flore-Thébault
              RHIDP - Documentation
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: