-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
chore(auth): remove max scope for partners #82437
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, but I also don't fully understand the implications of removing this so I'll defer to you + security on it.
@GabeVillalobos it's a product decision we made initially but then in practice it ended up being too daunting for a partner. The scopes no matter what partner requests for will be visible to the user and user can decide if that's too much scope and they don't want to grant. |
@sentaur-athena Is it necessary to remove this? For partners that need the max scopes, wouldn't we just check all the scopes? That way, with cases where the scope does need a subset of the max it can be restricted still. |
@mdtro I'm open to keeping it but it creates complexity that we don't have a reason for right now. I realized we keep defining new scopes, like alerts scopes are create just a couple of weeks ago and member:invite scope. Having this logic will enforce us to backfill every time a new scope gets created. Other solution would be to keep the max scope but if it's empty we assume it's all. 😅 |
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
I realized letting partners to have max scope (even the future ones created) is more code change that I want to make today before holidays. Will close this for now but that's the route I will go when back from holidays. |
I added this piece of code a couple of weeks ago because we wanted to limit partners max scope but we decided not to. Removing it because it adds extra complexity