Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-981

A security loader, along the lines of the contentloader to make it possible to populate ACL,s and Authorizables on startup

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • JCR Contentloader 2.0.6
    • JCR
    • None

    Description

      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.

      Attachments

        1. securityloader.tgz
          14 kB
          Ian Boston
        2. SLING-981_patch.txt
          26 kB
          edn

        Activity

          People

            ianeboston Ian Boston
            ianeboston Ian Boston
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: