Giving Application Pools Event Log Access
Overview
When the database becomes inaccessible, Secret Server will try to log errors to the Windows event log. By default, network service and standard service accounts will not have permissions to the event log. Permissions must be added to specific event log registry keys.
Applying Windows Event Log Permissions
-
Determine the account that is running Secret Server:
-
Log on Secret Server.
-
Go to Admin > Diagnostics.
-
Look for any of the Thread Identity labels. These contain the identity of Secret Server (often
NT AUTHORITY\NETWORK SERVICE
orIIS APPPOOL\SecretServer
or the service account set up for IWA. See Running the IIS Application Pool As a Service Account.You can also determine the identity by logging in and navigating to http://yoursecretserverurl/Installer.aspx. The first step of this page will tells you the application pool identity.
-
-
Open the Windows registry editor on the machine running Secret Server (regedit at the command prompt or Window search text box).
-
On the left, navigate to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > EventLog.
-
Right click the EventLog folder in your registry editor and select Permissions. A permissions dialog box appears.
-
Click the Advanced button.
-
On the Permissions tab, Click the Add button. A Permission Entry dialog appears.
-
Click the Select a principal link. The Select User, Computer… dialog box appears.
-
Find the account running Secret Server, such as Thycotic_Service (svc_thycotic@test.com).
-
Click the OK button. The dialog box closes.
-
In the Basic Permissions section of the Permission Entry dialog, click to select the Read check box.
-
Click the Show advanced permissions link. The pane switches.
-
Click to select the Set Value and Create Subkey check boxes in the Advanced Permissions section.
-
Click OK buttons on the remaining dialogs to apply the permissions. You are returned to the main registry editor window.
-
Navigate to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > EventLog > Security, right-click and select "Permissions..."
-
Right click Security folder and select Permissions. A permissions dialog box appears.
-
Click the Add button.
-
Find the account running Secret Server.
-
Click the OK button.
-
Click to select the Read check box in the Allow column.
-
Click the OK button to apply the permission.
-
If you are running Windows Server 2019 or above, use the same procedure to add Read permission to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > EventLog > State.
Required Registry Permissions
After setup, the following permissions appear in the registry:
HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > EventLog
Applies to key and subkeys
-
Read permissions:
- Query Value
- Enumerate Subkeys
- Notify
- Read Control
-
Set Value permission
-
Create Subkey permission
HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > EventLog > Security
Applies to key and subkeys
Read permissions:
- Query Value
- Enumerate Subkeys
- Notify
- Read Control
HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > EventLog > State
Applies to key and subkeys. Only applies to Windows Server 2019.
Read permissions:
- Query Value
- Enumerate Subkeys
- Notify
- Read Control