Skip to content

fix(SelfSubjectReview): authorization for ns#919

Merged
oliverbaehler merged 3 commits intoprojectcapsule:mainfrom
CorentinPtrl:main
Feb 23, 2026
Merged

fix(SelfSubjectReview): authorization for ns#919
oliverbaehler merged 3 commits intoprojectcapsule:mainfrom
CorentinPtrl:main

Conversation

@CorentinPtrl
Copy link
Copy Markdown
Contributor

Fixes #1666 by mutating the selfsubjectaccessreviews and selfsubjectrulesreviews for the namespaces

@CorentinPtrl CorentinPtrl marked this pull request as draft December 7, 2025 22:16
Signed-off-by: CorentinPtrl <pitrel.corentin@gmail.com>
@CorentinPtrl CorentinPtrl marked this pull request as ready for review December 8, 2025 21:43
Signed-off-by: CorentinPtrl <pitrel.corentin@gmail.com>
@k3rnL
Copy link
Copy Markdown

k3rnL commented Dec 25, 2025

Any update on this ? It looks 100% implemented

@CorentinPtrl
Copy link
Copy Markdown
Contributor Author

Everything is working in k9s as far as I know it's just waiting for a review

Copy link
Copy Markdown
Member

@prometherion prometherion left a 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.

Comment thread internal/webserver/webserver.go Outdated

scheme := runtime.NewScheme()
protoEncoder := protobuf.NewSerializer(scheme, scheme)
corev1.AddToScheme(scheme)

Check warning

Code scanning / gosec

Errors unhandled Warning

Errors unhandled
Comment thread 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

Errors unhandled
Comment thread internal/webserver/webserver.go Outdated
}
}
writer.WriteHeader(w.Result().StatusCode)
writer.Write(body)

Check warning

Code scanning / gosec

Errors unhandled Warning

Errors unhandled
Signed-off-by: CorentinPtrl <pitrel.corentin@gmail.com>
@github-actions
Copy link
Copy Markdown

This pull request has been marked as stale because it has been inactive for more than 30 days. Please update this pull request or it will be automatically closed in 7 days.

@github-actions github-actions Bot added the Stale label Feb 22, 2026
@oliverbaehler oliverbaehler merged commit 6a0ea4f into projectcapsule:main Feb 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Listing namespaces is denied on k9s with capsule-proxy

5 participants