Test a Windows Management Instrumentation credential encrypted with Secrets Management
Verify that your Windows Management Instrumentation (WMI) credential is encrypted with Secrets Management and use an Integration Hub workflow to complete end-to-end testing.
시작하기 전에
Role required: admin, KMF_admin, sn_secrets.secret_manager, and sn_kmf.cryptographic_manager
- Integration Hub Enterprise must be active on your instance. For details, see Request an Integration Hub plugin.
- You must have a configured secrets group on your instance. See steps 1 through 3 listed in Configuring client accessible secrets.
- You must have a configured credential encrypted with Secrets Management. See steps 1 through 9 listed in Create credentials and test credential encryption.
프로시저
-
Confirm that the desired MID Server is associated with the Secret Group.
Open the Secret Group with Criteria [sn_sm_criteria_secret_group] record, and look for your MID Server in the Secret Group – Identity Group Members list. If your MID Server isn’t associated with a group see Create a secret group with criteria.
-
Confirm that the credential is encrypted with Secrets Management.
- Navigate to All > IntegrationHub > Connections & Credentials > Credentials.
-
Open your credential record.
Verify that you have a credential alias listed in the Credential alias field. If you have not created one already, see Create a Connection & Credential alias.
- Select and hold (or right-click) the header of your credentials record, and select Show XML from the list.
-
In the XML view of the record, find the password and confirm that the value starts with
□□□A□□.
-
Create a testing workflow in Workflow Studio.
- Navigate to All > Process Automation > Workflow Studio.
- Select New, then select Action from the list.
-
Enter a name in the Action name field.
Leave the Application field set to Global.
- Select the Build action button.
-
Configure a record lookup step in Workflow Studio.
-
In the Action Outline, select the plus button to add a new step.
Find and select the Look Up Record step type.
- In the Table field, select MID Server [ecc_agent].
- For the condition, select Name is, followed by the name of your MID Server.
중요사항:Make sure that the selected MID Server is the same as the one associated with the secret group. -
In the Action Outline, select the plus button to add a new step.
-
Configure a record lookup step in Workflow Studio.
-
In the Action Outline, select the plus button to add a new step below your Look Up Record step.
Find and select the PowerShell step type.
-
In the PowerShell Step form, fill in the fields as needed.
표 1. PowerShell step fields Field Value Connection Select Define Connection Inline Credential Alias Select your credential alias Host Enter the IP address of the target Windows server Port Enter 22 if it isn’t already the default. MID Selection Select Specific MID Server MID Server Drag in the MID Server Record pill from the Data panel
This data pill is visible in the Data panel on the right edge of the screen, under Look Up Record step.
Remoting Type Select Run on a MID Server or have your script establish a remote session
-
In the Action Outline, select the plus button to add a new step below your Look Up Record step.
-
Create a script for your test action.
- In the Script Type field, select Inline Script.
-
Use the following script, replacing the example path with the path from your test host.
Get-Date | Out-File -FilePath C:\Users\<path>\sm_ig_text_file.txt주:You may also run your own script that suits your remote host configuration. It’s important to confirm that a connection was established using the SM-encrypted value. - Select the Save button to save your action.
- Select the Test button to test your action.
- Review the output logs for any error messages.
-
Verify that a test file has been created on the host server in the file path you provided in the script.