Skip to content
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

Docs deprecate token issuer validation #13019

Merged
merged 15 commits into from
Nov 18, 2021
Merged
13 changes: 10 additions & 3 deletions website/content/api-docs/auth/kubernetes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ access the Kubernetes API.
| :----- | :------------------------ |
| `POST` | `/auth/kubernetes/config` |

### Deprecations

The following parameters have been deprecated:

* `disable_iss_validation` `(bool: true)` Disable JWT issuer validation. Allows to skip ISS validation.
*TODO* instead do this.

* `issuer` `(string: "")` Optional JWT issuer. If no issuer is specified, then this plugin will
*TODO* instead do this..
imthaghost marked this conversation as resolved.
Show resolved Hide resolved

### Parameters

- `kubernetes_host` `(string: <required>)` - Host must be a host string, a host:port pair, or a URL to the base of the Kubernetes API server.
Expand All @@ -37,9 +47,7 @@ access the Kubernetes API.
JWTs. If a certificate is given, its public key will be
extracted. Not every installation of Kubernetes exposes these
keys.
- `issuer` `(string: "")` - Optional JWT issuer. If no issuer is specified, then this plugin will
use `kubernetes/serviceaccount` as the default issuer. See [these instructions](/docs/platform/k8s/csi#setting-issuer-for-kubernetes-authentication) for looking up the issuer for a given Kubernetes cluster.
- `disable_iss_validation` `(bool: false)` - Disable JWT issuer validation. Allows to skip ISS validation.
- `disable_local_ca_jwt` `(bool: false)` - Disable defaulting to the local CA cert and service account JWT when running in a Kubernetes pod.

### Caveats
Expand Down Expand Up @@ -97,7 +105,6 @@ $ curl \
"kubernetes_host": "https://192.168.99.100:8443",
"kubernetes_ca_cert": "-----BEGIN CERTIFICATE-----.....-----END CERTIFICATE-----",
"pem_keys": ["-----BEGIN CERTIFICATE-----.....", .....],
"disable_iss_validation": false,
"disable_local_ca_jwt": false
}
}
Expand Down