https://pulumi.com logo
Title
n

nice-rain-32013

02/22/2023, 11:47 AM
Hello all, I'm trying to trigger some deployments but keep getting "400 Bad Request: ssh private key cannot be empty" (using sshAuth with a passwordless key for github -for testing). I followed the doc carefully and the privateKey.secret field is definitely not empty, so i'm puzzled. any clues? specific format for the key that i should use?
a

acoustic-lock-52416

02/24/2023, 10:55 PM
Hi David--taking a look at this now. Could you send me a sample (redacted) config snippet here so I can check field names? I’d also like to rule out that the docs are incorrect
n

nice-rain-32013

02/27/2023, 11:44 AM
Hello @acoustic-lock-52416 here's the message body:
{
  "sourceContext": {
    "git": {
      "repoURL": "<https://github.com/><repoaddress>.git",
      "branch": "refs/heads/main",
      "repoDir": "snowflake",
      "gitAuth": {
        "sshAuth": {
          "privateKey": {
            "secret": "-----BEGIN OPENSSH PRIVATE KEY-----\n<SSH key content>....."
          },
          "password": {
            "secret": "foo"
          }
        }
      }
    }
  },
  "operationContext": {
    "operation": "update",
    "environmentVariables": {
      "AWS_REGION": "eu-central-1",
      "AWS_ACCESS_KEY_ID": "************",
      "AWS_SECRET_ACCESS_KEY": "********************************",
      "AWS_SESSION_TOKEN": "**************************"
    }
  }
}
a

acoustic-lock-52416

02/27/2023, 8:18 PM
@nice-rain-32013 from what I can tell it looks like this is an error in our docs. Try changing
"privateKey"
->
"sshPrivateKey"
I will update documentation for this accordingly, sorry you encountered this!
n

nice-rain-32013

02/28/2023, 9:46 AM
awesome! it works! thanks a million @acoustic-lock-52416
a

acoustic-lock-52416

02/28/2023, 2:31 PM
No problem! Glad to hear it