Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-6788

Elytron key-store with WrongPassword is replace with zero size file when I process "store" operation over CLI.

    XMLWordPrintable

Details

    • Hide
      • firefly.keystore which is attached copy to eap_home/standalone/data/cs.
      • run EAP server
        ./bin/standalone.sh
      • run CLI
        ./bin/jboss-cli.sh -c
        if applicaple add Elytron extension and Elytron subsystem and reload server
        /extension=org.wildfly.extension.elytron:add()
        /subsystem=elytron:add()
        reload
      • /subsystem=elytron/credential-store=credStore:add(uri="cr-store://test/cs/credentialstore.jceks?store.password=pass123;create.storage=true"
      • /subsystem=elytron/credential-store=credStore/alias=ffWithWrongPass:add(secret-value=ElytronWrongPass)
      • * reload is necessary to create key-store with wrong password (in this time, bug)
      • /subsystem=elytron/key-store=firefly:add(path=cs/firefly.keystore,relative-to=jboss.server.data.dir,type=JKS,credential-reference= {store=credStore,alias=ffWithWrongPass}

        )

      • /subsystem=elytron/key-store=firefly:store()
      Show
      firefly.keystore which is attached copy to eap_home/standalone/data/cs. run EAP server ./bin/standalone.sh run CLI ./bin/jboss-cli.sh -c if applicaple add Elytron extension and Elytron subsystem and reload server /extension=org.wildfly.extension.elytron:add() /subsystem=elytron:add() reload /subsystem=elytron/credential-store=credStore:add(uri="cr-store://test/cs/credentialstore.jceks?store.password=pass123;create.storage=true" /subsystem=elytron/credential-store=credStore/alias=ffWithWrongPass:add(secret-value=ElytronWrongPass) * reload is necessary to create key-store with wrong password (in this time, bug) /subsystem=elytron/key-store=firefly:add(path=cs/firefly.keystore,relative-to=jboss.server.data.dir,type=JKS,credential-reference= {store=credStore,alias=ffWithWrongPass} ) /subsystem=elytron/key-store=firefly:store()

    Description

      When I create elytron key-store with wrong password and execute store operation
      /subsystem=elytron/key-store=firefly:store()
      then the key-store file is replaced with zero size file.

      I can see this error message

      {
          "outcome" => "failed",
          "result" => undefined,
          "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.IllegalArgumentException: password can't be null",
          "rolled-back" => true
      }
      

      Attachments

        Issue Links

          Activity

            People

              darran.lofthouse@redhat.com Darran Lofthouse
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: