kopf icon indicating copy to clipboard operation
kopf copied to clipboard

kopf.on.create - how to access jwt token requesting the change?

Open styk-tv opened this issue 4 years ago • 0 comments

In scenario where OIDC is enabled on API and each user making requests is presenting their own Bearer token, kube api does its verification and so on, how would I get the token? I want to make decisions inside kopf based on the attributes from the auth token?

just a note: obviously I don't mean the authentication of the operator, but the token of the requestor submitting the request through the kubernetes api to the crd.

styk-tv avatar Apr 29 '20 18:04 styk-tv