Skip to content

A Solid server SHOULD sanity check ACL auxiliary resources #571

Closed

Description

@jvherweg

A Solid server SHOULD sanity check ACL auxiliary resources upon creation or update to restrict invalid changes, such as by performing shape validation against authorization statements therein.

Related to #87, but will probably have different implementation based on interface of #554.

Activity

  1. jvherweg commented on Feb 1, 2021

    @jvherweg
    MemberAuthor

    This means we should also validate after doing a PATCH which makes this a bit more complicated: the result of the patch would also have to pass through the auxiliary resource validation.

  2. RubenVerborgh commented on Feb 1, 2021

    @RubenVerborgh
    Member

    the result of the patch would also have to pass through the auxiliary resource validation.

    It's actually quite alright: a default implementation of PATCH is to do an internal GET, apply patch, PUT.
    So we could imagine a VerifyingStore that implements PATCH that way, and just checks before PUT.

    Open/future challenges could be to:

    • streaming validation
    • predict whether a PATCH will result in a valid document, where I see three cases:
      • will a PATCH P transform any valid document into a valid document?
      • will a PATCH P not introduce new invalid statements into any (valid or invalid) document?
      • will a PATCH P preserve the validity of specific document D?

    But these are really just optimizations.

  3. added this to the v4.0.0 milestone on Mar 21, 2022
  4. jvherweg commented on Mar 22, 2022

    @jvherweg
    MemberAuthor

    I can no longer find this in the spec so this can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    📜 solid:protocol:v0.9➕ feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions