Secrets Rotation Service engine fails to load (Code: SRS2001, 1314)
Symptom
When attempting to manage a credential, Secrets Rotation Service (SRS) returns an SRS2001 error stating "The engine load failed." with an accompanying error code 1314.
Logs may include the following:
User profile loaded successfully for SRSExecutionUser Running as: SERVER\SRSExecutionUser SESSION_KEY environment variable updated with encrypted value. CreateProcessAsUser.... CreateProcessAsUser failed with error code: 1314 User profile unloaded successfully for user. ##### SrsUserProcessInvoker end #####'SRSExecUserInvoker.exe' execution failed with exit code 1314.ERROR! Directory '.\Logs\ThirdParty' does not exist. The secret rotation engine failed to load.
Environment
Privilege Cloud Secrets Rotation Service (SRS)
The server on which the Connector Management agent is running is a member of a domain, and has group policies applied to harden the system.
Cause
The Connector Management agent executes credential management plugins as the "SrsExecutionUser" local Windows user, and this process of initiating plugins as another user requires the "Replace a process level token" User Right.
This right is automatically granted when the user is first created. However, if group policies are configured to manage this policy, this right may be revoked when the group policy is reapplied.
Resolution
To resolve the issue, grant the "Replace a process level token user right" to the "NT Service\CyberarkManagementAgent" user.
For more information on the privilege requirements for SRS, see the following documentation page: SRS hardening description | Idira Docs