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

Organizations: compromise team read access by another team with write access #3135

Closed
2 of 7 tasks
imolein opened this issue Dec 10, 2017 · 6 comments
Closed
2 of 7 tasks
Labels
type/enhancement An improvement of existing functionality
Milestone

Comments

@imolein
Copy link

imolein commented Dec 10, 2017

  • Gitea version (or commit ref): 1.3.1
  • Git version: 2.7.4
  • Operating system: Ubuntu 16.04.3
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:

Description

Steps, how I noticed this:

  • Create an organization and an organization repository
  • Create team, with read access on code, issues, pull requests and releases and add a user to it
  • The user now has read access on repository, as defined
  • Now create a second team with only write access on wiki and add the same user as in the previous created team
  • Now the member has write rights on the whole repository

My intention was to create a team which has read access on code, issues, pull requests and releases and write access on wiki, but I noticed I can't do this in one team, so I thought teams are more like access roles and I can define multiple, with different rights and add the users to all of this teams (am I wrong on this?). So I do the steps as described above and found this weird behavior.
Even if I understand the rights management completely wrong, it shouldn't be possible to compromise the rights of one team, by creating another one with the same member, especially not when team one gives access to different parts of the repository as team two.

@lafriks lafriks added type/bug type/question Issue needs no code to be fixed, only a description on how to fix it yourself. type/enhancement An improvement of existing functionality and removed type/bug type/question Issue needs no code to be fixed, only a description on how to fix it yourself. labels Dec 10, 2017
@lafriks
Copy link
Member

lafriks commented Dec 12, 2017

Yes it's current limitation for our right system. Permissions and units are not directly related. Permissions are for repository not for units selected below. Units allow to disable/enable parts of repository.

@lunny
Copy link
Member

lunny commented Dec 13, 2017

@lafriks but we in fact could do that. Maybe need a PR.

@lafriks
Copy link
Member

lafriks commented Dec 13, 2017

@lunny yes we can :)

@terrywh
Copy link

terrywh commented Nov 28, 2018

are there any news on this ? is this related to #5308 / #5307 ?

@lunny
Copy link
Member

lunny commented Nov 28, 2018

should be fixed by #5314

@lunny lunny added this to the 1.7.0 milestone Nov 28, 2018
@lunny
Copy link
Member

lunny commented Nov 28, 2018

Please feel free to reopen.

@lunny lunny closed this as completed Nov 28, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

4 participants