ContainerImage.Pinniped/internal/testutil
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
..
fakekubeapi Use new 'go.pinniped.dev/generated/latest' package. 2021-02-16 13:00:08 -06:00
testlogger Add a bit nicer assertion helper in testutil/testlogger. 2021-03-05 15:49:45 -06:00
assertions.go Be more lax in some of our test assertions. 2020-12-16 13:15:38 -06:00
certs.go dynamiccertauthority: fix cert expiration test failure 2020-10-23 15:34:25 -04:00
crypto.go Cleanup code via TODOs accumulated during token endpoint work 2020-12-04 10:09:42 -05:00
doc.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
ioutil.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
observable_with_informer_option.go Add Go vanity import paths. 2020-09-18 14:56:24 -05:00
observable_with_initial_event_option.go kubecertagent: use initial event for when key can't be found 2020-09-24 16:54:20 -04:00
roundtrip.go internal/groupsuffix: mutate TokenCredentialRequest's Authenticator 2021-02-10 15:53:44 -05:00
tempdir.go Tweak some stdlib usage so we compile under Go 1.14. 2020-11-30 10:11:41 -06:00
tempdir_go1.14.go Tweak some stdlib usage so we compile under Go 1.14. 2020-11-30 10:11:41 -06:00
tlsserver.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
transcript_logger.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00