ContainerImage.Pinniped/internal/certauthority
Ryan Richard 0b300cbe42 Use TokenCredentialRequest instead of base64 token with impersonator
To make an impersonation request, first make a TokenCredentialRequest
to get a certificate. That cert will either be issued by the Kube
API server's CA or by a new CA specific to the impersonator. Either
way, you can then make a request to the impersonator and present
that client cert for auth and the impersonator will accept it and
make the impesonation call on your behalf.

The impersonator http handler now borrows some Kube library code
to handle request processing. This will allow us to more closely
mimic the behavior of a real API server, e.g. the client cert
auth will work exactly like the real API server.

Signed-off-by: Monis Khan <mok@vmware.com>
2021-03-10 10:30:06 -08:00
..
dynamiccertauthority Use TokenCredentialRequest instead of base64 token with impersonator 2021-03-10 10:30:06 -08:00
testdata Extend certauthority to support loading an existing CA. 2020-07-27 12:33:33 -07:00
certauthority_test.go Impersonator config controller writes CA cert & key to different Secret 2021-03-01 17:02:08 -08:00
certauthority.go Use TokenCredentialRequest instead of base64 token with impersonator 2021-03-10 10:30:06 -08:00