Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3698 Ozone Non-Rolling upgrades
  3. HDDS-5138

Upgrade related RPC calls should be allowed only for admins

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      As far as I see any user can finalize upgrade (and I assume the same is true for preparation).

      bash-4.2$ kinit -kt /etc/security/keytabs/testuser.keytab testuser/scm
      bash-4.2$ ozone sh volume create /vol1
      PERMISSION_DENIED User testuser/scm@EXAMPLE.COM doesn't have CREATE 
      permission to access volume vol1 null null
      

      Failed as I am not an admin, but:

      bash-4.2$ ozone admin scm  finalizeupgrade
      Upgrade has already been finalized.
      Exiting...
      bash-4.2$
      

      Please confirm, but I think a quick isAdmin check is missing from all the related RPC endpoints.

      Attachments

        Activity

          People

            erose Ethan Rose
            elek Marton Elek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: