-
Notifications
You must be signed in to change notification settings - Fork 1.6k
KEP-2510: Request Bearer Token for Outgoing Webhook Requests #2512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Welcome @benhxy! |
|
Hi @benhxy. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: benhxy The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cc |
|
To confirm ( and please update the docs to make it explicit ): the TokenRequest will be made for an audience == base URL of the webhook server, for external address ? And I assume serviceName.namespace.svc for the in-cluster webhooks ? Important to be very precise about this, so validation can be properly implemented. Also I assume this is dependent on the APIserver exposing the OIDC discovery, which I believe is merged - would be good to have a link to that in the docs and use it in any sample code / test. Thanks a lot for moving this forward, looking forward to use it in Istio ! |
sftim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some (very informal) feedback
| kind: WebhookAdmissionConfiguration | ||
| kubeConfigFile: "<path-to-kubeconfig-file>" | ||
| ``` | ||
| The token defined here in a kubeconfig file will not be used, if the `tokenRequest` source is configured. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it should instead be an error to define the token here when tokenRequest source is configured.
|
|
||
| ### User-facing changes | ||
|
|
||
| A new field `authenticationSource` will be added to WebhookClientConfig. In this proposal, user can use `tokenRequest` source for requesting a bearer token. By doing this, users no longer have to mint token or ceritificate/key, or to create kubeconfig files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
| A new field `authenticationSource` will be added to WebhookClientConfig. In this proposal, user can use `tokenRequest` source for requesting a bearer token. By doing this, users no longer have to mint token or ceritificate/key, or to create kubeconfig files. | |
| A new field `authenticationSource` will be added to WebhookClientConfig. In this proposal, user can use `tokenRequest` source for requesting a bearer token. By doing this, users no longer have to mint token or certificate/key, or to create kubeconfig files. |
| - periodic API calls to reconcile state (e.g. periodic fetching state, | ||
| heartbeats, leader election, etc.) | ||
| --> | ||
| TokenRequest API call. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These'd be creates, right?
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
Discussed with my team. This feature is not seeing much demand. The token injection point between aggregate layer and custom API server is also unclear. Closing this KEP. |
This is a proposal to add an authentication source to webhook client config to simplify authentication setup.
Original proposal: #658
Updated proposal: #2510