Skip to content
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

[Doco] excessive GSuite delegation scope #9

Open
SP3269 opened this issue Jan 29, 2019 · 4 comments
Open

[Doco] excessive GSuite delegation scope #9

SP3269 opened this issue Jan 29, 2019 · 4 comments
Milestone

Comments

@SP3269
Copy link

SP3269 commented Jan 29, 2019

The https://www.googleapis.com/auth/admin.directory.group.member.readonly scope is not needed to query group membership. Remove from the doco?

@stevvooe
Copy link
Contributor

@SP3269 Did you run it successfully with the reduced scope? The docs aren't super clear on the difference.

@SP3269
Copy link
Author

SP3269 commented Feb 20, 2019

Agree, the documentation is suboptimal!

Ok, this is not only the doco change. In the gsuite/grouper.go:73, the admin.directory.group.member.readonly if specifically requested:

config, err := google.JWTConfigFromJSON(b, admin.AdminDirectoryGroupMemberReadonlyScope, admin.AdminDirectoryGroupReadonlyScope)

The Members function is using only one directory API of the G Suite Admin SDK - Members: list. Per Google documentation, that requires one of the scopes:

Previously, we only used https://www.googleapis.com/auth/admin.directory.group.readonly for similar purpose integrating Spinaker and Artifactory with G Suite, thus raising this issue.

Should I send PR?

@stevvooe
Copy link
Contributor

stevvooe commented Mar 18, 2019

Should I send PR?

Yea, that's fine but I don't have a good way to test this.

@stevvooe stevvooe added this to the 1.2 milestone Mar 18, 2019
@stevvooe
Copy link
Contributor

@SP3269 I've added this to the 1.2 milestone, so we'll get it fixed in the release after next. I'll be releasing 1.1 in short order, so we'll have to wait on that one.

Thanks for pushing this one forward!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants