-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Prebuilds stop working for team projects when an owner without repo access joins the team #8128
Comments
One suggestion for a fix from @konne is to separate the roles of admin and owner. |
another suggestion from @jankeromnes
|
The idea is great to have less friction and support for users because it will in most cases just automatically work. The other point came into my mind. What happens if I only have one owner and this user gets blocked by Github (whatever the reason is) This lead to the situation that the team can not be managed anymore but you can also not create a new team and add the projects, because the projects are already added to that team. |
@konne, given that we'll fix the selection of a user account to fetch repo installation with, I would like to understand that point of yours. If a project belongs to a team, any team member's token with necessary permissions should be good to use for prebuilds. That should solve problems with rate limitation and improve reliability. |
@AlexTugarev for example in enterprise usage of GitLab I know companies that check the usage of API tokens also per IP. |
This issue is a result of investigating #7648 and #8118.
Team-project prebuilds depend on the 1st (returned from DB) team-owner's permissions. If that user does not have the right access to the repo, then the prebuilds stop working. This can start happening if another team-owner is added later, after the project has been working for a while.
findProjectOwner()
is called duringhandlePushEvent()
, and the owner is then used to dofetchConfig()
which will fail silently if the owner does not have permissions, causing the prebuild not to be triggered.Examples of these fetchConfig errors can be found in traces and trace-detail. (internal)
gitpod/components/server/ee/src/prebuilds/github-app.ts
Line 358 in 28597c5
To reproduce
The text was updated successfully, but these errors were encountered: