To use the SSH keys to connect MettleCI Workbench with your Github service you'll need to provide GitHub with your public key.
When you install MettleCI Workbench (v1450 or earlier) it generates a workbench.key
/ workbench.key.pub
key pair using an RSA encryption algorithm. This was fine up until 15th March 2022 when GitHub unexpectedly stoped accepting RSA and DSA keys. If you wish to integrate MettleCI with GitHub you should do the following…
Delete (or backup, if they’re being used for anything) the existing
workbench.key
/workbench.key.pub
key pair generate during Workbench setup.Generate a new ECDSA key pair using the command
ssh-keygen -t ecdsa -b 521 -f workbench.key
. Yes, that’s a 521-bit key, not 512.Ensure the
sshKey: "/opt/dm/mci/workbench.key"
entry in thegitAuthentication:
section of yourconfirm.yml
file is pointing to the newly-generated private key file.Register the ECDSA public key file
workbench.key.pub
in GitHub (see the steps here).You can use the same key for accessing the DataStage and Compliance repositories so register that public key with each of those repositories.
When registering the key with the Compliance repository the Engine does not require write access so feel free to leave that option deselected.
Restart the Workbench service and test GitHub access by running Compliance and a Check-in from Workbench.Process
MettleCI Workbench v1451 or later generates GitHub-compliant ECDSA keys by default, so you won’t have to go through any of the above steps.
Select the repository to which you wish to add your SSH and click the Settings option.
From the left-hand navigation pane select Deploy keys.
In the top right select Add deploy key.
Give the key a descriptive Title (including a reference to the related DataStage Engine host and its use for MettleCI Workbench might be a good idea)
On the DataStage Engine where Workbench is installed
cat
UNIX ortype
WINDOWS your public key file (typicallyworkbench.key.pub
) and copy it to your clipboard (⌘-C/Ctrl-C).Paste the contents of the public key into the Key field.
If this is a repository to which Workbench should be able to write (e.g. a repository to which it will commit DataStage assets) then check the Allow write access option.
Click Add key.