Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add storage permissions to UserDetail #511

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hannesdejager
Copy link
Collaborator

This extends the UserDetail trait with a storage_permissions method that allow storage back-ends to limit what a user can do.

Copy link
Contributor

@asomers asomers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty good to me. BTW some of these permissions don't correspond 1:1 to Capsicum rights. For example, GET and LIST would both require CAP_READ but nothing else. So the storage backend itself will also have to validate rights. But it would have to do that anyway, if we want the rights to be enforced on !FreeBSD.

Do you want a permission like STAT that allows the SIZE and MDTM commands? Or should they come along with LIST?

This extends the UserDetail trait with a storage_permissions
method that allow storage back-ends to limit what a user can
do.
@asomers
Copy link
Contributor

asomers commented Oct 22, 2024

ping. What does this PR still need?

@hannesdejager
Copy link
Collaborator Author

ping. What does this PR still need?

Hey sorry @asomers , I've been so focussed on the book I'm writing I've neglected and forgotten about this. Will try to attend to it in the next couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants