jenkinsci / jenkinsci/google-compute-engine-plugin

Project wide enabled OSLogin causing SSH Authentication Failed error

Open
#195 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
58
Forks
97
PR merge metrics
No merged PRs in 30d

Description

Configured the GCE plugin to use the Google Service Account from metadata credentials and have project wide OSLogin enabled.

When I try spin up an node the logs say Using autogenerated keypair but every time it tries to connect via SSH I get Authentication Failed,
![JenkinsConsole](https://user-images.githubusercontent.com/10513197/85514554-0e9c6680-b5f4-11ea-8503-3b21ced6caac.png)

My GCE Plugin config looks like this:
![GCEConfigPat1](https://user-images.githubusercontent.com/10513197/85515477-13ade580-b5f5-11ea-92bb-3e42790c5cff.jpg)
![GCEPluginPart2](https://user-images.githubusercontent.com/10513197/85515486-1577a900-b5f5-11ea-8abc-ce9dfa45e328.jpg)
![GCEPluginPart3](https://user-images.githubusercontent.com/10513197/85515491-17416c80-b5f5-11ea-8304-ea5bd3f45c5d.jpg)

I cannot use a Service Account from a private key credentials as the setup of the service account as well as the credential is all automated so I don't want to be storing keys anywhere.

Jenkins Version: 2.235.1
Google Plugin versions:
Google Compute Engine Plugin: 4.3.0
Google Login Plugin: 1.6
Google OAuth Credentials Plugin: 1.0.0

Please can this be investigated and fixed as soon as possible.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.