mirror of
https://github.com/rancher/rke.git
synced 2025-04-27 11:21:08 +00:00
Allow multiple authn strategies to be defined, including new 'webhook' strategy. Webhook strategy configuration contains the contents of the authentication webhook file as well as the cache timeout period. This change allows a Kubernetes API Auth service to authenticate user requests without proxying through the Rancher server.
24 lines
366 B
Go
24 lines
366 B
Go
package templates
|
|
|
|
const (
|
|
AuthnWebhook = `
|
|
apiVersion: v1
|
|
kind: Config
|
|
clusters:
|
|
- name: Default
|
|
cluster:
|
|
insecure-skip-tls-verify: true
|
|
server: http://127.0.0.1:6440/v1/authenticate
|
|
users:
|
|
- name: Default
|
|
user:
|
|
insecure-skip-tls-verify: true
|
|
current-context: webhook
|
|
contexts:
|
|
- name: webhook
|
|
context:
|
|
user: Default
|
|
cluster: Default
|
|
`
|
|
)
|