[jboss-jira] [JBoss JIRA] (WFLY-2263) Access control meta data: Instance references

Heiko Braun (JIRA) jira-events at lists.jboss.org
Wed Oct 9 13:12:02 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12812429#comment-12812429 ] 

Heiko Braun edited comment on WFLY-2263 at 10/9/13 1:10 PM:
------------------------------------------------------------

when requesting access control meta data, we return a the 'default' policy per resource type and 'exceptions' (instance specific) 

Here's an 'exception': 

{noformat}
[("subsystem" => "datasources"),("data-source" => "ExampleDS")]={
    "read" => true,
    "write" => false,
   
    [...]
}
{noformat}

As you can see it uses the string representation of the instance address as the property key. This makes it really hard to match that key against requested resources (property keys are just String in the DMR API). 

I would prefer the instance name to become the key, and instead provide an inline address represenation, of proper ModelType.LIST (like all other address attributes):

{noformat}
"ExampleDS"={
    instanceAddress = [("subsystem" => "datasources"),("data-source" => "ExampleDS")],
     "read" => true,
    "write" => false,
   
    [...]
}
{noformat}
                
      was (Author: heiko.braun):
    when requesting access control meta data, we return a the 'default' policy per resource type and 'exceptions' (instance specific) 

Here's an 'exception': 

{noformat}
[("subsystem" => "datasources"),("data-source" => "ExampleDS")]={
    "read" => true,
    "write" => false,
   
    [...]
}
{noformat}

As you can see it uses the string representation of the instance address as the property key. This makes it really hard to match that key against requested resources (property keys are just String in the DMR API). 

I would prefer the instance name to become the key, and instead provide an inline address represenation, of proper ModelType.LIST (like all other address attributes):

{noformat}
["ExampleDS"={
    instanceAddress = [("subsystem" => "datasources"),("data-source" => "ExampleDS")],
     "read" => true,
    "write" => false,
   
    [...]
}
{noformat}
                  
> Access control meta data: Instance references
> ---------------------------------------------
>
>                 Key: WFLY-2263
>                 URL: https://issues.jboss.org/browse/WFLY-2263
>             Project: WildFly
>          Issue Type: Enhancement
>          Components: Domain Management
>            Reporter: Heiko Braun
>            Assignee: Brian Stansberry
>             Fix For: 8.0.0.CR1
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list