ContainerImage.Pinniped/test/library
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
..
browsertest Clean up the browsertest package a bit. 2020-12-02 17:20:24 -06:00
access.go Fix bug which prevented watches from working through impersonator 2021-02-22 17:23:11 -08:00
assertions.go All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
cli.go Add a library.PinnipedCLIPath() test helper, with caching. 2020-12-15 12:34:49 -06:00
client.go All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
credential_request.go Use TokenCredentialRequest instead of base64 token with impersonator 2021-03-10 10:30:06 -08:00
dumplogs.go All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
env.go Remove this proxy-related test code that we ended up not needing. 2021-03-04 17:19:59 -06:00
iotest.go Expose the MaskTokens function so other test code can use it. 2020-12-02 15:55:34 -06:00
iplookup_go1.14.go Fix a test issue with IPv6 localhost interfaces. 2020-12-02 17:49:21 -06:00
iplookup.go Fix a test issue with IPv6 localhost interfaces. 2020-12-02 17:49:21 -06:00
skip.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
spew.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00