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

Obtain password from external source (CMD, EXT) doesn't work on Windows.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • Security
    • None

    Description

      Obtain password from external source (CMD, EXT) doesn't work on Windows.

      Try to create new CS which obtains password from external source:

      /subsystem=elytron/credential-store=myCredStore:add(uri="cr-store://test/myCredStore.jceks?create=true", credential-reference={clear-text="{CMD}C:\path\to\scrit\pass.bat,VerySecretPassword", type=COMMAND}, relative-to=jboss.server.config.dir)
      

      pass.bat file contains only this

      echo %1
      

      Because of https://issues.jboss.org/browse/JBEAP-9211 you must do this extra step:
      Add new alias to CS -> JCEKS file is created

      Please try it open directly with pass "VerySecretPassword" -> it doesn't work on Windows.

      In my opinion there is problem with back slashes in script path.
      https://github.com/wildfly/wildfly-core/blob/3.0.0.Alpha22/controller/src/main/java/org/jboss/as/controller/security/CredentialReference.java#L198

      Because when I add there back slashed to path then it works.

      Attachments

        Issue Links

          Activity

            People

              jkalina@redhat.com Jan Kalina (Inactive)
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: