forked from jetstack/kube-oidc-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: JoshVanL <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Token Passthrough | ||
|
||
kube-oidc-proxy can be configured to enable 'token passthrough' for tokens that | ||
fail OIDC authentication. If enabled, kube-oidc-proxy will perform a [token | ||
review](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication) | ||
API call to the configured target backend using the Kubernetes API. If | ||
successful, the request will be passed through as-is, with the token intact in | ||
the request and no other authentication used by kube-oidc-proxy. | ||
|
||
To enable token passthrough, include the following flag: | ||
|
||
``` | ||
--token-passthrough | ||
``` | ||
|
||
In the case of the Kubernetes API server, the authenticator, if audience aware, | ||
will validate the audiences of tokens using the audience of the API server. A | ||
new set of audiences can also be given which will be used to validate the token | ||
against. At least one of these audiences need to be present in the audiences of | ||
the token to be successful: | ||
|
||
``` | ||
---token-passthrough-audiences=aud1.foo.bar,aud2.foo.bar | ||
``` |