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

usershareprovider: check permissions before updating a share #4405

Merged
merged 5 commits into from
Dec 15, 2023

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Dec 13, 2023

Instead of relying on the calling service for permission checks, we're now checking if the requesting user has sufficient permission for performing an update in the shareprovider itself.

@rhafer rhafer self-assigned this Dec 13, 2023
@rhafer rhafer force-pushed the update-share-permission-check branch from 0e65f79 to f5bae4a Compare December 13, 2023 14:30
@rhafer rhafer marked this pull request as ready for review December 13, 2023 14:31
@rhafer rhafer requested review from labkode, glpatcern and a team as code owners December 13, 2023 14:31
@rhafer rhafer requested a review from micbar December 13, 2023 14:31
@rhafer rhafer force-pushed the update-share-permission-check branch 2 times, most recently from 464a335 to 36a0397 Compare December 13, 2023 14:51
@rhafer rhafer force-pushed the update-share-permission-check branch from 36a0397 to ce4471b Compare December 13, 2023 15:20
@rhafer rhafer marked this pull request as draft December 13, 2023 16:13
@rhafer rhafer force-pushed the update-share-permission-check branch 3 times, most recently from 7f9be5d to 432d565 Compare December 13, 2023 17:19
rhafer added a commit to rhafer/ocis that referenced this pull request Dec 13, 2023
Instead of relying on the calling service for permission checks, we're now
checking if the requesting user has sufficient permission for performing an update
in the shareprovider itself.
Check the UpateShare call for success, before trying ot update the grants on
the shared resource.
Bump golangci-lint to v1.55.2, the old version we had seems to cause issues
with some go1.21 code. Also remove some deprecated linters that no longer seem
to work correctly. Also bump setup-go to v4 (as in master).
@rhafer rhafer force-pushed the update-share-permission-check branch from 432d565 to 10fe3ba Compare December 14, 2023 09:37
rhafer added a commit to rhafer/ocis that referenced this pull request Dec 14, 2023
rhafer added a commit to rhafer/ocis that referenced this pull request Dec 14, 2023
@rhafer rhafer marked this pull request as ready for review December 14, 2023 10:25
@rhafer rhafer requested a review from kobergj December 14, 2023 10:27
@rhafer
Copy link
Contributor Author

rhafer commented Dec 14, 2023

@micbar This should be ready now. I also did a [full-ci] run on ocis with it (see https://drone.owncloud.com/owncloud/ocis/30043)

@micbar micbar merged commit 5142bf3 into cs3org:edge Dec 15, 2023
9 checks passed
@micbar micbar mentioned this pull request Dec 20, 2023
71 tasks
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.

3 participants