ContainerImage.Pinniped/internal/controller
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
..
apicerts Use TokenCredentialRequest instead of base64 token with impersonator 2021-03-10 10:30:06 -08:00
authenticator All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
impersonatorconfig Use TokenCredentialRequest instead of base64 token with impersonator 2021-03-10 10:30:06 -08:00
issuerconfig Sort CredentialIssuer strategies in preferred order. 2021-03-03 14:03:27 -06:00
kubecertagent All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
supervisorconfig All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
supervisorstorage All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
controller_test.go Clean this test up a trivial amount using require.Implementsf(). 2020-12-17 08:38:16 -06:00
utils.go Upstream Watcher Controller Syncs less often by adjusting its filters 2020-12-18 15:41:18 -08:00