This issue is identical to Caldera v4.2's issue #2842.
When adding a Potential Link to an operation, links are matched on executor name only. This has the potential of selecting an executor platform that does not match the agent's platform.
To Reproduce
Steps to reproduce the behavior:
Fresh install Caldera v5 with stockpile plugin included
Deploy an agent to a linux platform
Start a new operation
Open the add potential link modal
Select the linux agent
Select the "sh" executor
Search for and select the "Parse ssh config" ability
Observe that the command populated on the next screen is the darwin specific command (pip install stormssh && storm list)
Expected Behavior
Following the steps above, the pre-populated command should be the linux command: pip install -q stormssh 2> /dev/null && storm list | sed 's/\x1b\[[0-9;]*m//g'
Description
This issue is identical to Caldera v4.2's issue #2842.
When adding a Potential Link to an operation, links are matched on executor name only. This has the potential of selecting an executor platform that does not match the agent's platform.
To Reproduce
Steps to reproduce the behavior:
pip install stormssh && storm list
)Expected Behavior
Following the steps above, the pre-populated command should be the linux command:
pip install -q stormssh 2> /dev/null && storm list | sed 's/\x1b\[[0-9;]*m//g'
Fix
Bugfix created. Will submit PR.