[JBoss JIRA] (WFCORE-2691) Elytron modifiable realms should show existing identities in subsystem
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/WFCORE-2691?page=com.atlassian.jira.plugi... ]
Jan Kalina commented on WFCORE-2691:
------------------------------------
Rewriting of key-stores in WFCORE-2737
> Elytron modifiable realms should show existing identities in subsystem
> ----------------------------------------------------------------------
>
> Key: WFCORE-2691
> URL: https://issues.jboss.org/browse/WFCORE-2691
> Project: WildFly Core
> Issue Type: Bug
> Components: Security
> Affects Versions: 3.0.0.Beta15
> Reporter: Jan Kalina
> Assignee: Jan Kalina
> Priority: Blocker
> Labels: filesystem-realm, security-realm
>
> Elytron {{filesystem-realm}} should load existing identities from file system. The steps to reproduce results in:
> {noformat}
> [standalone@localhost:9990 /] /subsystem=elytron/filesystem-realm=realm/identity=user:read-identity
> {
> "outcome" => "failed",
> "failure-description" => "WFLYCTL0216: Management resource '[
> (\"subsystem\" => \"elytron\"),
> (\"filesystem-realm\" => \"realm\"),
> (\"identity\" => \"user\")
> ]' not found",
> "rolled-back" => true
> }
> [standalone@localhost:9990 /] /subsystem=elytron/filesystem-realm=realm/identity=user:add
> {
> "outcome" => "failed",
> "failure-description" => "WFLYELY01000: Identity with name [user] already exists.",
> "rolled-back" => true
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months
[JBoss JIRA] (ELY-923) Elytron caching-realm backed by ldap-realm should avoid hitting LDAP for a cache hit
by Ondrej Kotek (JIRA)
[ https://issues.jboss.org/browse/ELY-923?page=com.atlassian.jira.plugin.sy... ]
Ondrej Kotek commented on ELY-923:
----------------------------------
[~honza889], could you move this to resolved please?
> Elytron caching-realm backed by ldap-realm should avoid hitting LDAP for a cache hit
> ------------------------------------------------------------------------------------
>
> Key: ELY-923
> URL: https://issues.jboss.org/browse/ELY-923
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Realms
> Affects Versions: 1.1.0.Beta21
> Reporter: Ondrej Kotek
> Assignee: Jan Kalina
> Priority: Blocker
> Fix For: 1.1.0.Beta28
>
>
> Elytron {{caching-realm}} backed by {{ldap-realm}} provides caching for identity objects but not for related credentials and attributes. This is currently due to design of {{ldap-realm}} (like in case of {{filesystem-realm}}, see ELY-915).
> Credentials and attributes should not be loaded from LDAP for a cache hit.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months
[JBoss JIRA] (WFCORE-13) End users can call non-published management API operations
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFCORE-13?page=com.atlassian.jira.plugin.... ]
Tomaz Cerar commented on WFCORE-13:
-----------------------------------
Just line of note, SubsystemDescriptionDump is not really needed anymore at least not in a capacity to be registered as operation.
I am preparing PR that will move it to test code as it only place to that uses it.
> End users can call non-published management API operations
> ----------------------------------------------------------
>
> Key: WFCORE-13
> URL: https://issues.jboss.org/browse/WFCORE-13
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Reporter: Ladislav Thon
> Labels: EAP
>
> It's not possible to call "non-published" operations (those that are not visible in the resource tree, e.g. {{describe}}) via JMX, while it's entirely possible to call them via CLI (e.g. {{/subsystem=security:describe}}) and other management interfaces.
> The problem lies in the fact that {{ModelControllerMBeanHelper.invoke}} method checks {{if (!accessControl.isExecutableOperation(operationName))}} and the {{isExecutableOperation}} method assumes that the operation will be visible in the resource tree. In fact, there is a comment stating _should not happen_, but now we know that it indeed _can_ happen.
> What's more, it gives a misleading error message. The {{isExecutableOperation}} returns {{false}} for unknown operations, which results in {{Not authorized to invoke operation}} message. Which is wrong in two different ways simultaneously: 1. the problem isn't authorization, but the fact that the operation can't be found; 2. the user (e.g. in the {{SuperUser}} role) _is_ authorized.
> I'm considering this low priority, because 1. JMX is likely to be very rarely used to access the management interface, 2. hiding information isn't nearly as important as leaking them, 3. non-published operations aren't nearly as important as the published ones. It's worth a JIRA nevertheless.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months
[JBoss JIRA] (ELY-1131) WildFly Elytron Tool, For vault command bulk-convert is missing validation for parsed values from description file.
by Hynek Švábek (JIRA)
Hynek Švábek created ELY-1131:
---------------------------------
Summary: WildFly Elytron Tool, For vault command bulk-convert is missing validation for parsed values from description file.
Key: ELY-1131
URL: https://issues.jboss.org/browse/ELY-1131
Project: WildFly Elytron
Issue Type: Bug
Reporter: Hynek Švábek
Assignee: Darran Lofthouse
For vault command bulk-convert is missing validation for parsed values from description file.
There is expected to have some kind of validation for parsed value. There must be defined which values are required and which not.
There are these problems with required arguments:
# omitting "alias" leads to NullPointerException
# omitting "location" leads to incorrect tool output where is "null" value as credential store, converted file isn't created but it seems that operation was successful.
{code}
java -jar wildfly-elytron-tool.jar vault --bulk-convert bulk-vault-conversion-desc
Vault (enc-dir="./test";keystore="server.store") converted to credential store "null"
{code}
# omitting "enc-dir" leads to incorrect tool output where is "null" value for "enc-dir" and there is created empty converted.jceks file in current directory.
{code}
java -jar wildfly-elytron-tool.jar vault --bulk-convert bulk-vault-conversion-desc
Vault (enc-dir="null";keystore="server.store") converted to credential store "converted.jceks"
{code}
* there are more choices how to solve it:
## error message, because each VAULT in description file should have different value.
## set it to current directory
## other solution
# omitting "keystore-password" leads to NullPointerException
* There is expected better error message.
# There must be defined at least one "keystore", because it is separator between
*How to reproduce*
Download all attachments to same location as wildfly-elytron-tool.jar update *bulk-vault-conversion-desc* file and run this command
java -jar wildfly-elytron-tool.jar vault --bulk-convert bulk-vault-conversion-desc
Here is example of correctly defined one vault store for convert in description file
{code}
# Bulk conversion descriptor
keystore:server.store
keystore-password:MASK-2hKo56F1a3jYGnJwhPmiF5
enc-dir:./test
salt:12345678
iteration:34
location:converted.jceks
alias:jboss
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months