feat(secret-rotation): add HP iLO local account password rotation#5744
feat(secret-rotation): add HP iLO local account password rotation#5744victorvhs017 merged 11 commits intomainfrom
Conversation
- Added new router for HP iLO Local Account rotation with endpoints for create, update, delete, list, and reconcile operations. - Introduced schemas and types for HP iLO rotation, including validation and password requirements. - Integrated HP iLO rotation logic into the secret rotation service, supporting both login-as-target and login-as-root methods. - Updated API documentation to include HP iLO Local Account endpoints and configuration details.
- Changed validation message for username to clarify allowed characters. - Adjusted password length requirement in documentation from 48 to 39 characters for HP iLO local account. - Removed unnecessary console logs from SecretRotation components to clean up code. - Enhanced logic for displaying the reconcile button based on rotation method in SecretRotationTableRow and SecretRotationItem components.
- Added password sanitization in error messages for iLO command failures to improve security. - Updated the ReconcileLocalAccountRotationModal to support HP iLO local account rotations. - Introduced a new image for HP iLO local account reconciliation in the documentation.
- Introduced a new binary image for the HP iLO local account reconciliation process in the documentation.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
…nctions - Removed unnecessary algorithm configurations from SSH connection setup in hp-ilo-rotation-fns.ts and ssh-connection-fns.ts. - Updated TSshConnectionConfig type to eliminate the algorithms property, streamlining the connection process.
- Increased SSH connection timeout from 15 seconds to 45 seconds to improve connection stability. - Added retry logic for SSH connections, allowing up to 2 retries with a 5-second delay between attempts. - Introduced logging for connection attempts and errors to aid in troubleshooting.
- Updated the username validation logic to throw a BadRequestError if the provided username matches the credentials in the connection, enhancing error handling and user feedback.
Greptile SummaryThis PR adds full-stack support for HP iLO (Integrated Lights-Out) local account rotation, including SSH shell-based rotation logic, a retry mechanism for slow iLO SSH daemons, and corresponding frontend forms, type definitions, and documentation. The implementation follows the existing rotation v2 pattern closely and is generally well-structured. Key issues found:
Confidence Score: 2/5
Important Files Changed
|
...secret-rotations-v2/forms/SecretRotationV2ParametersFields/HpIloRotationParametersFields.tsx
Show resolved
Hide resolved
backend/src/ee/services/secret-rotation-v2/hp-ilo-rotation/hp-ilo-rotation-fns.ts
Show resolved
Hide resolved
- Changed the method of sanitizing password in error messages from using buffer.replace to passwordPattern.replace for improved accuracy. - Updated SSH connection logging to include host and port details for better traceability during connection attempts and validations. - Adjusted default rotation method in the HP iLO rotation parameters to 'LoginAsRoot' for consistency in behavior.
- Updated the connection timeout for non-HSM configurations from 60 seconds to 70 seconds to enhance performance. - Refined error notification logic to provide a more user-friendly message and conditionally include request ID for better traceability.
- Updated TLS and gateway connection timeouts from 30 seconds to 120 seconds to enhance connection reliability. - Adjusted application connection timeout to a consistent 100 seconds for better performance across configurations. - Increased SSH connection timeout from 45 seconds to 50 seconds to further improve connection stability.
backend/src/ee/services/secret-rotation-v2/hp-ilo-rotation/hp-ilo-rotation-fns.ts
Show resolved
Hide resolved
backend/src/ee/services/secret-rotation-v2/hp-ilo-rotation/hp-ilo-rotation-fns.ts
Show resolved
Hide resolved
.../secret-manager/SecretDashboardPage/components/SecretRotationListView/SecretRotationItem.tsx
Show resolved
Hide resolved
backend/src/ee/services/secret-rotation-v2/hp-ilo-rotation/hp-ilo-rotation-fns.ts
Show resolved
Hide resolved
backend/src/ee/services/secret-rotation-v2/hp-ilo-rotation/hp-ilo-rotation-fns.ts
Show resolved
Hide resolved
|
@victorvhs017 |
|
- Introduced a maximum buffer size limit for iLO shell responses to prevent overflow and improve error handling. - Added logic to reject the promise if the buffer exceeds the defined maximum size, ensuring stability during command execution.


Context
Adds HP iLO Local Account Secret Rotation support to Infisical. This feature enables automated password rotation for HP Integrated Lights-Out (iLO) management interfaces, which are commonly used for remote server management in enterprise environments.
Key changes:
Steps to verify the change
Type
Checklist
type(scope): short description(scope is optional, e.g.,fix: prevent crash on syncorfix(api): handle null response).