Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-1202

Allow access to the "Edit machine configuration" section only if the user has the rights to do so

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • Core UI
    • OCM UI Sprint 247, OCM UI Core Sprint 248, OCM Core Sprint 249

      Currently if a user tries to edit the machine configuration (and PIDs limit) of a cluster that he doesn't own, when trying to save he'll get a "403 Forbidden access to create resource".

      We should do better and disable the "Edit machine configuration" button if the user doesn't have the rights to edit the configuration.

      It's possible to check the users permissions related to the machine configuration by calling "api/authorizations/v1/self_resource_review" and passing "ClusterKubeletConfig" as resource type. See this MR for more details.

       

      Acceptance criteria

      • Fetch the rights related to the kubelet config
      • Disable the Edit machine configuration button if the write permission is absent

              robertoemanuel Roberto Emanuel
              robertoemanuel Roberto Emanuel
              LAKSHMI SHIVANTHI AMARACHINTHA LAKSHMI SHIVANTHI AMARACHINTHA
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: