Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-276

whoami operation failed when rbac enabled but no roles assigned

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 1.0.0.Alpha14
    • None
    • CLI, Management
    • None

      Need to double check this is either the CLI making a call in addition to the whoami op and that call is failing or something being accessed by whoami is causing the failure.

      Here is the failure for a user with no roles: -

      [standalone@localhost:9990 /] [darranl@localhost bin]$ ./jboss-cli.sh -c --no-local-auth
      Authenticating against security realm: ManagementRealm
      Username: UserTwo
      Password: 
      [standalone@localhost:9990 /] :whoami
      {
          "outcome" => "success",
          "result" => {"identity" => {
              "username" => "UserTwo",
              "realm" => "ManagementRealm"
          }}
      }
      [standalone@localhost:9990 /] :whoami(verbose=true)
      Failed to get the list of the operation properties: "WFLYCTL0313: Unauthorized to execute operation 'read-operation-description' for resource '[]' -- "WFLYCTL0332: Permission denied""
      [standalone@localhost:9990 /] 
      

            darran.lofthouse@redhat.com Darran Lofthouse
            darran.lofthouse@redhat.com Darran Lofthouse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: