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

Check user quota before uploading files to iRods userZone #5329

Open
devincowan opened this issue Feb 1, 2024 · 3 comments · Fixed by #5331
Open

Check user quota before uploading files to iRods userZone #5329

devincowan opened this issue Feb 1, 2024 · 3 comments · Fixed by #5331

Comments

@devincowan
Copy link
Contributor

devincowan commented Feb 1, 2024

The goal is to validate a user's quota before allowing them to upload to the iRods userZone.
I'm not confident the best approach here. It might look like a check for file headers before the file upload is initiated

This is a key component for Quota enforcement

@devincowan devincowan added this to Backlog in HydroShare Issue Management Board via automation Feb 1, 2024
@devincowan devincowan mentioned this issue Feb 1, 2024
38 tasks
@devincowan devincowan self-assigned this Feb 1, 2024
@devincowan devincowan moved this from Backlog to Selected Next for Development in HydroShare Issue Management Board Feb 1, 2024
@devincowan
Copy link
Contributor Author

devincowan commented Feb 2, 2024

Chris helped me brainstorm this and one option is to have Hydroshare execute (something like how we create userZone account or how we make icommand calls to transfer from the uzone) an irule that prevents iput in the userZone, but still allows all other functionality. This way uploads would be disallowed for users over quota but they would still be able to delete/zip to free up some space.

However, this would effectively be very similar to what we already have in HS quota management -- where the devil is in the details of syncing quota between the 2 systems. It has the potential to make something that is already fairly complicated much more so...

@devincowan
Copy link
Contributor Author

Discussed today and if nuanced access in userZone is not easily achievable, then we will opt instead to notify help/admin when a user has reached quota but continues to upload to the userzone.

@devincowan
Copy link
Contributor Author

as part of #5228, PR: #5331 added notifications to support in the case that uploads continue even after a user exceeds their quota

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

Successfully merging a pull request may close this issue.

1 participant