Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand

5. Resource Authorization § Danny Bernstein

  • (question) (error) To configure access control restrictions, implementations MUST follow the recommendations of Web Access Control [SOLIDWEBAC] with the following additional requirements:
    • (error) acl:agentGroup not supported
    • (error) acl:defaultForNew is not support - currently behaves as "acl:defaultForNew" specifies without the acl:defaultForNew.

5.1 ACLs are LDP RDF Sources §

(Danny Bernstein)

  • (question) (tick) An ACL for a controlled resource on a conforming server MUST itself be an LDP-RS.

5.2 ACL Representation and Interpretation §

  • (question) Implementations MUST inspect the ACL RDF for authorizations.
  • (question) Implementations MUST use only statements associated with an authorization in the ACL RDF to determine access, except in the case of acl:agentGroup statements where the group listing document is dereferenced.
  • (question) The authorizations MUST be examined to see whether they grant the requested access to the controlled resource.
  • (question) If none of the authorizations grant the requested access then the request MUST be denied.

5.3 ACLs are discoverable via Link Headers §

  • (question) A conforming server MUST advertise the individual resource ACL for every controlled resource in HTTP responses with a rel="acl" link in the Link header, whether or not the ACL exists.
  • (question) The ACL resource SHOULD be located in the same server as the controlled resource.

5.4 ACL linking on resource creation §

  • (question) A client HTTP POST or PUT request to create a new LDPR MAY include a rel="acl" link in the Link header referencing an existing LDP-RS to use as the ACL for the new LDPR.
  • (question) The server MUST reject the request and respond with a 4xx or 5xx range status code, such as 409 (Conflict) if it isn't able to create the LDPR with the specified LDP-RS as the ACL.
  • (question) In that response, the restrictions causing the request to fail MUST be described in a resource indicated by a rel="http://www.w3.org/ns/ldp#constrainedBy" link in the Link response header, following the pattern of [LDP] 4.2.1.6.

5.5 Cross-Domain ACLs §

  • (question) Implementations MAY restrict support for ACLs to local resources.
  • (question) If an implementation chooses to reject requests concerning remote ACLs,

5.6 Cross-Domain Group Listings §

  • (question) Implementations MAY restrict support for [SOLIDWEBAC] groups of agents to local Group Listing documents.
  • (question) If an implementation chooses to reject requests concerning remote Group Listings,

5.7 Append Mode §

  • (question) In the context of a Fedora implementation, acl:Append should be understood as operations that only append, such as POSTing to a container, or performing a PATCH that only adds triples.

5.7.1 LDP-RS §

  • (question) When a client is allowed to perform acl:Append operations on an LDP-RS:
    • (question) A DELETE request MUST be denied
    • (question) A PATCH request that deletes triples MUST be denied
    • (question) A PATCH request that only adds triples SHOULD be allowed
    • (question) A PUT request on an existing resource MUST be denied
    • (question) A PUT request to create a new resource MUST be allowed if the implementation supports creating resources using PUT (see: 3.6.3 Creating resources with HTTP PUT)

5.7.2 LDPC §

  • (question) In addition to requirements in 5.7.1 LDP-RS, when a client is allowed to perform acl:Append operations on an LDPC, a POST request MUST be allowed.

5.7.3 LDP-NR §

  • (question) When a client is allowed to perform acl:Append operations on an LDP-NR:
    • (question) All DELETE, POST, and PUT requests MUST be denied
    • (question) A PATCH request that deletes or modifies existing content MUST be denied
    • (question) A PATCH request that only adds content SHOULD be allowed

5.8 Access To Class §

  • (question) Notwithstanding [SOLIDWEBAC]'s lack of support for it, the acl:accessToClass predicate MUST be supported.
  • (question) When an ACL includes an acl:accessToClass statement, it gives access to all resources with the specified type, whether that type is client-managed or server-managed.
  • (question) An implementation MAY use inference to infer types not present in a resource's triples or rel="type" links in the Link header.

5.9 Inheritance and Default ACLs §

  • (question) Inheritance of ACLs in Fedora implementations is defined by the [SOLIDWEBAC] ACL Inheritance Algorithm and MUST be reckoned along the [LDP] containment relationships linking controlled resources, with the following modification:
    • (question) In the case that the controlled resource is uncontained and has no ACL, or that there is no ACL at any point in the containment hierarchy of the controlled resource, then the server MUST supply a default ACL.
    • (question) The default ACL resource SHOULD be located in the same server as the controlled resource.

...