mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 01:27:41 +00:00
lint and fix license
This commit is contained in:
@@ -58,7 +58,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
|
|||||||
enforceMfa: false,
|
enforceMfa: false,
|
||||||
projectTemplates: false,
|
projectTemplates: false,
|
||||||
kmip: false,
|
kmip: false,
|
||||||
gateway: true,
|
gateway: false,
|
||||||
sshHostGroups: false,
|
sshHostGroups: false,
|
||||||
secretScanning: false,
|
secretScanning: false,
|
||||||
enterpriseSecretSyncs: false,
|
enterpriseSecretSyncs: false,
|
||||||
@@ -67,7 +67,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
|
|||||||
fips: false,
|
fips: false,
|
||||||
eventSubscriptions: false,
|
eventSubscriptions: false,
|
||||||
machineIdentityAuthTemplates: false,
|
machineIdentityAuthTemplates: false,
|
||||||
pam: true
|
pam: false
|
||||||
});
|
});
|
||||||
|
|
||||||
export const setupLicenseRequestWithStore = (
|
export const setupLicenseRequestWithStore = (
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ import { registerSecretRequestsRouter } from "./secret-requests-router";
|
|||||||
import { registerSecretSharingRouter } from "./secret-sharing-router";
|
import { registerSecretSharingRouter } from "./secret-sharing-router";
|
||||||
import { registerSecretTagRouter } from "./secret-tag-router";
|
import { registerSecretTagRouter } from "./secret-tag-router";
|
||||||
import { registerSlackRouter } from "./slack-router";
|
import { registerSlackRouter } from "./slack-router";
|
||||||
import { registerUpgradePathRouter } from "./upgrade-path-router";
|
|
||||||
import { registerSsoRouter } from "./sso-router";
|
import { registerSsoRouter } from "./sso-router";
|
||||||
|
import { registerUpgradePathRouter } from "./upgrade-path-router";
|
||||||
import { registerUserActionRouter } from "./user-action-router";
|
import { registerUserActionRouter } from "./user-action-router";
|
||||||
import { registerUserEngagementRouter } from "./user-engagement-router";
|
import { registerUserEngagementRouter } from "./user-engagement-router";
|
||||||
import { registerUserRouter } from "./user-router";
|
import { registerUserRouter } from "./user-router";
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import { CredentialDisplay } from "@app/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/CredentialDisplay";
|
import { CredentialDisplay } from "@app/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/CredentialDisplay";
|
||||||
|
import { TRedisCredentialsRotationGeneratedCredentialsResponse } from "@app/hooks/api/secretRotationsV2/types/redis-credentials-rotation";
|
||||||
|
|
||||||
import { ViewRotationGeneratedCredentialsDisplay } from "./shared";
|
import { ViewRotationGeneratedCredentialsDisplay } from "./shared";
|
||||||
import { TRedisCredentialsRotationGeneratedCredentialsResponse } from "@app/hooks/api/secretRotationsV2/types/redis-credentials-rotation";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
generatedCredentialsResponse: TRedisCredentialsRotationGeneratedCredentialsResponse;
|
generatedCredentialsResponse: TRedisCredentialsRotationGeneratedCredentialsResponse;
|
||||||
|
|||||||
+2
-1
@@ -3,6 +3,7 @@ import { Controller, useFormContext } from "react-hook-form";
|
|||||||
import { TSecretRotationV2Form } from "@app/components/secret-rotations-v2/forms/schemas";
|
import { TSecretRotationV2Form } from "@app/components/secret-rotations-v2/forms/schemas";
|
||||||
import { FormControl, Input } from "@app/components/v2";
|
import { FormControl, Input } from "@app/components/v2";
|
||||||
import { SecretRotation } from "@app/hooks/api/secretRotationsV2";
|
import { SecretRotation } from "@app/hooks/api/secretRotationsV2";
|
||||||
|
|
||||||
import { DEFAULT_PASSWORD_REQUIREMENTS } from "../schemas/shared";
|
import { DEFAULT_PASSWORD_REQUIREMENTS } from "../schemas/shared";
|
||||||
|
|
||||||
export const RedisCredentialsRotationParametersFields = () => {
|
export const RedisCredentialsRotationParametersFields = () => {
|
||||||
@@ -18,7 +19,7 @@ export const RedisCredentialsRotationParametersFields = () => {
|
|||||||
<Controller
|
<Controller
|
||||||
control={control}
|
control={control}
|
||||||
name="parameters.permissionScope"
|
name="parameters.permissionScope"
|
||||||
defaultValue={""}
|
defaultValue=""
|
||||||
render={({ field, fieldState: { error } }) => (
|
render={({ field, fieldState: { error } }) => (
|
||||||
<FormControl
|
<FormControl
|
||||||
tooltipClassName="max-w-[40rem] w-full"
|
tooltipClassName="max-w-[40rem] w-full"
|
||||||
|
|||||||
+1
-1
@@ -8,8 +8,8 @@ import { AwsIamUserSecretRotationParametersFields } from "./AwsIamUserSecretRota
|
|||||||
import { AzureClientSecretRotationParametersFields } from "./AzureClientSecretRotationParametersFields";
|
import { AzureClientSecretRotationParametersFields } from "./AzureClientSecretRotationParametersFields";
|
||||||
import { LdapPasswordRotationParametersFields } from "./LdapPasswordRotationParametersFields";
|
import { LdapPasswordRotationParametersFields } from "./LdapPasswordRotationParametersFields";
|
||||||
import { OktaClientSecretRotationParametersFields } from "./OktaClientSecretRotationParametersFields";
|
import { OktaClientSecretRotationParametersFields } from "./OktaClientSecretRotationParametersFields";
|
||||||
import { SqlCredentialsRotationParametersFields } from "./shared";
|
|
||||||
import { RedisCredentialsRotationParametersFields } from "./RedisCredentialsRotationParametersFields";
|
import { RedisCredentialsRotationParametersFields } from "./RedisCredentialsRotationParametersFields";
|
||||||
|
import { SqlCredentialsRotationParametersFields } from "./shared";
|
||||||
|
|
||||||
const COMPONENT_MAP: Record<SecretRotation, React.FC> = {
|
const COMPONENT_MAP: Record<SecretRotation, React.FC> = {
|
||||||
[SecretRotation.PostgresCredentials]: SqlCredentialsRotationParametersFields,
|
[SecretRotation.PostgresCredentials]: SqlCredentialsRotationParametersFields,
|
||||||
|
|||||||
+1
-1
@@ -11,8 +11,8 @@ import { AwsIamUserSecretRotationReviewFields } from "./AwsIamUserSecretRotation
|
|||||||
import { AzureClientSecretRotationReviewFields } from "./AzureClientSecretRotationReviewFields";
|
import { AzureClientSecretRotationReviewFields } from "./AzureClientSecretRotationReviewFields";
|
||||||
import { LdapPasswordRotationReviewFields } from "./LdapPasswordRotationReviewFields";
|
import { LdapPasswordRotationReviewFields } from "./LdapPasswordRotationReviewFields";
|
||||||
import { OktaClientSecretRotationReviewFields } from "./OktaClientSecretRotationReviewFields";
|
import { OktaClientSecretRotationReviewFields } from "./OktaClientSecretRotationReviewFields";
|
||||||
import { SqlCredentialsRotationReviewFields } from "./shared";
|
|
||||||
import { RedisCredentialsRotationReviewFields } from "./RedisCredentialsRotationReviewFields";
|
import { RedisCredentialsRotationReviewFields } from "./RedisCredentialsRotationReviewFields";
|
||||||
|
import { SqlCredentialsRotationReviewFields } from "./shared";
|
||||||
|
|
||||||
const COMPONENT_MAP: Record<SecretRotation, React.FC> = {
|
const COMPONENT_MAP: Record<SecretRotation, React.FC> = {
|
||||||
[SecretRotation.PostgresCredentials]: SqlCredentialsRotationReviewFields,
|
[SecretRotation.PostgresCredentials]: SqlCredentialsRotationReviewFields,
|
||||||
|
|||||||
+1
-1
@@ -8,8 +8,8 @@ import { AwsIamUserSecretRotationSecretsMappingFields } from "./AwsIamUserSecret
|
|||||||
import { AzureClientSecretRotationSecretsMappingFields } from "./AzureClientSecretRotationSecretsMappingFields";
|
import { AzureClientSecretRotationSecretsMappingFields } from "./AzureClientSecretRotationSecretsMappingFields";
|
||||||
import { LdapPasswordRotationSecretsMappingFields } from "./LdapPasswordRotationSecretsMappingFields";
|
import { LdapPasswordRotationSecretsMappingFields } from "./LdapPasswordRotationSecretsMappingFields";
|
||||||
import { OktaClientSecretRotationSecretsMappingFields } from "./OktaClientSecretRotationSecretsMappingFields";
|
import { OktaClientSecretRotationSecretsMappingFields } from "./OktaClientSecretRotationSecretsMappingFields";
|
||||||
import { SqlCredentialsRotationSecretsMappingFields } from "./shared";
|
|
||||||
import { RedisCredentialsRotationSecretsMappingFields } from "./RedisCredentialsRotationSecretsMappingFields";
|
import { RedisCredentialsRotationSecretsMappingFields } from "./RedisCredentialsRotationSecretsMappingFields";
|
||||||
|
import { SqlCredentialsRotationSecretsMappingFields } from "./shared";
|
||||||
|
|
||||||
const COMPONENT_MAP: Record<SecretRotation, React.FC> = {
|
const COMPONENT_MAP: Record<SecretRotation, React.FC> = {
|
||||||
[SecretRotation.PostgresCredentials]: SqlCredentialsRotationSecretsMappingFields,
|
[SecretRotation.PostgresCredentials]: SqlCredentialsRotationSecretsMappingFields,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { useEffect } from "react";
|
||||||
import {
|
import {
|
||||||
faBook,
|
faBook,
|
||||||
faBoxOpen,
|
faBoxOpen,
|
||||||
@@ -11,13 +12,12 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|||||||
import { Link, Outlet } from "@tanstack/react-router";
|
import { Link, Outlet } from "@tanstack/react-router";
|
||||||
import { motion } from "framer-motion";
|
import { motion } from "framer-motion";
|
||||||
|
|
||||||
|
import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
|
||||||
import { Lottie, Menu, MenuGroup, MenuItem } from "@app/components/v2";
|
import { Lottie, Menu, MenuGroup, MenuItem } from "@app/components/v2";
|
||||||
import { useProject, useProjectPermission, useSubscription } from "@app/context";
|
import { useProject, useProjectPermission, useSubscription } from "@app/context";
|
||||||
|
import { usePopUp } from "@app/hooks";
|
||||||
|
|
||||||
import { AssumePrivilegeModeBanner } from "../ProjectLayout/components/AssumePrivilegeModeBanner";
|
import { AssumePrivilegeModeBanner } from "../ProjectLayout/components/AssumePrivilegeModeBanner";
|
||||||
import { useEffect } from "react";
|
|
||||||
import { usePopUp } from "@app/hooks";
|
|
||||||
import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
|
|
||||||
|
|
||||||
export const PamLayout = () => {
|
export const PamLayout = () => {
|
||||||
const { currentProject } = useProject();
|
const { currentProject } = useProject();
|
||||||
|
|||||||
+1
-1
@@ -40,6 +40,7 @@ import { OktaConnectionForm } from "./OktaConnectionForm";
|
|||||||
import { OracleDBConnectionForm } from "./OracleDBConnectionForm";
|
import { OracleDBConnectionForm } from "./OracleDBConnectionForm";
|
||||||
import { PostgresConnectionForm } from "./PostgresConnectionForm";
|
import { PostgresConnectionForm } from "./PostgresConnectionForm";
|
||||||
import { RailwayConnectionForm } from "./RailwayConnectionForm";
|
import { RailwayConnectionForm } from "./RailwayConnectionForm";
|
||||||
|
import { RedisConnectionForm } from "./RedisConnectionForm";
|
||||||
import { RenderConnectionForm } from "./RenderConnectionForm";
|
import { RenderConnectionForm } from "./RenderConnectionForm";
|
||||||
import { SupabaseConnectionForm } from "./SupabaseConnectionForm";
|
import { SupabaseConnectionForm } from "./SupabaseConnectionForm";
|
||||||
import { TeamCityConnectionForm } from "./TeamCityConnectionForm";
|
import { TeamCityConnectionForm } from "./TeamCityConnectionForm";
|
||||||
@@ -47,7 +48,6 @@ import { TerraformCloudConnectionForm } from "./TerraformCloudConnectionForm";
|
|||||||
import { VercelConnectionForm } from "./VercelConnectionForm";
|
import { VercelConnectionForm } from "./VercelConnectionForm";
|
||||||
import { WindmillConnectionForm } from "./WindmillConnectionForm";
|
import { WindmillConnectionForm } from "./WindmillConnectionForm";
|
||||||
import { ZabbixConnectionForm } from "./ZabbixConnectionForm";
|
import { ZabbixConnectionForm } from "./ZabbixConnectionForm";
|
||||||
import { RedisConnectionForm } from "./RedisConnectionForm";
|
|
||||||
|
|
||||||
type FormProps = {
|
type FormProps = {
|
||||||
onComplete: (appConnection: TAppConnection) => void;
|
onComplete: (appConnection: TAppConnection) => void;
|
||||||
|
|||||||
+3
-5
@@ -1,9 +1,11 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { Controller, FormProvider, useForm } from "react-hook-form";
|
import { Controller, FormProvider, useForm } from "react-hook-form";
|
||||||
|
import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";
|
||||||
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
|
import { Tab } from "@headlessui/react";
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { Tab } from "@headlessui/react";
|
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
FormControl,
|
FormControl,
|
||||||
@@ -24,8 +26,6 @@ import {
|
|||||||
genericAppConnectionFieldsSchema,
|
genericAppConnectionFieldsSchema,
|
||||||
GenericAppConnectionsFields
|
GenericAppConnectionsFields
|
||||||
} from "./GenericAppConnectionFields";
|
} from "./GenericAppConnectionFields";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
appConnection?: TRedisConnection;
|
appConnection?: TRedisConnection;
|
||||||
@@ -123,7 +123,6 @@ export const RedisConnectionForm = ({ appConnection, onSubmit }: Props) => {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<>
|
|
||||||
<Tab.Group selectedIndex={selectedTabIndex} onChange={setSelectedTabIndex}>
|
<Tab.Group selectedIndex={selectedTabIndex} onChange={setSelectedTabIndex}>
|
||||||
<Tab.List className="-pb-1 mb-6 w-full border-b-2 border-mineshaft-600">
|
<Tab.List className="-pb-1 mb-6 w-full border-b-2 border-mineshaft-600">
|
||||||
<Tab
|
<Tab
|
||||||
@@ -291,7 +290,6 @@ export const RedisConnectionForm = ({ appConnection, onSubmit }: Props) => {
|
|||||||
</Tab.Panel>
|
</Tab.Panel>
|
||||||
</Tab.Panels>
|
</Tab.Panels>
|
||||||
</Tab.Group>
|
</Tab.Group>
|
||||||
</>
|
|
||||||
|
|
||||||
<div className="mt-6 flex items-center">
|
<div className="mt-6 flex items-center">
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ import {
|
|||||||
Tr
|
Tr
|
||||||
} from "@app/components/v2";
|
} from "@app/components/v2";
|
||||||
import { ROUTE_PATHS } from "@app/const/routes";
|
import { ROUTE_PATHS } from "@app/const/routes";
|
||||||
|
import { useSubscription } from "@app/context";
|
||||||
import {
|
import {
|
||||||
ProjectPermissionActions,
|
ProjectPermissionActions,
|
||||||
ProjectPermissionPamAccountActions,
|
ProjectPermissionPamAccountActions,
|
||||||
@@ -54,7 +55,6 @@ import { PamDeleteFolderModal } from "./PamDeleteFolderModal";
|
|||||||
import { PamFolderRow } from "./PamFolderRow";
|
import { PamFolderRow } from "./PamFolderRow";
|
||||||
import { PamUpdateAccountModal } from "./PamUpdateAccountModal";
|
import { PamUpdateAccountModal } from "./PamUpdateAccountModal";
|
||||||
import { PamUpdateFolderModal } from "./PamUpdateFolderModal";
|
import { PamUpdateFolderModal } from "./PamUpdateFolderModal";
|
||||||
import { useSubscription } from "@app/context";
|
|
||||||
|
|
||||||
enum OrderBy {
|
enum OrderBy {
|
||||||
Name = "name"
|
Name = "name"
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import { twMerge } from "tailwind-merge";
|
|||||||
|
|
||||||
import { ProjectPermissionCan } from "@app/components/permissions";
|
import { ProjectPermissionCan } from "@app/components/permissions";
|
||||||
import {
|
import {
|
||||||
Badge,
|
|
||||||
Button,
|
Button,
|
||||||
DropdownMenu,
|
DropdownMenu,
|
||||||
DropdownMenuContent,
|
DropdownMenuContent,
|
||||||
|
|||||||
+1
-1
@@ -221,7 +221,7 @@ export const CreateSecretForm = ({ secretPath = "/", onClose }: Props) => {
|
|||||||
warning={
|
warning={
|
||||||
secretKey?.includes(" ") ? (
|
secretKey?.includes(" ") ? (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
className={"w-full max-w-72"}
|
className="w-full max-w-72"
|
||||||
content={
|
content={
|
||||||
<div>
|
<div>
|
||||||
Secret key contains whitespaces.
|
Secret key contains whitespaces.
|
||||||
|
|||||||
+1
-1
@@ -158,7 +158,7 @@ function SecretRenameRow({ environments, getSecretByKey, secretKey, secretPath }
|
|||||||
{currentSecretValue?.trim()?.includes(" ") &&
|
{currentSecretValue?.trim()?.includes(" ") &&
|
||||||
currentSecretValue?.trim() !== secretKey && (
|
currentSecretValue?.trim() !== secretKey && (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
className={"w-full max-w-72"}
|
className="w-full max-w-72"
|
||||||
content={
|
content={
|
||||||
<div>
|
<div>
|
||||||
Secret key contains whitespaces.
|
Secret key contains whitespaces.
|
||||||
|
|||||||
+1
-1
@@ -181,7 +181,7 @@ export const CreateSecretForm = ({
|
|||||||
warning={
|
warning={
|
||||||
secretKey?.includes(" ") ? (
|
secretKey?.includes(" ") ? (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
className={"w-full max-w-72"}
|
className="w-full max-w-72"
|
||||||
content={
|
content={
|
||||||
<div>
|
<div>
|
||||||
Secret key contains whitespaces.
|
Secret key contains whitespaces.
|
||||||
|
|||||||
+1
-1
@@ -491,7 +491,7 @@ export const SecretItem = memo(
|
|||||||
field?.value !== (originalSecret.originalKey || originalSecret.key) &&
|
field?.value !== (originalSecret.originalKey || originalSecret.key) &&
|
||||||
field.value?.includes(" ") ? (
|
field.value?.includes(" ") ? (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
className={"w-full max-w-72"}
|
className="w-full max-w-72"
|
||||||
content={
|
content={
|
||||||
<div>
|
<div>
|
||||||
Secret key contains whitespaces.
|
Secret key contains whitespaces.
|
||||||
|
|||||||
Reference in New Issue
Block a user