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: update HP iLO rotation schemas and documentation
Victor Hugo dos Santos496da5090d4b
diff --git a/backend/src/ee/services/secret-rotation-v2/hp-ilo-rotation/hp-ilo-rotation-schemas.ts b/backend/src/ee/services/secret-rotation-v2/hp-ilo-rotation/hp-ilo-rotation-schemas.tsindex 61c7763d52..7bf129b443 100644--- a/backend/src/ee/services/secret-rotation-v2/hp-ilo-rotation/hp-ilo-rotation-schemas.ts+++ b/backend/src/ee/services/secret-rotation-v2/hp-ilo-rotation/hp-ilo-rotation-schemas.ts@@ -33,7 +33,7 @@ const HpIloRotationParametersSchema = z.object({.min(1, "Username required").refine((val) => characterValidator([CharacterType.AlphaNumeric, CharacterType.Hyphen, CharacterType.Underscore])(val),- "Name can only contain alphanumeric characters, dashes, and underscores"+ "Username can only contain alphanumeric characters, dashes, and underscores").describe(SecretRotations.PARAMETERS.HP_ILO.username),passwordRequirements: PasswordRequirementsSchema.optional(),diff --git a/docs/documentation/platform/secret-rotation/hp-ilo-local-account.mdx b/docs/documentation/platform/secret-rotation/hp-ilo-local-account.mdxindex 2eb6450569..087957f1a1 100644--- a/docs/documentation/platform/secret-rotation/hp-ilo-local-account.mdx+++ b/docs/documentation/platform/secret-rotation/hp-ilo-local-account.mdx@@ -106,7 +106,7 @@ description: "Learn how to automatically rotate HP iLO local account passwords.""rotationMethod": "login-as-root","username": "ilouser","passwordRequirements": {- "length": 48,+ "length": 39,"required": {"digits": 2,"lowercase": 2,@@ -176,7 +176,7 @@ description: "Learn how to automatically rotate HP iLO local account passwords.""rotationMethod": "login-as-root","username": "ilouser","passwordRequirements": {- "length": 48,+ "length": 39,"required": {"digits": 2,"lowercase": 2,diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewSecretRotationRow/SecretOverviewSecretRotationRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewSecretRotationRow/SecretOverviewSecretRotationRow.tsxindex 4cab2e095d..a649cbec09 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewSecretRotationRow/SecretOverviewSecretRotationRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewSecretRotationRow/SecretOverviewSecretRotationRow.tsx@@ -131,15 +131,6 @@ export const SecretOverviewSecretRotationRow = ({(secretRotation.type === SecretRotation.HpIloLocalAccount &&secretRotation.parameters.rotationMethod === HpIloRotationMethod.LoginAsTarget);- console.log(- "showReconcileButton:",- showReconcileButton,- "type:",- secretRotation.type,- "rotationMethod:",- secretRotation.parameters- );-return (<Tr key={`secret-rotation-${slug}-${secretRotationName}`}><Tddiff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretRotationTableRow/SecretRotationTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretRotationTableRow/SecretRotationTableRow.tsxindex 4acf96feaa..b67fb59ca2 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretRotationTableRow/SecretRotationTableRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretRotationTableRow/SecretRotationTableRow.tsx@@ -37,7 +37,9 @@ import {SecretRotationStatus,TSecretRotationV2} from "@app/hooks/api/secretRotationsV2";+import { HpIloRotationMethod } from "@app/hooks/api/secretRotationsV2/types/hp-ilo-rotation";import { UnixLinuxLocalAccountRotationMethod } from "@app/hooks/api/secretRotationsV2/types/unix-linux-local-account-rotation";+import { WindowsLocalAccountRotationMethod } from "@app/hooks/api/secretRotationsV2/types/windows-local-account-rotation";import { ResourceEnvironmentStatusCell } from "../ResourceEnvironmentStatusCell";@@ -84,6 +86,16 @@ export const SecretRotationTableRow = ({const renderActionButtons = (secretRotation: TSecretRotationV2) => {const { environment, folder } = secretRotation;+ const showReconcileButton =+ (secretRotation.type === SecretRotation.UnixLinuxLocalAccount &&+ secretRotation.parameters.rotationMethod ===+ UnixLinuxLocalAccountRotationMethod.LoginAsTarget) ||+ (secretRotation.type === SecretRotation.WindowsLocalAccount &&+ secretRotation.parameters.rotationMethod ===+ WindowsLocalAccountRotationMethod.LoginAsTarget) ||+ (secretRotation.type === SecretRotation.HpIloLocalAccount &&+ secretRotation.parameters.rotationMethod === HpIloRotationMethod.LoginAsTarget);+return (<div className="flex items-center transition-all duration-500 group-hover:ml-2 group-hover:space-x-1.5"><ProjectPermissionCan@@ -140,37 +152,35 @@ export const SecretRotationTableRow = ({</Tooltip>)}</ProjectPermissionCan>- {secretRotation.type === SecretRotation.UnixLinuxLocalAccount &&- secretRotation.parameters.rotationMethod ===- UnixLinuxLocalAccountRotationMethod.LoginAsTarget && (- <ProjectPermissionCan- I={ProjectPermissionSecretRotationActions.RotateSecrets}- a={subject(ProjectPermissionSub.SecretRotation, {- environment: environment.slug,- secretPath: folder.path,- ...(secretRotation.connectionId && {- connectionId: secretRotation.connectionId- })- })}- >- {(isAllowed) => (- <Tooltip>- <TooltipTrigger>- <UnstableIconButton- variant="ghost"- size="xs"- className="w-0 overflow-hidden border-0 opacity-0 group-hover:w-7 group-hover:opacity-100"- isDisabled={!isAllowed}- onClick={() => onReconcile(secretRotation)}- >- <HandshakeIcon />- </UnstableIconButton>- </TooltipTrigger>- <TooltipContent>Reconcile Secret</TooltipContent>- </Tooltip>- )}- </ProjectPermissionCan>- )}+ {showReconcileButton && (+ <ProjectPermissionCan+ I={ProjectPermissionSecretRotationActions.RotateSecrets}+ a={subject(ProjectPermissionSub.SecretRotation, {+ environment: environment.slug,+ secretPath: folder.path,+ ...(secretRotation.connectionId && {+ connectionId: secretRotation.connectionId+ })+ })}+ >+ {(isAllowed) => (+ <Tooltip>+ <TooltipTrigger>+ <UnstableIconButton+ variant="ghost"+ size="xs"+ className="w-0 overflow-hidden border-0 opacity-0 group-hover:w-7 group-hover:opacity-100"+ isDisabled={!isAllowed}+ onClick={() => onReconcile(secretRotation)}+ >+ <HandshakeIcon />+ </UnstableIconButton>+ </TooltipTrigger>+ <TooltipContent>Reconcile Secret</TooltipContent>+ </Tooltip>+ )}+ </ProjectPermissionCan>+ )}<ProjectPermissionCanI={ProjectPermissionSecretRotationActions.Edit}a={subject(ProjectPermissionSub.SecretRotation, {diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretRotationListView/SecretRotationItem.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretRotationListView/SecretRotationItem.tsxindex 22743a6b6b..2a5ede3861 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretRotationListView/SecretRotationItem.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretRotationListView/SecretRotationItem.tsx@@ -87,15 +87,6 @@ export const SecretRotationItem = ({(secretRotation.type === SecretRotation.HpIloLocalAccount &&secretRotation.parameters.rotationMethod === HpIloRotationMethod.LoginAsTarget);- console.log(- "showReconcileButton:",- showReconcileButton,- "type:",- secretRotation.type,- "rotationMethod:",- secretRotation.parameters- );-return (<><div@@ -218,24 +209,21 @@ export const SecretRotationItem = ({renderTooltipallowedLabel="Reconcile Secret">- {(isAllowed) => {- console.log("isAllowed for reconcile:", isAllowed);- return (- <IconButton- ariaLabel="Reconcile secret"- variant="plain"- size="sm"- isDisabled={!isAllowed}- className="w-0 overflow-hidden p-0 group-hover:w-5"- onClick={(e) => {- e.stopPropagation();- onReconcile();- }}- >- <FontAwesomeIcon icon={faHandshake} />- </IconButton>- );- }}+ {(isAllowed) => (+ <IconButton+ ariaLabel="Reconcile secret"+ variant="plain"+ size="sm"+ isDisabled={!isAllowed}+ className="w-0 overflow-hidden p-0 group-hover:w-5"+ onClick={(e) => {+ e.stopPropagation();+ onReconcile();+ }}+ >+ <FontAwesomeIcon icon={faHandshake} />+ </IconButton>+ )}</ProjectPermissionCan>)}</div>