[JBoss JIRA] (ELY-1124) WildFly Elytron Tool, Vault commands with wrongly filled path to vaults should fail.
by Hynek Švábek (JIRA)
Hynek Švábek created ELY-1124:
---------------------------------
Summary: WildFly Elytron Tool, Vault commands with wrongly filled path to vaults should fail.
Key: ELY-1124
URL: https://issues.jboss.org/browse/ELY-1124
Project: WildFly Elytron
Issue Type: Bug
Reporter: Hynek Švábek
Assignee: Darran Lofthouse
Priority: Critical
Vault commands with wrongly filled path to vaults should fail.
Converted credential store storage file is empty but it is very confusing to see successful message and created credential storage file.
The user might mistakenly believe that the VAULT was empty.
*How to reproduce*
Download *server.store* attachment to same location as *wildfly-elytron-tool.jar* file and then run these commands
VAULT.dat is located in path which is given by --enc-dir option - we set it to wrong value.
{code}
java -jar wildfly-elytron-tool.jar vault --enc-dir doesntMatter --keystore server.store --keystore-password secretsecret --location converted001.store --alias jboss
Vault (enc-dir="doesntMatter";keystore="server.store") converted to credential store "converted001.store"
{code}
It is created empty converted001.store
We can omit --location option. In this case is created empty converted file with default name "converted-vault.cr-store" in path given by --enc-dir option.
{code}
java -jar wildfly-elytron-tool.jar vault --enc-dir doesntMatter --keystore server.store --keystore-password secretsecret --alias jboss
Vault (enc-dir="doesntMatter";keystore="server.store") converted to credential store "doesntMatter/converted-vault.cr-store"
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (ELY-1124) WildFly Elytron Tool, Vault commands with wrongly filled path to vaults should fail.
by Hynek Švábek (JIRA)
[ https://issues.jboss.org/browse/ELY-1124?page=com.atlassian.jira.plugin.s... ]
Hynek Švábek updated ELY-1124:
------------------------------
Component/s: Credential Store
> WildFly Elytron Tool, Vault commands with wrongly filled path to vaults should fail.
> ------------------------------------------------------------------------------------
>
> Key: ELY-1124
> URL: https://issues.jboss.org/browse/ELY-1124
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Credential Store
> Reporter: Hynek Švábek
> Assignee: Darran Lofthouse
> Priority: Critical
>
> Vault commands with wrongly filled path to vaults should fail.
> Converted credential store storage file is empty but it is very confusing to see successful message and created credential storage file.
> The user might mistakenly believe that the VAULT was empty.
> *How to reproduce*
> Download *server.store* attachment to same location as *wildfly-elytron-tool.jar* file and then run these commands
> VAULT.dat is located in path which is given by --enc-dir option - we set it to wrong value.
> {code}
> java -jar wildfly-elytron-tool.jar vault --enc-dir doesntMatter --keystore server.store --keystore-password secretsecret --location converted001.store --alias jboss
> Vault (enc-dir="doesntMatter";keystore="server.store") converted to credential store "converted001.store"
> {code}
> It is created empty converted001.store
> We can omit --location option. In this case is created empty converted file with default name "converted-vault.cr-store" in path given by --enc-dir option.
> {code}
> java -jar wildfly-elytron-tool.jar vault --enc-dir doesntMatter --keystore server.store --keystore-password secretsecret --alias jboss
> Vault (enc-dir="doesntMatter";keystore="server.store") converted to credential store "doesntMatter/converted-vault.cr-store"
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (WFLY-8686) New tests for Elytron realms and roles in AS TS fail on Windows
by Josef Cacek (JIRA)
Josef Cacek created WFLY-8686:
---------------------------------
Summary: New tests for Elytron realms and roles in AS TS fail on Windows
Key: WFLY-8686
URL: https://issues.jboss.org/browse/WFLY-8686
Project: WildFly
Issue Type: Bug
Components: Test Suite
Reporter: Josef Cacek
New Elytron tests in AS TS fail on Windows. Some of the issues can be caused by wrong path escaping in CLI commands.
https://ci.wildfly.org/viewLog.html?buildId=56770&tab=buildResultsDiv&bui...
List for [~olukas]:
org.wildfly.test.integration.elytron.realm.AggregateRealmTestCase
org.wildfly.test.integration.elytron.realm.LdapRealmTestCase
org.wildfly.test.integration.elytron.realmmappers.ConstantRealmMapperTestCase
org.wildfly.test.integration.elytron.realmmappers.MappedRegexRealmMapperTestCase
org.wildfly.test.integration.elytron.realmmappers.SimpleRegexRealmMapperTestCase
org.wildfly.test.integration.elytron.roledecoders.SimpleRoleDecoderTestCase
org.wildfly.test.integration.elytron.rolemappers.AddPrefixRoleMapperTestCase
org.wildfly.test.integration.elytron.rolemappers.AddSuffixRoleMapperTestCase
org.wildfly.test.integration.elytron.rolemappers.AggregateRoleMapperTestCase
org.wildfly.test.integration.elytron.rolemappers.ConstantRoleMapperTestCase
org.wildfly.test.integration.elytron.rolemappers.LogicalRoleMapperTestCase
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (WFLY-8686) New tests for Elytron realms and roles in AS TS fail on Windows
by Josef Cacek (JIRA)
[ https://issues.jboss.org/browse/WFLY-8686?page=com.atlassian.jira.plugin.... ]
Josef Cacek reassigned WFLY-8686:
---------------------------------
Assignee: Ondrej Lukas
> New tests for Elytron realms and roles in AS TS fail on Windows
> ---------------------------------------------------------------
>
> Key: WFLY-8686
> URL: https://issues.jboss.org/browse/WFLY-8686
> Project: WildFly
> Issue Type: Bug
> Components: Test Suite
> Reporter: Josef Cacek
> Assignee: Ondrej Lukas
>
> New Elytron tests in AS TS fail on Windows. Some of the issues can be caused by wrong path escaping in CLI commands.
> https://ci.wildfly.org/viewLog.html?buildId=56770&tab=buildResultsDiv&bui...
> List for [~olukas]:
> org.wildfly.test.integration.elytron.realm.AggregateRealmTestCase
> org.wildfly.test.integration.elytron.realm.LdapRealmTestCase
> org.wildfly.test.integration.elytron.realmmappers.ConstantRealmMapperTestCase
> org.wildfly.test.integration.elytron.realmmappers.MappedRegexRealmMapperTestCase
> org.wildfly.test.integration.elytron.realmmappers.SimpleRegexRealmMapperTestCase
> org.wildfly.test.integration.elytron.roledecoders.SimpleRoleDecoderTestCase
> org.wildfly.test.integration.elytron.rolemappers.AddPrefixRoleMapperTestCase
> org.wildfly.test.integration.elytron.rolemappers.AddSuffixRoleMapperTestCase
> org.wildfly.test.integration.elytron.rolemappers.AggregateRoleMapperTestCase
> org.wildfly.test.integration.elytron.rolemappers.ConstantRoleMapperTestCase
> org.wildfly.test.integration.elytron.rolemappers.LogicalRoleMapperTestCase
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (WFLY-8661) Transaction is marked disassociated from application thread when transaction manager reaper thread suspends transaction
by Michael Musgrove (JIRA)
[ https://issues.jboss.org/browse/WFLY-8661?page=com.atlassian.jira.plugin.... ]
Michael Musgrove commented on WFLY-8661:
----------------------------------------
[~smarlow] I do "agree that the org.jboss.tm.listener.TransactionListenerRegistry SPI contract ensured that the TransactionListener is only called from the application thread and never the reaper thread?"
The reaper only marks the transaction for rollback only so will never produce listener notifications.
> Transaction is marked disassociated from application thread when transaction manager reaper thread suspends transaction
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-8661
> URL: https://issues.jboss.org/browse/WFLY-8661
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 11.0.0.Alpha1
> Reporter: Scott Marlow
> Assignee: Scott Marlow
>
> I created a pull request to enable the TxTimeoutTestCase ([JBEAP-10550] + [WFLY-5319]) which required a test change, however, the test is failing for me locally, due to org.wildfly.transaction.client.LocalTransaction.suspend() calling notifyAssociationListeners(false) in the TM reaper "tx timeout" thread, which is wrong, as the app client thread may still be associated with the same transaction.
> [https://gist.github.com/scottmarlow/1ae4a4abe98851b3fe6b1e602ba273d7] shows another reaper thread association call being made, that shouldn't be.
> I'm not sure of how the Narayana org.jboss.tm.listener.TransactionListenerRegistry SPI, internally ensured that the reaper thread didn't incorrectly perform association/disassociation but what we have now in WildFly (appears) to be different.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (ELY-1123) WildFly Elytron Tool, Converted storage file overwrites existing file on filesystem.
by Hynek Švábek (JIRA)
Hynek Švábek created ELY-1123:
---------------------------------
Summary: WildFly Elytron Tool, Converted storage file overwrites existing file on filesystem.
Key: ELY-1123
URL: https://issues.jboss.org/browse/ELY-1123
Project: WildFly Elytron
Issue Type: Bug
Reporter: Hynek Švábek
Assignee: Darran Lofthouse
Converted storage file overwrites existing file on filesystem.
Expected behaviour is error or some option which can enable overwriting (flag option?).
*How to reproduce:*
download all attachments to same location as *wildfly-elytron-tool.jar* file and then run this command twice and the each one ends with success.
{code}
java -jar wildfly-elytron-tool.jar vault --enc-dir . --keystore server.store --keystore-password secretsecret --location converted001.store --alias jboss --summary
Vault (enc-dir=".";keystore="server.store") converted to credential store "converted001.store"
Vault Conversion summary:
--------------------------------------
Vault Conversion Successful
CLI command to add new credential store:
/subsystem=elytron/credential-store=cs:add(relative-to=jboss.server.data.dir,location="converted001.store",implementation-properties={},credential-reference={clear-text="MASK-2hKo56F1a3jYGnJwhPmiF5;12345678;34"})
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (ELY-1123) WildFly Elytron Tool, Converted storage file overwrites existing file on filesystem.
by Hynek Švábek (JIRA)
[ https://issues.jboss.org/browse/ELY-1123?page=com.atlassian.jira.plugin.s... ]
Hynek Švábek updated ELY-1123:
------------------------------
Component/s: Credential Store
> WildFly Elytron Tool, Converted storage file overwrites existing file on filesystem.
> ------------------------------------------------------------------------------------
>
> Key: ELY-1123
> URL: https://issues.jboss.org/browse/ELY-1123
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Credential Store
> Reporter: Hynek Švábek
> Assignee: Darran Lofthouse
>
> Converted storage file overwrites existing file on filesystem.
> Expected behaviour is error or some option which can enable overwriting (flag option?).
> *How to reproduce:*
> download all attachments to same location as *wildfly-elytron-tool.jar* file and then run this command twice and the each one ends with success.
> {code}
> java -jar wildfly-elytron-tool.jar vault --enc-dir . --keystore server.store --keystore-password secretsecret --location converted001.store --alias jboss --summary
> Vault (enc-dir=".";keystore="server.store") converted to credential store "converted001.store"
> Vault Conversion summary:
> --------------------------------------
> Vault Conversion Successful
> CLI command to add new credential store:
> /subsystem=elytron/credential-store=cs:add(relative-to=jboss.server.data.dir,location="converted001.store",implementation-properties={},credential-reference={clear-text="MASK-2hKo56F1a3jYGnJwhPmiF5;12345678;34"})
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years