-
Notifications
You must be signed in to change notification settings - Fork 48
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
packit/rpm-build - Only collaborators can trigger Packit-as-a-Service #250
Comments
Is it intended behaviour or is there a way how to configure it not to behave this way? We want all PRs to trigger the rebuild and unit tests (run during the build process) and beaker tests on the copr-builds. |
It's intended behaviour, so no-one from the public can trigger the build with potentially vulnerable code inside. |
IMHO copr should build in the sandbox without network and with watchdog configured timeouts, similarly for the beaker tests. Github users trying to abuse it should get ban. End users will not install temporal RPMs. So it's not possible to use Packit as the CI for all contributors without manual intervention? This returns us to the point without Packit when we were triggering our scripts manually. |
OK, so it's not a problem to use copr without singing the CLA for Fedora? We are using sandboxing as well, so it should not be technically a problem to skip that check. Some middle-way can be to:
|
The only reason we are doing this is legal and licensing: https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr If forbidden code ever gets to Fedora servers (e.g. copr builders and copr repos afterwards), Fedora can easily be sued for distributing such code. Obviously, there is a solution here: this process could be configurable - changes from any contributor would be built. In case the rules mentioned above get violated, we'd be forced to ban the upstream project from using the packit service. We are actually working with our legal team to get proper terms of service so we can get rid of this check, but it's getting fairly slow. Team mates, what's your opinion here? |
@TomasTomecek thanks for info, looking forward to get it resolved soon. |
Obvious solution would be to stop redistributing the merged code until the review. But that should not affect testing the merge and presenting test results after the change. I think it could be solved by hiding sources created by merge requests changes, just present results. Make such sources accessible only by development team and it should be fine. This is to prevent redistribution, not execution. Please stop redistribution, not execution in this case. |
Building in copr means redistributing code. |
Then different service not redistributing code should be used to test pull requests instead. Or copr might add restricted access to selected builds. |
Yes, I agree with you. The thing is that changing such service (or creating our own) while keeping all the features and user experience (or even improving it) would take us weeks to implement, test, deploy and verify. I just want to be perfectly clear what's the ask from you here and how to solution could look. |
Design decision:
|
Output from the today's architecture meeting:
|
This comment has been minimized.
This comment has been minimized.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I am adding EPIC so we don't receive messages from the stale bot. (Multiple things needs to be done here.) |
The issue is here for some time so it's probably a time to make some conclusion. There were multiple solutions mentioned already:
Do we have anything else? Which one(s) do we prefer? (The solutions can be combined...) |
I really like this one - once a user is approved we can trust the person.
Sounds good as well, though you'd need to store this in DB probably which may be complicated to implement.
Can be a great way in combination with 1) |
Some update on this topic. Copr has reached to us that we don't need to require write access for the pull-request authors to start the build. I am going to close this issue in favour of #920 since it contains the more up-to-date info and contains the solution for this problem. The implementation is not hard and we want to start working on this soon. |
We want all PRs to trigger the rebuild. Why we are receiving this error on PRs from non-collaborators?
packit/rpm-build - Only collaborators can trigger Packit-as-a-Service
I have to trigger the rebuild manually. It happened e.g. in:
redhat-performance/tuned#210
The text was updated successfully, but these errors were encountered: