Merge pull request #21842 from andmagom/kubernetes/mTLS

Enabling authentication to kubernetes clusters with mTLS x509 client certs
This commit is contained in:
Fredrik Adelöw
2024-01-18 14:35:34 +01:00
committed by GitHub
7 changed files with 249 additions and 30 deletions
+5
View File
@@ -100,6 +100,11 @@ export type KubernetesCredential =
type: 'bearer token';
token: string;
}
| {
type: 'x509 client certificate';
cert: string;
key: string;
}
| {
type: 'anonymous';
};
@@ -139,6 +139,7 @@ export interface KubernetesClustersSupplier {
*/
export type KubernetesCredential =
| { type: 'bearer token'; token: string }
| { type: 'x509 client certificate'; cert: string; key: string }
| { type: 'anonymous' };
/**