Skip to content

Dependent resources / explicit inheritance across containers #92

Open
@dmitrizagidulin

Description

@dmitrizagidulin

The discussion about Auxiliary resources (and how they are tied to the life cycle of their primary resource) reminds me -- I'd love to see an addition to the Web Access Control spec that denotes "The ACL policies for this resource are fully dependent on the ACL policies of that parent resource."

Classic example: Blog posts and comments. The ACL of a blog post determines who can view the post. The post has a list of comments on it. And the access policy for the comments is determined solely by the access policy for the post. (Unless overridden/customized, dependent on the use case.)

So, something like:

  • /posts/blog-postA.ttl -- has a comment on it, represented by resource /comments/commentB.ttl
  • /posts/blog-postA.ttl.acl -- contains the usual ACL statements controlling access to the post
  • /comments/commentB.ttl -- contains the comment, the author, etc.
  • /comments/commentB.ttl.acl -- just has a statement like <wac:dependentOn> </posts/blog-PostA.ttl> (which denotes that it explicitly inherits the permissions of the blog post, but outside the usual container hierarchy).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions