-
Notifications
You must be signed in to change notification settings - Fork 1.2k
'envtest' should support test scenarios with Authn/Authz configurations (should expose secure endpoint info of kube-apiserver) #983
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
Comments
/milestone v0.6.x |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle rotten |
/reopen |
@everpeace: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
#1486 will fix this issue. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
I'm closing this because it has been resolved by #1486 |
What is the problem
When we configured some authentication modules by
envtest.Environment.KubeAPIServerFlags
like below:envtest.Config
points to the insecure endpoint of kube-apiserver. As an official document says, we can't use this endpoint to test some scenarios containing authn/authz configurations. Moreover,envtest
doesn't expose any TLS configurations of envtest's kube-apiserver.Thus, users don't have any method to connect the secure endpoint of envtest's kube-apiserver.
Why does this need??
When controllers/webhooks interact with
SubjectAccessReview
orSelfSubjectAccessReview
, user's wanted to test some scenarios containing authz(mainly RBAC) configurations.Solution
internal.testing.integration.APIServer
can exposeTLSClientConfig
containing its ca certificate that is setup in startingAPIServer
byTinyCA
. Perhaps, we wouldenvtest.Environment.SecureConfig
for user's convenience.The text was updated successfully, but these errors were encountered: