Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

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 stopped accepting RSA and DSA keys. 

MettleCI Workbench v1451 or later generates GitHub-compliant ECDSA keys by default
MettleCI Workbench v1664 or later generates GitHub-compliant and Azure-compliant RSA SHA256 keys by default

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 RSA SHA256 key pair using the command ssh-keygen -t ecdsa rsa-sha2-256 -b 521 2048 -f workbench.key. Yes, that’s a 521-bit key, not 512.

  • Ensure the sshKey: "/opt/dm/mci/workbench.key" entry in the gitAuthentication: section of your confirmconfig.yml file is pointing to the newly-generated private key file.

  • Register the ECDSA public key file workbench.key.pub  in GitHub (see steps below). 

  • 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.

  1. Select the repository to which you wish to add your SSH and click the Settings option.

  2. From the left-hand navigation pane select Deploy keys.

  3. In the top right select Add deploy key.

  4. 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)

  5. On the DataStage Engine where Workbench is installed cat

    Status
    colourYellow
    titleunix
    or type
    Status
    colourBlue
    titleWINDOWS
    your public key file (typically workbench.key.pub) and copy it to your clipboard (⌘-C/Ctrl-C).

  6. Paste the contents of the public key into the Key field.

  7. 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.

  8. Click Add key.

...