-
Notifications
You must be signed in to change notification settings - Fork 36
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
Minimize wpt-pr-bot's access levels #59
Comments
I think something with heroku needed it, but don't remember what. @tobie @jugglinmike ? |
It previously would invite people as collaborators to the repo, but I removed that in #22. If we downgrade the permissions to write access, are there logs that will reveal if something subtle breaks that used to work? |
The best answer I can give is "I hope so." There's no question that we ought to be following POLP, though, so I'd like to help this move forward. Here's what I have in mind:
|
I have played around with https://github.com/features/actions a bit, enough to convince myself that both the merge_pr_* tagging and manifest upload we do on Travis and the wpt-pr-bot standalone service could be replaced by it. I don't know when it will exit beta, but I think that'd be a good time to move all this code over and test+document. |
I spotted in https://github.com/web-platform-tests/wpt-pr-bot/settings/collaboration that @wpt-pr-bot actually has admin access to this very repo. I'm quite sure that's not necessary, so I've removed it. |
This bit probably does require admin access to wpt: wpt-pr-bot/lib/metadata/status.js Lines 31 to 39 in a56b669
|
Co-opting this to serve as the outcome of a recent retrospective, where we decided to investigate + lower the permissions given to wpt-pr-bot. |
Summarizing current status, the wpt-pr-bot user:
The tokens have varying levels of access:
|
This is no longer used. We've switched to
Hmm what is this? |
Also
This can probably be removed, but I'm only 90% sure. It's best to do it next week and keep an eye in case anything breaks. |
Done.
Are you telling me not to make prod changes on a Friday evening? Pft, fineeeee :p PS: Yes, the irony of the fact that I said that after happily deleting the wpt.fyi token on a Friday evening just hit me. |
Is the admin role still needed? I think not after #22, but it's a bit tricky to audit. |
Does this bot still perform any action that requires admin access to web-platform-tests/wpt?
If not, then I'd like to downgrade its access level to write access.
The text was updated successfully, but these errors were encountered: