-
Notifications
You must be signed in to change notification settings - Fork 67
Add support for querying and modifying ACLs #71
Comments
Also, I had some other ideas for the AclFileAttributeView:
|
I'm willing to help with this effort. It seems you and I have recently reached a shared interest in this project. I have an immediate need for the port change (see #68, not as good as your #70), ACL support (and also support when a cloud DOESN'T support ACL, library currently throws AmazonS3Exception,) and a number of other things including a fairly responsive maintainer if I'm going to spend resources on this. It seems to me that @jarnaiz is the maintainer here? I'd be interested in feedback there or offer up myself as a maintainer as well? This project is MIT licensed, so I may start doing significant work in my fork if you want to collaborate there. |
I actually proposed starting work on Apache Commons VFS 3 just yesterday which would be a rewrite of VFS2 to use the NIO2 API. I'm getting a bit of interest there, and this would be a great feature to bring into that as well. And that lack of ACL support is exactly another issue with integration testing via s3mock for example. |
Hi @jvz and @amarcionek Thanks for all your interest on this project. If you want to contribute with the project you can do a PR and I will be happy to check it, review it and include you as developers in the project info. If you want to be a mantainers with writing permissions, great, but we should talk about style guideliness and the roadmap... but no problem :) My company Upplication is using this project in production and we want to continue to mantain it in the long term :) I want to review this issue and the #68 and #70 tomorrow or maybe this weekend. Until I can investigate further you can look at this method: com.upplication.s3fs.util.S3Utils#toPosixFilePermission Cheers! |
I've been debating internally at my work about whether we're going to abstract the S3 service itself by using an S3-compatible file store, or if we're going to abstract our API usage via libraries such as this. The way things are going, it sounds like we'll be going the API route, so continued development of this library will be very useful. I'll need to get permission to contribute non-trivial PRs on company time, however. I'd be happy to help in that case. As mentioned above, this library would be useful in the future Apache Commons VFS 3.x project, but we'll discuss integration later on. |
I started working on a proof of concept of this locally, and the main things I figured out for this are:
AclEntryPermission
enum toPermission
and back.AclFileAttributeView
which can be used to query and modify ACLs (which can be checked against cached ACLs ahead of time to prevent unnecessary network requests).supportedFileAttributeViews()
value inS3FileSystem
.BasicFileAttributeView
is most likely a bug (see Attribute Views #67).UserPrincipal
toGrantee
, I think using just the identifier as theUserPrincipal::getName
value makes more sense (easier to map to theGroupGrantee
enum here since these are all known URIs).Now I'm not an S3 expert by any means, but this was how I started mapping from AWS permissions to AclEntryPermissions:
The text was updated successfully, but these errors were encountered: