-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
system:masters tokens are not restricted by scopes #18922
Comments
Not surprising, but not really concerning. No OAuth-authenticated users can have that group (it's not a valid Group API object name) |
@deads2k made scopes authz come before system:masters, so it should deny. |
@liggitt I was passing in that group from an external authorizer with no issue, so that statement is not fully true |
Yeah, I'm surprised it didn't work. It didn't work before, so we haven't regressed and can fix it later, but I did swizzle the order to try to deny early: https://github.com/openshift/origin/blob/master/pkg/cmd/server/origin/authorizer.go#L37-L46 |
@deads2k that code is exactly what I was reminding, so we need to figure out at some point why it is not working. |
See #18966 (comment) for an update on this. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
This was by design and the "bug" was fixed in a different way |
The underlying issue of not being able to scope system:masters still remains right? Or is there some changes in the upstream loopback token? /remove-lifecycle stale |
My understanding is that system:master is and will remain unscoped, but I'll defer to anyone that wants to do otherwise I guess. |
I believe #21530 makes this impossible. We should update origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver/patch_authorizer.go Lines 41 to 50 in 364a599
to not give the false impression that |
While trying to build an integration test for webhooks I came up to the fact that a user that uses a token with system:masters in the groups and scopes has scopes completely ignored and full access a system:masters.
This is in master
The text was updated successfully, but these errors were encountered: