Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat(kubernetes-auth): replace enableSsl with verifyTlsCertificate for TLS verification
Victor Hugo dos Santos5985165c2822
diff --git a/backend/src/db/migrations/20260430141040_add-enable-ssl-to-identity-kubernetes-auth.ts b/backend/src/db/migrations/20260430141040_add-verify-tls-certificate-to-identity-kubernetes-auth.tssimilarity index 72%rename from backend/src/db/migrations/20260430141040_add-enable-ssl-to-identity-kubernetes-auth.tsrename to backend/src/db/migrations/20260430141040_add-verify-tls-certificate-to-identity-kubernetes-auth.tsindex 6b35a17076..f9c84a3d57 100644--- a/backend/src/db/migrations/20260430141040_add-enable-ssl-to-identity-kubernetes-auth.ts+++ b/backend/src/db/migrations/20260430141040_add-verify-tls-certificate-to-identity-kubernetes-auth.ts@@ -3,21 +3,21 @@ import { Knex } from "knex";import { TableName } from "../schemas";export async function up(knex: Knex): Promise<void> {- if (!(await knex.schema.hasColumn(TableName.IdentityKubernetesAuth, "enableSsl"))) {+ if (!(await knex.schema.hasColumn(TableName.IdentityKubernetesAuth, "verifyTlsCertificate"))) {await knex.schema.alterTable(TableName.IdentityKubernetesAuth, (t) => {- t.boolean("enableSsl").defaultTo(false).notNullable();+ t.boolean("verifyTlsCertificate").defaultTo(false).notNullable();});await knex(TableName.IdentityKubernetesAuth).whereNotNull("encryptedKubernetesCaCertificate")- .update({ enableSsl: true });+ .update({ verifyTlsCertificate: true });}}export async function down(knex: Knex): Promise<void> {- if (await knex.schema.hasColumn(TableName.IdentityKubernetesAuth, "enableSsl")) {+ if (await knex.schema.hasColumn(TableName.IdentityKubernetesAuth, "verifyTlsCertificate")) {await knex.schema.alterTable(TableName.IdentityKubernetesAuth, (t) => {- t.dropColumn("enableSsl");+ t.dropColumn("verifyTlsCertificate");});}}diff --git a/backend/src/db/schemas/identity-kubernetes-auths.ts b/backend/src/db/schemas/identity-kubernetes-auths.tsindex 9e908ffa71..e03d8e6253 100644--- a/backend/src/db/schemas/identity-kubernetes-auths.ts+++ b/backend/src/db/schemas/identity-kubernetes-auths.ts@@ -35,7 +35,7 @@ export const IdentityKubernetesAuthsSchema = z.object({tokenReviewMode: z.string().default("api"),gatewayV2Id: z.string().uuid().nullable().optional(),gatewayPoolId: z.string().uuid().nullable().optional(),- enableSsl: z.boolean().default(false)+ verifyTlsCertificate: z.boolean().default(false)});export type TIdentityKubernetesAuths = z.infer<typeof IdentityKubernetesAuthsSchema>;diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.tsindex 27bb568bc9..83a825385e 100644--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@ -573,9 +573,9 @@ export const KUBERNETES_AUTH = {identityId: "The ID of the machine identity to attach the configuration onto.",kubernetesHost: "The host string, host:port pair, or URL to the base of the Kubernetes API server.",caCert:- "The PEM-encoded CA certificate used to validate the Kubernetes API server's TLS certificate. Required when enableSsl is true.",- enableSsl:- "Whether to verify the Kubernetes API server's TLS certificate against the configured CA certificate. When true, caCert is required. When false, TLS verification is skipped. If omitted, defaults to true when caCert is provided and false otherwise.",+ "The PEM-encoded CA certificate used to validate the Kubernetes API server's TLS certificate. Required when verifyTlsCertificate is true.",+ verifyTlsCertificate:+ "Whether to verify the Kubernetes API server's TLS certificate against the configured CA certificate. When true, caCert is required. When false, the connection is still over HTTPS but the API server's certificate is not verified. If omitted, defaults to true when caCert is provided and false otherwise.",tokenReviewerJwt:"Optional JWT token for accessing Kubernetes TokenReview API. If provided, this long-lived token will be used to validate service account tokens during authentication. If omitted, the client's own JWT will be used instead, which requires the client to have the system:auth-delegator ClusterRole binding.",tokenReviewMode:@@ -595,9 +595,9 @@ export const KUBERNETES_AUTH = {identityId: "The ID of the machine identity to update the auth method for.",kubernetesHost: "The new host string, host:port pair, or URL to the base of the Kubernetes API server.",caCert:- "The new PEM-encoded CA certificate used to validate the Kubernetes API server's TLS certificate. Required when enableSsl is true.",- enableSsl:- "Whether to verify the Kubernetes API server's TLS certificate against the configured CA certificate. When true, caCert is required. When false, TLS verification is skipped. If omitted while supplying a non-empty caCert in the same update, the toggle is auto-promoted to true; otherwise the stored value is preserved.",+ "The new PEM-encoded CA certificate used to validate the Kubernetes API server's TLS certificate. Required when verifyTlsCertificate is true.",+ verifyTlsCertificate:+ "Whether to verify the Kubernetes API server's TLS certificate against the configured CA certificate. When true, caCert is required. When false, the connection is still over HTTPS but the API server's certificate is not verified. If omitted while supplying a non-empty caCert in the same update, the toggle is auto-promoted to true; otherwise the stored value is preserved.",tokenReviewerJwt:"Optional JWT token for accessing Kubernetes TokenReview API. If provided, this long-lived token will be used to validate service account tokens during authentication. If omitted, the client's own JWT will be used instead, which requires the client to have the system:auth-delegator ClusterRole binding.",tokenReviewMode:diff --git a/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts b/backend/src/server/routes/v1/identity-kubernetes-auth-router.tsindex cd11851387..1afeaae910 100644--- a/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts+++ b/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts@@ -32,7 +32,7 @@ const IdentityKubernetesAuthResponseSchema = IdentityKubernetesAuthsSchema.pick(allowedAudience: true,gatewayId: true,gatewayPoolId: true,- enableSsl: true+ verifyTlsCertificate: true}).extend({caCert: z.string(),tokenReviewerJwt: z.string().optional().nullable()@@ -189,7 +189,7 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide}),caCert: z.string().trim().default("").describe(KUBERNETES_AUTH.ATTACH.caCert),- enableSsl: z.boolean().optional().describe(KUBERNETES_AUTH.ATTACH.enableSsl),+ verifyTlsCertificate: z.boolean().optional().describe(KUBERNETES_AUTH.ATTACH.verifyTlsCertificate),tokenReviewerJwt: z.string().trim().optional().describe(KUBERNETES_AUTH.ATTACH.tokenReviewerJwt),tokenReviewMode: z.nativeEnum(IdentityKubernetesAuthTokenReviewMode)@@ -264,7 +264,7 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide});}if (- data.enableSsl &&+ data.verifyTlsCertificate &&data.tokenReviewMode === IdentityKubernetesAuthTokenReviewMode.Api &&!data.caCert?.length) {@@ -272,7 +272,7 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvidepath: ["caCert"],code: z.ZodIssueCode.custom,message:- "A CA certificate is required when SSL verification is enabled. Either paste the Kubernetes API server's CA certificate or disable SSL verification."+ "A CA certificate is required when TLS certificate verification is enabled. Either paste the Kubernetes API server's CA certificate or disable verification."});}}),@@ -378,7 +378,7 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide}),caCert: z.string().trim().optional().describe(KUBERNETES_AUTH.UPDATE.caCert),- enableSsl: z.boolean().optional().describe(KUBERNETES_AUTH.UPDATE.enableSsl),+ verifyTlsCertificate: z.boolean().optional().describe(KUBERNETES_AUTH.UPDATE.verifyTlsCertificate),tokenReviewerJwt: z.string().trim().nullable().optional().describe(KUBERNETES_AUTH.UPDATE.tokenReviewerJwt),tokenReviewMode: z.nativeEnum(IdentityKubernetesAuthTokenReviewMode)diff --git a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.tsindex 5e1c9d742d..97c3151a90 100644--- a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts+++ b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts@@ -127,7 +127,7 @@ export const identityKubernetesAuthServiceFactory = ({targetHost?: string;targetPort?: number;caCert?: string;- enableSsl?: boolean;+ verifyTlsCertificate?: boolean;reviewTokenThroughGateway: boolean;},gatewayCallback: (host: string, port: number, httpsAgent?: https.Agent) => Promise<T>@@ -149,7 +149,7 @@ export const identityKubernetesAuthServiceFactory = ({if (!inputs.reviewTokenThroughGateway) {httpsAgent = new https.Agent({ca: inputs.caCert || undefined,- rejectUnauthorized: inputs.enableSsl ?? false,+ rejectUnauthorized: inputs.verifyTlsCertificate ?? false,servername: inputs.targetHost});}@@ -196,7 +196,7 @@ export const identityKubernetesAuthServiceFactory = ({? {httpsAgent: new https.Agent({ca: inputs.caCert || undefined,- rejectUnauthorized: inputs.enableSsl ?? false,+ rejectUnauthorized: inputs.verifyTlsCertificate ?? false,servername: inputs.targetHost})}@@ -214,7 +214,7 @@ export const identityKubernetesAuthServiceFactory = ({*/const $createGatewayValidationRequest = (gatewayId: string,- options?: { kubernetesHost?: string; caCert?: string; enableSsl?: boolean }+ options?: { kubernetesHost?: string; caCert?: string; verifyTlsCertificate?: boolean }): GatewayRequestExecutor => {const useGatewayServiceAccount = !options?.kubernetesHost;@@ -236,7 +236,7 @@ export const identityKubernetesAuthServiceFactory = ({targetHost,targetPort,caCert: options?.caCert,- enableSsl: options?.enableSsl+ verifyTlsCertificate: options?.verifyTlsCertificate},async (host: string, port: number, httpsAgent?: https.Agent) => {const config: AxiosRequestConfig = {@@ -360,7 +360,7 @@ export const identityKubernetesAuthServiceFactory = ({timeout: 10000,httpsAgent: new https.Agent({ca: caCert || undefined,- rejectUnauthorized: identityKubernetesAuth.enableSsl ?? false,+ rejectUnauthorized: identityKubernetesAuth.verifyTlsCertificate ?? false,servername})}@@ -479,7 +479,7 @@ export const identityKubernetesAuthServiceFactory = ({: ((identityKubernetesAuth.gatewayV2Id ?? identityKubernetesAuth.gatewayId) as string),gatewayPoolId: identityKubernetesAuth.gatewayPoolId ?? undefined,caCert: caCert || undefined,- enableSsl: identityKubernetesAuth.enableSsl,+ verifyTlsCertificate: identityKubernetesAuth.verifyTlsCertificate,reviewTokenThroughGateway: true},tokenReviewCallbackThroughGateway@@ -513,7 +513,7 @@ export const identityKubernetesAuthServiceFactory = ({targetHost: k8sHost,targetPort: k8sPort ? Number(k8sPort) : 443,caCert: caCert || undefined,- enableSsl: identityKubernetesAuth.enableSsl,+ verifyTlsCertificate: identityKubernetesAuth.verifyTlsCertificate,reviewTokenThroughGateway: false},tokenReviewCallbackRaw@@ -751,7 +751,7 @@ export const identityKubernetesAuthServiceFactory = ({gatewayPoolId,kubernetesHost,caCert,- enableSsl,+ verifyTlsCertificate,tokenReviewerJwt,tokenReviewMode,allowedNamespaces,@@ -881,7 +881,7 @@ export const identityKubernetesAuthServiceFactory = ({const gatewayExecutor = $createGatewayValidationRequest(gatewayId, {kubernetesHost,caCert: caCert || undefined,- enableSsl+ verifyTlsCertificate});logger.info({ gatewayId, kubernetesHost }, "Validating Kubernetes connectivity through gateway");await validateKubernetesHostConnectivity({ gatewayExecutor });@@ -924,7 +924,7 @@ export const identityKubernetesAuthServiceFactory = ({const gatewayExecutor = $createGatewayValidationRequest(validationGateway.id, {kubernetesHost,caCert: caCert || undefined,- enableSsl+ verifyTlsCertificate});await validateKubernetesHostConnectivity({ gatewayExecutor });if (tokenReviewerJwt) {@@ -936,7 +936,7 @@ export const identityKubernetesAuthServiceFactory = ({await validateKubernetesHostConnectivity({kubernetesHost,caCert: caCert || undefined,- enableSsl+ verifyTlsCertificate});if (tokenReviewerJwt) {@@ -945,7 +945,7 @@ export const identityKubernetesAuthServiceFactory = ({kubernetesHost,tokenReviewerJwt,caCert: caCert || undefined,- enableSsl+ verifyTlsCertificate});}}@@ -980,7 +980,7 @@ export const identityKubernetesAuthServiceFactory = ({gatewayId: resolvedGatewayId,gatewayV2Id: resolvedGatewayV2Id,gatewayPoolId: gatewayPoolId ?? null,- enableSsl: enableSsl ?? Boolean(caCert),+ verifyTlsCertificate: verifyTlsCertificate ?? Boolean(caCert),accessTokenTrustedIps: JSON.stringify(reformattedAccessTokenTrustedIps),encryptedKubernetesTokenReviewerJwt: tokenReviewerJwt? encryptor({ plainText: Buffer.from(tokenReviewerJwt) }).cipherTextBlob@@ -999,7 +999,7 @@ export const identityKubernetesAuthServiceFactory = ({identityId,kubernetesHost,caCert,- enableSsl,+ verifyTlsCertificate,tokenReviewerJwt,tokenReviewMode,allowedNamespaces,@@ -1200,22 +1200,22 @@ export const identityKubernetesAuthServiceFactory = ({// Auto-promote enableSsl when the caller is supplying a non-empty CA in this// update without explicitly setting the toggle. Required for backwards compatibility- let resolvedEnableSsl: boolean | undefined;- if (enableSsl !== undefined) {- resolvedEnableSsl = enableSsl;+ let resolvedVerifyTlsCertificate: boolean | undefined;+ if (verifyTlsCertificate !== undefined) {+ resolvedVerifyTlsCertificate = verifyTlsCertificate;} else if (caCert !== undefined && caCert.length > 0) {- resolvedEnableSsl = true;+ resolvedVerifyTlsCertificate = true;}- const effectiveEnableSsl = resolvedEnableSsl ?? identityKubernetesAuth.enableSsl;+ const effectiveVerifyTlsCertificate = resolvedVerifyTlsCertificate ?? identityKubernetesAuth.verifyTlsCertificate;if (- effectiveEnableSsl &&+ effectiveVerifyTlsCertificate &&effectiveTokenReviewMode === IdentityKubernetesAuthTokenReviewMode.Api &&!effectiveCaCert) {throw new BadRequestError({message:- "A CA certificate is required when SSL verification is enabled. Either paste the Kubernetes API server's CA certificate or disable SSL verification."+ "A CA certificate is required when TLS certificate verification is enabled. Either paste the Kubernetes API server's CA certificate or disable verification."});}@@ -1239,7 +1239,7 @@ export const identityKubernetesAuthServiceFactory = ({const gatewayExecutor = $createGatewayValidationRequest(validationGatewayId, {kubernetesHost: effectiveKubernetesHost,caCert: effectiveCaCert,- enableSsl: effectiveEnableSsl+ verifyTlsCertificate: effectiveVerifyTlsCertificate});logger.info({@@ -1261,7 +1261,7 @@ export const identityKubernetesAuthServiceFactory = ({await validateKubernetesHostConnectivity({kubernetesHost,caCert: effectiveCaCert,- enableSsl: effectiveEnableSsl+ verifyTlsCertificate: effectiveVerifyTlsCertificate});}@@ -1274,7 +1274,7 @@ export const identityKubernetesAuthServiceFactory = ({kubernetesHost: effectiveKubernetesHost,tokenReviewerJwt,caCert: effectiveCaCert,- enableSsl: effectiveEnableSsl+ verifyTlsCertificate: effectiveVerifyTlsCertificate});}}@@ -1288,7 +1288,7 @@ export const identityKubernetesAuthServiceFactory = ({gatewayId: shouldUpdateGatewayId ? gatewayIdValue : undefined,gatewayV2Id: shouldUpdateGatewayId ? gatewayV2IdValue : undefined,gatewayPoolId: gatewayPoolIdValue,- enableSsl: resolvedEnableSsl,+ verifyTlsCertificate: resolvedVerifyTlsCertificate,accessTokenMaxTTL,accessTokenTTL,accessTokenNumUsesLimit,diff --git a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-types.ts b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-types.tsindex 7c130208b8..af8bb4db34 100644--- a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-types.ts+++ b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-types.ts@@ -15,7 +15,7 @@ export type TAttachKubernetesAuthDTO = {identityId: string;kubernetesHost: string | null;caCert: string;- enableSsl?: boolean;+ verifyTlsCertificate?: boolean;tokenReviewerJwt?: string;tokenReviewMode: IdentityKubernetesAuthTokenReviewMode;allowedNamespaces: string;@@ -34,7 +34,7 @@ export type TUpdateKubernetesAuthDTO = {identityId: string;kubernetesHost?: string | null;caCert?: string;- enableSsl?: boolean;+ verifyTlsCertificate?: boolean;tokenReviewerJwt?: string | null;tokenReviewMode?: IdentityKubernetesAuthTokenReviewMode;allowedNamespaces?: string;diff --git a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-validators.ts b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-validators.tsindex 070752d096..e1ca117bb1 100644--- a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-validators.ts+++ b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-validators.ts@@ -26,12 +26,12 @@ export type GatewayRequestExecutor = <T>(export const validateKubernetesHostConnectivity = async ({kubernetesHost,caCert,- enableSsl,+ verifyTlsCertificate,gatewayExecutor}: {kubernetesHost?: string;caCert?: string;- enableSsl?: boolean;+ verifyTlsCertificate?: boolean;gatewayExecutor?: GatewayRequestExecutor;}): Promise<void> => {const isGatewayMode = Boolean(gatewayExecutor);@@ -55,7 +55,7 @@ export const validateKubernetesHostConnectivity = async ({const httpsAgent = new https.Agent({ca: caCert || undefined,- rejectUnauthorized: enableSsl ?? false+ rejectUnauthorized: verifyTlsCertificate ?? true});await blockLocalAndPrivateIpAddresses(kubernetesHost);@@ -112,13 +112,13 @@ export const validateTokenReviewerPermissions = async ({kubernetesHost,tokenReviewerJwt,caCert,- enableSsl,+ verifyTlsCertificate,gatewayExecutor}: {kubernetesHost?: string;tokenReviewerJwt?: string;caCert?: string;- enableSsl?: boolean;+ verifyTlsCertificate?: boolean;gatewayExecutor?: GatewayRequestExecutor;}): Promise<void> => {const isGatewayMode = Boolean(gatewayExecutor);@@ -160,7 +160,7 @@ export const validateTokenReviewerPermissions = async ({const httpsAgent = new https.Agent({ca: caCert || undefined,- rejectUnauthorized: enableSsl ?? false+ rejectUnauthorized: verifyTlsCertificate ?? false});await blockLocalAndPrivateIpAddresses(kubernetesHost);diff --git a/docs/documentation/platform/identities/kubernetes-auth.mdx b/docs/documentation/platform/identities/kubernetes-auth.mdxindex 36f2cb73f4..2992089511 100644--- a/docs/documentation/platform/identities/kubernetes-auth.mdx+++ b/docs/documentation/platform/identities/kubernetes-auth.mdx@@ -248,8 +248,8 @@ In the following steps, we explore how to create and use identities for your app- Allowed Service Account Names: A comma-separated list of trusted service account names that are allowed to authenticate with Infisical.- Allowed Namespaces: A comma-separated list of trusted namespaces that service accounts must belong to authenticate with Infisical.- Allowed Audience: An optional audience claim that the service account JWT token must have to authenticate with Infisical.- - Enable SSL Verification: When enabled, Infisical validates the Kubernetes API server's TLS certificate against the CA certificate provided below. Strongly recommended. Pasting a CA certificate below auto-enables this.- - CA Certificate: The PEM-encoded CA cert that issued the Kubernetes API server's TLS certificate. Required when SSL verification is enabled.+ - Verify TLS Certificate: When enabled, Infisical validates the Kubernetes API server's TLS certificate against the CA certificate provided below. Strongly recommended. Pasting a CA certificate below auto-enables this. When disabled, the connection is still over HTTPS but the API server's identity is not verified.+ - CA Certificate: The PEM-encoded CA cert that issued the Kubernetes API server's TLS certificate. Required when TLS certificate verification is enabled.- Access Token TTL (default is `2592000` equivalent to 30 days): The lifetime for an acccess token in seconds. This value will be referenced at renewal time.- Access Token Max TTL (default is `2592000` equivalent to 30 days): The maximum lifetime for an acccess token in seconds. This value will be referenced at renewal time.- Access Token Max Number of Uses (default is `0`): The maximum number of times that an access token can be used; a value of `0` implies infinite number of uses.diff --git a/frontend/src/hooks/api/identities/types.ts b/frontend/src/hooks/api/identities/types.tsindex 4acca707e9..6684541df8 100644--- a/frontend/src/hooks/api/identities/types.ts+++ b/frontend/src/hooks/api/identities/types.ts@@ -511,7 +511,7 @@ export type IdentityKubernetesAuth = {allowedNames: string;allowedAudience: string;caCert: string;- enableSsl: boolean;+ verifyTlsCertificate: boolean;accessTokenTTL: number;accessTokenMaxTTL: number;accessTokenNumUsesLimit: number;@@ -533,7 +533,7 @@ export type AddIdentityKubernetesAuthDTO = {gatewayId?: string | null;gatewayPoolId?: string | null;caCert: string;- enableSsl?: boolean;+ verifyTlsCertificate?: boolean;accessTokenTTL: number;accessTokenMaxTTL: number;accessTokenNumUsesLimit: number;@@ -555,7 +555,7 @@ export type UpdateIdentityKubernetesAuthDTO = {gatewayId?: string | null;gatewayPoolId?: string | null;caCert?: string;- enableSsl?: boolean;+ verifyTlsCertificate?: boolean;accessTokenTTL?: number;accessTokenMaxTTL?: number;accessTokenNumUsesLimit?: number;diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityKubernetesAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityKubernetesAuthForm.tsxindex a89fa91a5c..25d8f2a34d 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityKubernetesAuthForm.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityKubernetesAuthForm.tsx@@ -62,7 +62,7 @@ const schema = zallowedNamespaces: z.string(),allowedAudience: z.string(),caCert: z.string().optional(),- enableSsl: z.boolean().default(true),+ verifyTlsCertificate: z.boolean().default(true),accessTokenTTL: z.string().refine((val) => Number(val) <= 315360000, {message: "Access Token TTL cannot be greater than 315360000"}),@@ -104,14 +104,14 @@ const schema = z}if (- data.enableSsl &&+ data.verifyTlsCertificate &&data.tokenReviewMode === IdentityKubernetesAuthTokenReviewMode.Api &&!data.caCert?.length) {ctx.addIssue({path: ["caCert"],code: z.ZodIssueCode.custom,- message: "A CA certificate is required when SSL verification is enabled."+ message: "A CA certificate is required when TLS certificate verification is enabled."});}});@@ -180,7 +180,7 @@ export const IdentityKubernetesAuthForm = ({gatewayId: "",allowedAudience: "",caCert: "",- enableSsl: true,+ verifyTlsCertificate: true,accessTokenTTL: "2592000",accessTokenMaxTTL: "2592000",accessTokenNumUsesLimit: "",@@ -204,7 +204,7 @@ export const IdentityKubernetesAuthForm = ({allowedNamespaces: data.allowedNamespaces,allowedAudience: data.allowedAudience,caCert: data.caCert,- enableSsl: data.enableSsl ?? true,+ verifyTlsCertificate: data.verifyTlsCertificate ?? true,gatewayId: data.gatewayPoolId ? null : data.gatewayId || null,gatewayPoolId: data.gatewayPoolId || null,accessTokenTTL: String(data.accessTokenTTL),@@ -229,7 +229,7 @@ export const IdentityKubernetesAuthForm = ({allowedNamespaces: "",allowedAudience: "",caCert: "",- enableSsl: true,+ verifyTlsCertificate: true,accessTokenTTL: "2592000",accessTokenMaxTTL: "2592000",accessTokenNumUsesLimit: "",@@ -330,7 +330,7 @@ export const IdentityKubernetesAuthForm = ({allowedNamespaces,allowedAudience,caCert,- enableSsl,+ verifyTlsCertificate,accessTokenTTL,accessTokenMaxTTL,accessTokenNumUsesLimit,@@ -356,7 +356,7 @@ export const IdentityKubernetesAuthForm = ({allowedNamespaces,allowedAudience,caCert,- enableSsl,+ verifyTlsCertificate,identityId,gatewayId: gatewayPoolId ? null : gatewayId || null,gatewayPoolId: gatewayPoolId || null,@@ -384,7 +384,7 @@ export const IdentityKubernetesAuthForm = ({gatewayId: gatewayPoolId ? null : gatewayId || null,gatewayPoolId: gatewayPoolId || null,caCert: caCert || "",- enableSsl,+ verifyTlsCertificate,tokenReviewMode,accessTokenTTL: Number(accessTokenTTL),accessTokenMaxTTL: Number(accessTokenMaxTTL),@@ -408,7 +408,7 @@ export const IdentityKubernetesAuthForm = ({useEffect(() => {if (watchedCaCert && watchedCaCert.length > 0) {- setValue("enableSsl", true, { shouldDirty: true });+ setValue("verifyTlsCertificate", true, { shouldDirty: true });}}, [watchedCaCert, setValue]);@@ -722,18 +722,18 @@ export const IdentityKubernetesAuthForm = ({<><Controllercontrol={control}- name="enableSsl"+ name="verifyTlsCertificate"render={({ field: { value, onChange }, fieldState: { error } }) => (<FormControl isError={Boolean(error?.message)} errorText={error?.message}><SwitchclassName="bg-mineshaft-400/50 shadow-inner data-[state=checked]:bg-green/80"- id="k8s-enable-ssl"+ id="k8s-verify-tls-certificate"thumbClassName="bg-mineshaft-800"isChecked={value}onCheckedChange={onChange}><p className="w-44 text-sm font-normal text-mineshaft-400">- Enable SSL Verification+ Verify TLS Certificate<TooltipclassName="max-w-md"content={@@ -744,8 +744,10 @@ export const IdentityKubernetesAuthForm = ({</p><p>Leaving this disabled means any host that responds at the configured- Kubernetes URL will be trusted, regardless of its certificate. Only- do this for testing or if you cannot supply a CA certificate.+ Kubernetes URL will be trusted, regardless of its certificate. The+ connection is still over HTTPS, but the API server's identity+ is not verified. Only do this for testing or if you cannot supply a+ CA certificate.</p></div>}@@ -765,22 +767,21 @@ export const IdentityKubernetesAuthForm = ({control={control}name="caCert"render={({ field, fieldState: { error } }) => {- const enableSsl = watch("enableSsl");+ const verifyTlsCertificate = watch("verifyTlsCertificate");return (<FormControllabel="CA Certificate"errorText={error?.message}isError={Boolean(error)}- isRequired={enableSsl}+ isRequired={verifyTlsCertificate}tooltipClassName="max-w-md"tooltipText={<div className="flex flex-col gap-2"><p>- An optional PEM-encoded CA certificate that issued the Kubernetes API- server's TLS certificate. Required when SSL verification is- enabled.+ The PEM-encoded CA certificate that issued the Kubernetes API+ server's TLS certificate. Required when TLS certificate+ verification is enabled.</p>- <p>This is required when SSL verification is enabled.</p></div>}>