Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 8516ba9

Browse files
committed
Adds token pass through to proxy deployment
Signed-off-by: JoshVanL <[email protected]>
1 parent ef38f63 commit 8516ba9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

demo/manifests/components/kube-oidc-proxy.jsonnet

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ local READINESS_PORT = 8080;
5858
},
5959
{
6060
apiGroups: ['authentication.k8s.io'],
61-
resources: ['userextras/scopes'],
62-
verbs: ['impersonate'],
61+
resources: ['userextras/scopes', 'tokenreviews'],
62+
verbs: ['impersonate', 'create'],
6363
},
6464
],
6565
},
@@ -117,6 +117,7 @@ local READINESS_PORT = 8080;
117117
'--oidc-groups-claim=' + $.config.oidc.groupsClaim,
118118
'--oidc-client-id=$(OIDC_CLIENT_ID)',
119119
'--oidc-issuer-url=$(OIDC_ISSUER_URL)',
120+
'--token-passthrough',
120121
] + if std.objectHas($.config.oidc, 'caFile') then
121122
['--oidc-ca-file=' + $.config.oidc.caFile]
122123
else

0 commit comments

Comments
 (0)