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

Elytron, log jdbc-realm key-mapper processing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.2.0.GA.CR1
    • 7.1.0.CR4
    • Security
    • None

      Customer impact: Low. Without additional logs it can be difficult to troubleshoot jdbc-realm + bcrypt mapping solution.

      User reported problem with getting work jdbc_realm with bcrypt mapper. He had configured org.wildfly.security to log TRACE messages, but log does not provide any useful information regarding mapping password from DB.

      In this case seems problem was in mixing base64 vs. modular crypt format.

      Looking into PasswordKeyMapper there is a lot of logic and lot of steps which can get wrong. So logging some TRACE messages can hint user what is going on and what went wrong.

      Also I have noticed there is unhandled exception. Please at least log some TRACE message.

      PasswordKeyMapper.java
      } catch (InvalidKeySpecException e) {
      	// fall out (unlikely but possible)
      }
      

      [1] https://developer.jboss.org/message/977727

              rhn-support-ivassile Ilia Vassilev
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: