-
Notifications
You must be signed in to change notification settings - Fork 51
fix(SelfSubjectReview): authorization for ns #919
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: CorentinPtrl <pitrel.corentin@gmail.com>
Signed-off-by: CorentinPtrl <pitrel.corentin@gmail.com>
|
Any update on this ? It looks 100% implemented |
|
Everything is working in k9s as far as I know it's just waiting for a review |
prometherion
left a comment
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.
LGTM, I think this will unlock also supports for Headlamp.
internal/webserver/webserver.go
Outdated
|
|
||
| scheme := runtime.NewScheme() | ||
| protoEncoder := protobuf.NewSerializer(scheme, scheme) | ||
| corev1.AddToScheme(scheme) |
Check warning
Code scanning / gosec
Errors unhandled Warning
internal/webserver/webserver.go
Outdated
| scheme := runtime.NewScheme() | ||
| protoEncoder := protobuf.NewSerializer(scheme, scheme) | ||
| corev1.AddToScheme(scheme) | ||
| authorizationv1.AddToScheme(scheme) |
Check warning
Code scanning / gosec
Errors unhandled Warning
internal/webserver/webserver.go
Outdated
| } | ||
| } | ||
| writer.WriteHeader(w.Result().StatusCode) | ||
| writer.Write(body) |
Check warning
Code scanning / gosec
Errors unhandled Warning
Signed-off-by: CorentinPtrl <pitrel.corentin@gmail.com>
Fixes #1666 by mutating the selfsubjectaccessreviews and selfsubjectrulesreviews for the namespaces