Giter Club home page Giter Club logo

Comments (7)

dmitrizagidulin avatar dmitrizagidulin commented on August 11, 2024

The spec states where one can find acl files, but as far as I've seen it never says how the client could know where to create new acl files.

Yeah, it's like you suspected in PR #8, the implied recommended procedure is:

  • Perform an OPTIONS or a HEAD request on the intended file URL (it's fine if the file does not exist yet, the resulting .acl link header is required to be returned).
  • Create that .acl file via a PUT
  • Create the corresponding file (note that the .acl should be created before the file)

Keep in mind though, that the most common use case is to have an .acl at the container level, which all the files in the container will re-use. While it's possible that every single file will have its own individual .acl, that is a rare use case.

But I wonder how this would work if I wanted to create a new acl file with multiple accessTo values. Just choosing one file at random and then pick its proposed acl link?

Right, so... (And this should probably be clarified in the spec) Solid currently assumes that an individual .acl resource only specifies access to a single file or container.

from web-access-control-spec.

kjetilk avatar kjetilk commented on August 11, 2024

Indeed, that's how I'm writing tests for it right now. But I'm not sure it makes sense to me, since that as you say, the .acl may reside further up the container hierarchy. The correct thing may be to make changes there rather than PUT a new one. Something also tells me that this is something a footprint should decide.

from web-access-control-spec.

Otto-AA avatar Otto-AA commented on August 11, 2024

Thanks for your thoughts on it, as I'm currently writing an acl js library these are very useful to me.

I will go with checking the link header to know where it should put the new acl resource. I would appreciate it if this is clarified in the spec.

While it's possible that every single file will have its own individual .acl, that is a rare use case.

I think it is really common for file sharing and collaborating. For instance if I want to give user A write permissions on a doc, but the Public should only have read permissions. Or if I want to share a file like one can do in dropbox and co. Maybe there are not many other use cases, but here it seems essential to me.

Right, so... (And this should probably be clarified in the spec) Solid currently assumes that an individual .acl resource only specifies access to a single file or container.

From my point of view this is contrary to what the spec is currently saying: "The acl:accessTo predicate specifies which resources you're giving access to, using their exact URLs as the objects.". The plural of resource here makes me think that multiple accessTo predicates are also valid in the same acl file.

And what do you mean with footprint, @kjetilk ?

from web-access-control-spec.

kjetilk avatar kjetilk commented on August 11, 2024

And what do you mean with footprint, @kjetilk ?

Ruben has blogged about shapes and stuff, including footprints: https://ruben.verborgh.org/blog/2019/06/17/shaping-linked-data-apps/#top-dt-3

from web-access-control-spec.

Otto-AA avatar Otto-AA commented on August 11, 2024

Right, so... (And this should probably be clarified in the spec) Solid currently assumes that an individual .acl resource only specifies access to a single file or container.

Is this something that is commonly agreed upon to be part of the spec (but not clearly phrased imo), or do you mean that it is commonly implemented that way, but it is not sure if it will be part of the spec or not?
(I can also move this to another issue, so we have one issue per clarification request)

from web-access-control-spec.

kjetilk avatar kjetilk commented on August 11, 2024

I think that the general footprints mechanism will become a part of Solid at some point, and that it is where such things will be described. As the discussion is relatively new, I'm not sure exactly where it will fit, but I think the general idea is that it will be there.

from web-access-control-spec.

csarven avatar csarven commented on August 11, 2024

Closing this issue as consensus is deemed to be captured in WAC Editor's Draft: https://solid.github.io/web-access-control-spec/ .
See See #acl-resource-discovery #authorization-matching #reading-writing-resources .

from web-access-control-spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.