- 8 minutes to read
- Print
- DarkLight
- PDF
First steps
- 8 minutes to read
- Print
- DarkLight
- PDF
This document provides a step-by-step guide on how to configure senhasegura’s Task Manager module.
Requirements
To use the Task Manager module, you’ll need:
- A device with a port for remote access configured according to the system.
- A credential with permission to execute scripts remotely on the device.
- Environment registration.
- System registration.
- Task reason registration.
- Execution templates.
- An access group for this module.
Register an environment
If you already have the desired environment registered in senhasegura, the configuration below is not necessary.
To register an environment in senhasegura, follow the steps below:
On senhasegura, in the upper-left corner, click the Grid Menu, represented by the nine squares, and select SYSTEM > Settings.
In the side menu, select System parameters > Segmentation > Environments.
In the upper-right corner, click View actions, represented by the three vertical dots icon, and select New.
On the New environment screen:
- Name*: enter a human-readable name for the environment registered.
- Enabled: check Yes or No to define whether the environment will be active or inactive.
InfoThe items with an asterisk are mandatory.
Click Save.
A pop-up window with the message “Success. Data saved successfully!” confirms the action.
On the Environments screen, through the Action column, you can edit and disable a registered environment.
- To edit, identify the desired environment in the list or use the filters to search for it, and in the Action column, click Edit, represented by the pencil and paper icon.
- To disable the environment, in the Action column, click the three vertical dots icon and select Disable, represented by the trash can icon.
Register a system
If you already have the desired system registered in senhasegura, the configuration below is not necessary.
To register a system in senhasegura, follow the steps below:
- On senhasegura, in the upper-left corner, click the Grid Menu, represented by the nine squares, and select SYSTEM > Settings.
- In the side menu, select System parameters > Segmentation > Systems.
- In the upper-right corner, click View actions, represented by the three vertical dots icon, and select New.
- On the New system screen:
- Name*: enter a human-readable name for the system registered.
- Enabled: check Yes or No to define whether the system will be active or inactive.
The items with an asterisk are mandatory.
- Click Save.
A pop-up window with the message “Success. Data saved successfully!” confirms the action.
On the Systems screen, through the Action column, you can edit and disable a registered system.
- To edit, identify the desired system in the list or use the filters to search for it, and in the Action column, click Edit, represented by the pencil and paper icon.
- To disable the system, in the Action column, click the three vertical dots icon and select Disable, represented by the trash can icon.
Register a reason to run a task
To register a reason that can be used when submitting a task execution request in Task Manager, follow the steps below.
The requirement to provide a reason when requesting the execution of a task is defined during the creation of the access group in which the task is included. For more information, access the document on How to manage access groups.
- On senhasegura, in the upper-left corner, click the Grid Menu, represented by the nine squares, and select Task Manager.
- In the side menu, select Settings > Reasons.
- In the upper-right corner of the Reasons screen, click the View actions menu, represented by the three vertical dots icon, and select New.
- On the New task reason screen:
- Name*: enter a human-readable name for the reason registered.
- Type*: click the downward arrow to select one of the registered reason types.
- Enabled*: check Yes or No to define whether the reason will be active or inactive.
The items with an asterisk are mandatory.
- Click Save.
A pop-up window with the message “Success. Data saved successfully!” confirms the action.
Register an execution template
To register an execution template that can be used when creating a task in Task Manager, follow the steps below:
- On senhasegura, in the upper-left corner, click the Grid Menu, represented by the nine squares, and select Task Manager.
- In the side menu, select Settings > Templates.
- In the upper-right corner of the Execution templates screen, click the View actions menu, represented by the three vertical dots icon, and select New.
- On the Execution template screen:
- Name*: enter a human-readable name for the template registered. Example: “Linux - Restart services”.
- Enabled*: check Yes or No to define whether the template will be active or inactive.
- Executor*: click the downward arrow to select one of the available plugins that the template will use.
- Execution type*: click the downward arrow and select Task Manager.
- Playbook: click the downward arrow to select an available playbook.
- Inventory: click the downward arrow to select an available inventory.
- Content: enter the commands that will be executed in the task.
InfoThe items with an asterisk are mandatory.
InfoThe View TAGs button displays a legend of the TAGs that can be used in the templates.
The following example shows how TAGs can be used in template creation:
#Check service status
expect "*$"
exec "service --status-all"
#Root user access
expect "*$"
exec "sudo su"
#Add root user password
expect "*:"
exec "[#AUTH_PASSWORD#]"
#Stop service
expect "*#"
exec "service [#VARIABLE#] stop"
#Service status
expect "*#"
exec "service [#VARIABLE#] status"
#Restart service
expect "*#"
exec "service [#VARIABLE#] restart"
#End execution task
expect "*#"
end
At the top of the Execution template screen, click the external link icon, represented by an arrow coming out of a square, to be directed to GitHub, where you can view all templates from the Executions module.
- Click Save.
A pop-up window with the message “Success. Data saved successfully!” confirms the action.
On the Execution templates screen, through the Action column, you can edit, clone, and view the change history of a template.
- To edit, identify the desired execution template in the list or use the filters to search for it, and in the Action column, click Edit, represented by the pencil and paper icon.
- To clone the execution template, in the Action column, click the three vertical dots icon and select Clone, represented by the two sheets of paper icon. During this process, you may change the name of the cloned template or keep the same name as the original template followed by the word (copy) and its identification code.
- To view the change history, in the same three vertical dots icon, select Template change history, represented by the clock icon.
Create an access group
To create an access group that will limit the tasks that users will be able to interact with in Task Manager, follow the steps below:
On senhasegura, in the upper-left corner, click the Grid Menu, represented by the nine squares, and select Task Manager.
In the side menu, select Settings > Access groups.
In the upper-right corner of the Access groups screen, click the View actions menu, represented by the three vertical dots icon, and select New.
On the Access group registration screen:
- Access group name*: enter a human-readable name for the registered access group.
- Enabled*: check Yes or No to determine whether the group will be active or inactive.
- Description: enter a description for this access group.
InfoSynced users will have their permissions overwritten if synchronization is on. Check their synchronization groups for changes.
- In the Settings tab:
- Requires reason to run task: check the checkbox to require the requester to provide a reason for task execution.
- Requires approval to run task: check the checkbox to demand that task execution only occurs upon approval.
- Approvals required to run: enter a number indicating the minimum number of approvals required for the requested task execution. This field is enabled only if the Requires approval to run task field is checked.
- Disapprovals required to cancel: enter a number indicating the minimum number of rejections required for the requested task execution not to occur. This field is enabled only if the Requires approval to run task field is checked.
- Approval in levels: check the checkbox to require the request approval to be done at multiple levels.
- User can download the task resulting files: check the checkbox to enable users in the access group to download resulting task files.
- User must provide a reason for downloading files resulting by the task: check the checkbox to require users to provide a reason for downloading the resulting task files.
- Governance ID required when justifying?*: check Yes or No to define whether users should provide a governance code when justifying the task execution request.
- Always add user manager to approvers?*: check Yes or No to define whether the user responsible for the user's department should be automatically consulted as an additional approver for this group and alerted along with the other selected approvers in the Approvers tab.
InfoThe fields User can download the task resulting files, User must provide a reason for downloading files resulting by the task, and Always add user manager to approvers?* will be removed in future versions.
In the Criteria tab:
- Device (comma separated): enter the devices, separated by commas, where the task will be executed.
- Environments*: use the checkboxes to select the environments where the task will be executed.
- Systems*: use the checkboxes to select the systems where the task will be executed.
In the Users tab:
- Users +: click the plus icon to open the System users screen, select the users to be added to the access group, and click Add.
Attentionsenhasegura works with permission levels. If the user added to the Task Manager access group is in another group with stricter restrictions, they may not be able to view information within the module.
- In the Approvers tab:
- Approvers +: click the plus icon to open the Approvers screen, select the approvers to be added to the access group, and click Add.
AttentionIf you have chosen multi-level approval for this access group, after adding at least two approvers, you must define the approval level for each one in the Level column. The chosen level indicates the approval stage at which each approver will be notified after the task execution request.
InfoThe approver user must have the minimum PAM Operator profile to access the approval workflow screen.
The items with an asterisk are mandatory.
- Click Save.
A pop-up window with the message “Success. Data saved successfully!” confirms the action.
Next
How to manage access groups
How to manage reasons
How to manage tasks
Do you still have questions? Reach out to the senhasegura community.