Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3933

Restrict policy creation / updation with duplicate policy items

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Ranger
    • None

    Description

      A Ranger policy can be updated with multiple policy items which are duplicatesĀ 
      of each other.
      Even if there are thousands of duplicate policy items, the policy update is successful
      and when the policy obj is retrieved, the policy object contains all the duplicate
      policy items.
      I tried to update a policy with 2000 policy items through API and theĀ 
      policy update was successful. But when I tried to open the policy on the UI,
      the page becomes unresponsive and opens only after a lot of retries.
      All the policy items are rendered on the UI, and since they are duplicates of each other,
      it would not be good user experience.
      Since the policy object also contains the duplicate policy items,
      this means that all the policy items would also be stored in the db, even if they are duplicates.

      Ideally, if there are duplicate policy items in the request,
      1. Either the request should be denied
      2. The policy must be updated but with only unique policy items and it must
      ignore duplicate policy items

      Attachments

        Activity

          People

            Unassigned Unassigned
            abhishek.patil Abhishek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: