You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ian Boston (JIRA)" <ji...@apache.org> on 2009/07/16 13:06:15 UTC

[jira] Assigned: (SLING-981) A security loader, along the lines of the contentloader to make it possible to populate ACL,s and Authorizables on startup

     [ https://issues.apache.org/jira/browse/SLING-981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Boston reassigned SLING-981:
--------------------------------

    Assignee: Ian Boston

> A security loader, along the lines of the contentloader to make it possible to populate ACL,s and Authorizables on startup
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-981
>                 URL: https://issues.apache.org/jira/browse/SLING-981
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Ian Boston
>            Assignee: Ian Boston
>         Attachments: securityloader.tgz, SLING-981_patch.txt
>
>
> Th small tar to follow allows bundles to include a Sakai-Initial-Security (to be renamed) header in the manifest that points to a json file containing acl and authorizable setup for the repository. This may include users or groups as required by the acl's and the acls. In for form
> {
>  "principals" : [
>     { 
>     	"name":"owner", 
>     	"isgroup":"true",
>     	"members":[],
>     	"dynamic":"true"
>     },
>     { 
>     	"name":"everyone", 
>     	"isgroup":"true",
>     	"members":[],
>     	"dynamic":"true"
>     }
>  ],
>  "acl" : [
>  	{
>  		"path":"/_private",
>  		"principal":"owner",
>  		"privilege@jcr:read":"granted",
>  		"privilege@jcr:write":"granted"
>  		
>  	},
>  	{
>  		"path":"/public",
>  		"principal":"owner",
>  		"privilege@jcr:read":"granted",
>  		"privilege@jcr:write":"granted"
>  		
>  	},
>  	{
>  		"path":"/public",
>  		"principal":"everyone",
>  		"privilege@jcr:read":"granted"
>  	}
>  ]
> }
> The code is largely based on the contentloader with quite a bit of copying (ugly sorry), but since it may not be wanted in in some installations I feel its better off in its own bundle. If its acceptable to have it in all distributions, then obviusly it should be a patch to contentloader.
> I looked and asked for this functionality already existing in Sling, but could not find it hence the patch. If there is a better way of doing the same already in the code base then closing this with "invalid" would be the right thing to do.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.