gatekeeper icon indicating copy to clipboard operation
gatekeeper copied to clipboard

Authenticate API Server for Gatekeeper webhook

Open ritazh opened this issue 4 years ago • 2 comments

Describe the solution you'd like [A clear and concise description of what you want to happen.] Allow Gatekeeper webhook to validate client certs in the request to ensure the request is coming from the api server.

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

To accomplish this:

  • Currently, to enable authenticate api server requires modifying cluster resources that may not be possible in managed K8s cluster: https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#authenticate-apiservers
  • Alternatively, this proposed KEP could ensure the outgoing request is signed that would make this experience work for all clusters: https://github.com/kubernetes/enhancements/pull/2512
  • In Gatekeeper, via controller-runtime, would need to allow validation of client cert: https://github.com/kubernetes-sigs/controller-runtime/issues/873

Environment:

  • Gatekeeper version:
  • Kubernetes version: (use kubectl version):

ritazh avatar May 07 '21 20:05 ritazh

Evaluate https://github.com/kubernetes-sigs/controller-runtime/pull/802 and add a document for what it will take to allow users to configure this for external beta release.

ritazh avatar Jul 06 '22 16:07 ritazh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 04 '22 17:09 stale[bot]

@JaydipGabani is looking into this

sozercan avatar Oct 25 '22 17:10 sozercan

This issue has been addressed by #2359 NOTE: Currently there is no way to enable authenticated api server automatically for managed k8s.

ritazh avatar Nov 01 '22 19:11 ritazh