Enabling authentication to kubernetes clusters with mTLS x509 client certs

Signed-off-by: Andres Mauricio Gomez P <andmagom@outlook.com>
This commit is contained in:
Andres Mauricio Gomez P
2023-12-13 10:21:56 -05:00
parent d7a1adf48b
commit f180cba319
6 changed files with 43 additions and 21 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' };
/**