Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4971

admin permission is added to first user in users.propertie automatically by fabric:create command

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: Fabric8 v1
    • Labels:
      None
    • Sprint:
      6.3 Sprint 2 (1-Feb - 26-Feb)
    • Steps to Reproduce:
      Hide

      1. Add users in users.properties.
      $JBOSS_FUSE/etc/users.properties

      #admin=admin,admin,manager,viewer,Monitor, Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser
      user1=user1,viewer
      user2=user2,viewer

      2. Execute fabric:create command.

      $./fuse
      JBossFuse:karaf@root> fabric:create --wait-for-provisioning

      3. Confirm permission using console.
      http://localhost:8181/hawtio/fabric/clusters/fabric/authentication/users

       user2={CRYPT}7e58d63b60197ceb55a1c487989a3720{CRYPT},viewer user1={CRYPT}24c9e15e52afc47c225b757e7bee1f9d{CRYPT},_g_:admin,viewer _g_\:admin=admin,admin,manager,viewer,Operator,Maintainer,Deployer,Auditor,Administrator,SuperUser
      
      Show
      1. Add users in users.properties. $JBOSS_FUSE/etc/users.properties #admin=admin,admin,manager,viewer,Monitor, Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser user1=user1,viewer user2=user2,viewer 2. Execute fabric:create command. $./fuse JBossFuse:karaf@root> fabric:create --wait-for-provisioning 3. Confirm permission using console. http://localhost:8181/hawtio/fabric/clusters/fabric/authentication/users user2={CRYPT}7e58d63b60197ceb55a1c487989a3720{CRYPT},viewer user1={CRYPT}24c9e15e52afc47c225b757e7bee1f9d{CRYPT},_g_:admin,viewer _g_\:admin=admin,admin,manager,viewer,Operator,Maintainer,Deployer,Auditor,Administrator,SuperUser
    • Workaround Description:
      Hide

      Execute fabric:create command with some user options(--new-user AdminUser --new-user-password AdminPass --new-user-role Administrator) if you need to set admin user expressly.

      Show
      Execute fabric:create command with some user options(--new-user AdminUser --new-user-password AdminPass --new-user-role Administrator) if you need to set admin user expressly.

      Description

      When add users in users.propertie and execute fabric:create command, the admin permission is added to first user automatically.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                oscerd Andrea Cosentino
                Reporter:
                enagai Eiichi Nagai
                Tester:
                Roman Jakubco
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: