Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-708

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 1.1.0.Beta11
    • KeyStores
    • None
    • 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()

      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 replace 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
      }
      

            Unassigned Unassigned
            hsvabek_jira Hynek Švábek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: