Dataform connection to GitHub showing "computation of the authentication status" error

I'm having some issues setting up Dataform for the first time and connecting to a GitHub repo via SSH. I've followed the steps to Connect to a third-party Git repository but in the Dataform console page I'm getting this error: "An error occurred during computation of the authentication status".
 
I have confirmed the following:
- My generated public key is uploaded to GitHub
- Using GitHub's public host key (ed25519) in this format:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
- Using the generated private key, stored in a secret in this format:
-----BEGIN OPENSSH PRIVATE KEY-----
<private key>
-----END OPENSSH PRIVATE KEY-----
- The default Dataform service account is granted roles/secretmanager.secretAccessor on the secret
- There are no restrictions on the dataform.restrictGitRemotes org policy (Allowed = all)
 
previously had the "We are unable to connect to your Git provider with the configured credentials" error, which was because I incorrectly used my generated public key.
0 1 75
1 REPLY 1

Hi @du-jw,

Welcome to Google Cloud Community!

The error “An error occurred during computation of the authentication status” message suggests that there is an access issue between your GitHub repository and Dataform. Here are the possible workarounds to isolate the issue:

  • Make sure you’re using the latest version of the secret containing the correct private key and it is not expired.
  • Double-check the extra spaces or line breaks within your secret value. Even the slightest whitespace within the secret value can cause problems.
  • While you mentioned the service account has correct access, ensure these permissions are at the correct project level where the secret is stored. Verify that no other IAM constraints are blocking the access.
  • Ensure you don’t have any firewall rules blocking port 22 (SSH) within your project.

Also, try to examine the Dataform logs in Cloud Logging for more specific error messages. Search for logs related to Git or authentication around the time you tried to connect.

In addition, here are the Secret Manager best practices for your reference.

I hope the above information is helpful.