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
Fix linter issues
Fang-Pen Lin51f7b97df1c7
diff --git a/frontend/src/hooks/api/pam/types/kubernetes-resource.ts b/frontend/src/hooks/api/pam/types/kubernetes-resource.tsindex cb76709177..f166aa34f2 100644--- a/frontend/src/hooks/api/pam/types/kubernetes-resource.ts+++ b/frontend/src/hooks/api/pam/types/kubernetes-resource.ts@@ -8,9 +8,8 @@ export enum KubernetesAuthMethod {export type TKubernetesConnectionDetails = {url: string;- namespace: string;- skipTLSVerify: boolean;- caCertificate?: string;+ sslRejectUnauthorized: boolean;+ sslCertificate?: string;};export type TKubernetesServiceAccountTokenCredentials = {diff --git a/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/shared/KubernetesResourceFields.tsx b/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/shared/KubernetesResourceFields.tsxindex 4019355d52..de255f1622 100644--- a/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/shared/KubernetesResourceFields.tsx+++ b/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/shared/KubernetesResourceFields.tsx@@ -5,9 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { FormControl, Input, Switch, TextArea, Tooltip } from "@app/components/v2";export const KubernetesResourceFields = () => {- const { control, watch } = useFormContext();-- const skipTLSVerify = watch("connectionDetails.skipTLSVerify");+ const { control } = useFormContext();return (<div className="mb-4 rounded-sm border border-mineshaft-600 bg-mineshaft-700/70 p-3">@@ -32,14 +30,12 @@ export const KubernetesResourceFields = () => {<FormControlerrorText={error?.message}isError={Boolean(error?.message)}- className={skipTLSVerify ? "opacity-50" : ""}label="CA Certificate"isOptional><TextAreaclassName="h-14 resize-none!"{...field}- isDisabled={skipTLSVerify}placeholder="-----BEGIN CERTIFICATE-----..."/></FormControl>