-
Notifications
You must be signed in to change notification settings - Fork 593
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
fix(google): skip groups for service accounts #953
Conversation
Hello, darkness, my old friend... I'm not apart of this project anymore. |
We will never forget you @ttomsu |
@dbyron-sf can you review this? |
Sorry @perek , I'm not familiar with this code. |
@perek this looks reasonable to me, thanks for adding tests as well 👍 I'm not super knowledgable re: google groups and service accounts, but it looks like they may have added the ability to use service accounts in groups: https://workspaceupdates.googleblog.com/2020/08/service-accounts-in-google-groups-beta.html |
Yes, but that is not a spinnaker service account. Spinnaker service account don’t even have a domain, impossible to use on google |
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.
SGTM 👍
Currently the google roles provider checks Google Groups for all service accounts, this is impossible to succeed because these are not real domains usable in Google Groups. This causes a couple of issues around rate limiting due to bad requests, and artificially increases the load on the Admin Directory API quota. By skipping over this without hitting Google we reduce the time needed to check permissions for this, and improve stability of this API