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

Add test for the subject access review non resource attributes #547

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

martinhesko
Copy link
Contributor

based on User guide: Kubernetes RBAC for service authorization

Added the interface for ClusterRole and ClusterRoleBinding.
For the test I added TokenReview authentication and SubjectAccessReview based on the username.
The test setup creates 2 service accounts, with one bound to the ClusterRole permitting it to access the /get endpoint.

@martinhesko martinhesko linked an issue Sep 25, 2024 that may be closed by this pull request
2 tasks
@averevki averevki force-pushed the subject_access_review branch from 028b4f7 to f56444a Compare January 28, 2025 17:03
@averevki averevki force-pushed the subject_access_review branch from f56444a to da73c71 Compare January 28, 2025 17:27
@averevki averevki changed the title Subject access review tests Add test for the subject access review non resource attributes Jan 28, 2025
@averevki averevki merged commit 76366ce into Kuadrant:main Jan 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Kubernetes SubjectAccessReview test
3 participants