-
Notifications
You must be signed in to change notification settings - Fork 61
CI: Reject ubiquibot-config.yml
changes from unauthorized contributors
#836
Comments
How would it reject it? |
/start |
Tips:
|
/stop |
You have been unassigned from the bounty @me505 |
/apply |
Available commands
|
/help |
Available commands
|
/multiplier |
Insufficient permissions to update the payout multiplier. You are not an |
/start |
Tips:
|
Do you have any updates @bojan07? If you would like to release the bounty back to the DevPool, please comment |
@bojan07 - Releasing the bounty back to dev pool because the allocated duration already ended! |
I'll draft this |
We did pause merges on this repo until the refactor is merged in though. But at least it'll allow you to get a head start on the research. You might have merge conflicts though. |
I noticed that but I need to work so try and stop me :))
On this one I think I'll get away with but the others I have dormant, definitely will have a host of them but I appreciate the heads-up |
@pavlovcik or @rndquu, the roles come from the org right? Not the db? |
yes |
figured and a few mins after I asked found where to inv myself 😂 cheers mate |
Tougher than I expected but nearly there I'm using a dummy account to QA and it seems that What I've tested so far, for instance:
I'll get there but if you've any insight that would help I'd appreciate it |
Q & A:
Basically then it seems like checking for billing_manager status is out of the question unless it's a paid Enterprise, unless they are added to the org as an admin as well I think I'll only be able to check for admin status on config updates. Please correct me if I'm wrong |
The config, I assume for a particular reason, doesn't use double quotes which is making it hard to parse in order to do a granular review of changed properties.
The point being here, whenever someone without authority changes the config we want to be warned the config has changed. However, in cases where the change is required the CI will need to be confirmed by the reviewers ANYWAY, so in all scenarios it fails and would continue to fail unless committed by an admin or overridden as an acceptable change. Considering this, "isAdmin ? pass : fail" makes sense to me. |
Forgot about the other action that updates the config. Got it working against my private org repo, draft it maybe tonight probably tomorrow |
I've got mixed feelings on the yml implementation. Installation to partner repos will be more complicated if they need to add yml. Instead ideally the bot should handle it in its core code so that when they add the bot to their repo, it can handle this use case. I haven't come to a conclusion on this because I asked @wannacfuture to research delegating long running processes to GitHub actions (permit generation and AI related tasks) which might require us to figure some flow that allows yml installation when the bot is added to the repo etc. |
At first I did start building it into the Bot yknow and spoke myself out of it with incorrect thinking that it would be easier as an action but it would have been simpler probably, that's why I ask the below, which itself doesn't makes sense but my train of thought was all wrong at first lmao
So for now just sit on things until the research comes in, not a problem |
@wannacfuture any remarks to add? |
These linked pull requests are closed: #880 |
Remind me after the refactor and we'll get reviews going again etc. |
Yay |
Only
admins
andbilling_managers
should have the authority to change the bot config due to price sensitivity. Specifically anything related to finances.I quickly parsed out the finance related properties from the default config:
The text was updated successfully, but these errors were encountered: