Skip to content

Commit

Permalink
Update the default value of the bearer_token parameter to send the …
Browse files Browse the repository at this point in the history
…bearer token only to secure https endpoints by default (#10709)

to send the bearer token only to secure https endpoints and not to clear text http endpoints.
  • Loading branch information
L3n41c authored and cswatt committed Jan 5, 2022
1 parent ebf854f commit b9bc010
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions kube_scheduler/assets/configuration/spec.yaml
Expand Up @@ -77,9 +77,11 @@ files:
against the APIServer to retrieve metrics.
enabled: true
value:
type: boolean
example: true
example: tls_only
default: false
anyOf:
- type: boolean
- type: string
- name: bearer_token_path
description: Used to specify the path where the service account token is located.
value:
Expand Down
Expand Up @@ -31,11 +31,11 @@ instances:
#
# prometheus_url: http://%%host%%:10251/metrics

## @param bearer_token_auth - boolean - optional - default: true
## @param bearer_token_auth - boolean or string - optional - default: tls_only
## Used if you are using RBACs and need the Agent to authenticate
## against the APIServer to retrieve metrics.
#
bearer_token_auth: true
bearer_token_auth: tls_only

## @param bearer_token_path - string - optional - default: /var/run/secrets/kubernetes.io/serviceaccount/token
## Used to specify the path where the service account token is located.
Expand Down

0 comments on commit b9bc010

Please sign in to comment.