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
requested changes
Daniel Hougaardbcd60d7d8c7f
diff --git a/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-fns.tsindex 3d81a6868f..ec3a324652 100644--- a/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-fns.ts+++ b/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-fns.ts@@ -116,7 +116,7 @@ export const dbtServiceTokenRotationFactory: TRotationFactory<await retrieveDbtAccount(connection).catch(() => {throw new BadRequestError({message:- "Failed to validate connection credentials. Are you sure your configured DBT app connection credentials are valid?"+ "Failed to validate connection credentials. Check if your configured DBT app connection credentials are valid."});});diff --git a/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-schemas.ts b/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-schemas.tsindex f1e3f3c5aa..3c52397390 100644--- a/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-schemas.ts+++ b/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-schemas.ts@@ -57,7 +57,12 @@ export const DbtServiceTokenRotationGeneratedCredentialsSchema = z.max(2);const DbtServiceTokenRotationParametersSchema = z.object({- tokenName: z.string().trim().min(1).describe(SecretRotations.PARAMETERS.DBT_SERVICE_TOKEN.tokenName),+ tokenName: z+ .string()+ .trim()+ .min(1, "Token name is required")+ .max(255, "Token name must be less than 255 characters")+ .describe(SecretRotations.PARAMETERS.DBT_SERVICE_TOKEN.tokenName),permissionGrants: DbtTokenPermissionsSchema.array().min(1).describe(SecretRotations.PARAMETERS.DBT_SERVICE_TOKEN.permissionGrants)diff --git a/frontend/src/components/secret-rotations-v2/SecretRotationV2Select.tsx b/frontend/src/components/secret-rotations-v2/SecretRotationV2Select.tsxindex 50fc0dd51b..a19e8511a2 100644--- a/frontend/src/components/secret-rotations-v2/SecretRotationV2Select.tsx+++ b/frontend/src/components/secret-rotations-v2/SecretRotationV2Select.tsx@@ -19,29 +19,31 @@ export const SecretRotationV2Select = ({ onSelect }: Props) => {}return (- <div className="grid grid-cols-3 gap-2">- {secretRotationOptions?.map(({ type }) => {- const { image, name, size } = SECRET_ROTATION_MAP[type];+ <div className="max-h-[60vh] overflow-y-auto">+ <div className="grid grid-cols-3 gap-2">+ {secretRotationOptions?.map(({ type }) => {+ const { image, name, size } = SECRET_ROTATION_MAP[type];- return (- <button- type="button"- key={type}- onClick={() => onSelect(type)}- className="group relative flex h-28 cursor-pointer flex-col items-center justify-center rounded-md border border-mineshaft-600 bg-mineshaft-700 p-4 duration-200 hover:bg-mineshaft-600"- >- <img- src={`/images/integrations/${image}`}- width={size}- className="mt-auto"- alt={`${name} logo`}- />- <div className="mt-auto max-w-xs text-center text-xs font-medium text-gray-300 duration-200 group-hover:text-gray-200">- {name}- </div>- </button>- );- })}+ return (+ <button+ type="button"+ key={type}+ onClick={() => onSelect(type)}+ className="group relative flex h-28 cursor-pointer flex-col items-center justify-center rounded-md border border-mineshaft-600 bg-mineshaft-700 p-4 duration-200 hover:bg-mineshaft-600"+ >+ <img+ src={`/images/integrations/${image}`}+ width={size}+ className="mt-auto"+ alt={`${name} logo`}+ />+ <div className="mt-auto max-w-xs text-center text-xs font-medium text-gray-300 duration-200 group-hover:text-gray-200">+ {name}+ </div>+ </button>+ );+ })}+ </div></div>);};diff --git a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/DbtServiceTokenRotationParametersFields.tsx b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/DbtServiceTokenRotationParametersFields.tsxindex 8896a400ca..6a8d4deab3 100644--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/DbtServiceTokenRotationParametersFields.tsx+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/DbtServiceTokenRotationParametersFields.tsx@@ -72,7 +72,7 @@ export const DbtServiceTokenRotationParametersFields = () => {name="parameters.tokenName"render={({ field, fieldState: { error } }) => (<FormControl- tooltipText="Enter a name for the service token to be created. Note that each secret will have a suffix of '-1' or '-2' to differentiate between rotation cycles."+ tooltipText="Enter a name for the service token to be created."isError={Boolean(error?.message)}errorText={error?.message}label="Service Token Name"