[JBoss JIRA] (ELY-1435) Elytron BCrypt Mapper Not Working with jBCrypt
by David Lloyd (JIRA)
[ https://issues.jboss.org/browse/ELY-1435?page=com.atlassian.jira.plugin.s... ]
David Lloyd commented on ELY-1435:
----------------------------------
Since it's not 100% clear what code generated what piece, I"ll just point out here that modular crypt (i.e. the password format which starts with "$2a$...") does not use the standard base64 alphabet; it uses a special mod-crypt one. So if the above example was created similarly to the example code in the forum thread, it's never going to validate (with or without the invalid padding characters).
To encode an Elytron password into its modular-crypt form, do this:
{code:java}
import org.wildfly.security.password.util.ModularCrypt;
// ... and inside your method ...
Password p = ...;
String str = ModularCrypt.encodeAsString(p);
{code}
> Elytron BCrypt Mapper Not Working with jBCrypt
> ----------------------------------------------
>
> Key: ELY-1435
> URL: https://issues.jboss.org/browse/ELY-1435
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Passwords
> Affects Versions: 1.0.0.Final
> Environment: Wildfly 11.0.0.Final
> Windows Server 2008
> JDK 9.0.1
> Reporter: Paul Carroll
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (WFLY-9526) Mixed domain tests are launching legacy slaves using current jboss-modules.jar
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFLY-9526?page=com.atlassian.jira.plugin.... ]
Brian Stansberry closed WFLY-9526.
----------------------------------
Resolution: Rejected
Wrong; totally wrong. If baseConfig is supplied, it is used, so all its state is retained.
> Mixed domain tests are launching legacy slaves using current jboss-modules.jar
> ------------------------------------------------------------------------------
>
> Key: WFLY-9526
> URL: https://issues.jboss.org/browse/WFLY-9526
> Project: WildFly
> Issue Type: Bug
> Components: Domain Management, Test Suite
> Reporter: Brian Stansberry
> Priority: Minor
>
> DomainTestSupport.Configuration.getSlaveConfiguration(String hostConfigPath, String testName, String hostName, WildFlyManagedConfiguration baseConfig, boolean readOnlyHost, boolean debug) drops any configured jboss.home from the passed in baseConfig, which results in the default one being used. That's fine for the normal testsuite/domain in wildfly core and full wildfly, as all the domain processes in those test modules use the same installation, just with different writable dirs per HC. But in mixed domain it means the legacy slaves are using jboss-modules.jar from the current version, not their own.
> This is a minor bug as it seems to not cause any harm, but it could blow up somehow if something changes, and regardless it's not right to run a legacy slave that's not really running legacy software.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (WFLY-9526) Mixed domain tests are launching legacy slaves using current jboss-modules.jar
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFLY-9526?page=com.atlassian.jira.plugin.... ]
Brian Stansberry commented on WFLY-9526:
----------------------------------------
A proposed fix for WFLY-9325 would result in the legacy jboss-modules.jar not being available for mixed-domain (since it would skip extracting anything in the legacy zip's bin folder to disk.) If we fix this and that's in place, we can just change to not extracting bin/client.
> Mixed domain tests are launching legacy slaves using current jboss-modules.jar
> ------------------------------------------------------------------------------
>
> Key: WFLY-9526
> URL: https://issues.jboss.org/browse/WFLY-9526
> Project: WildFly
> Issue Type: Bug
> Components: Domain Management, Test Suite
> Reporter: Brian Stansberry
> Priority: Minor
>
> DomainTestSupport.Configuration.getSlaveConfiguration(String hostConfigPath, String testName, String hostName, WildFlyManagedConfiguration baseConfig, boolean readOnlyHost, boolean debug) drops any configured jboss.home from the passed in baseConfig, which results in the default one being used. That's fine for the normal testsuite/domain in wildfly core and full wildfly, as all the domain processes in those test modules use the same installation, just with different writable dirs per HC. But in mixed domain it means the legacy slaves are using jboss-modules.jar from the current version, not their own.
> This is a minor bug as it seems to not cause any harm, but it could blow up somehow if something changes, and regardless it's not right to run a legacy slave that's not really running legacy software.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months