Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: Compatibility with OS Login #1

Open
verdurin opened this issue Oct 15, 2019 · 4 comments
Open

RFE: Compatibility with OS Login #1

verdurin opened this issue Oct 15, 2019 · 4 comments
Labels

Comments

@verdurin
Copy link

The provisioner SSH connection fails when OS Login is enabled on a GCP project.

@milliams
Copy link
Member

We use the provisioner account to connect to the management server while the cluster is being created in order to pass in some configuration files. This is done by adding the provisioner's SSH key into the instance's metadata. Enabling OS Login disables the ability to use this method for SSH authentication.

To fix this we have two options:

  1. Explicitly disable OS Login for this particular instance
  2. Use OS Login to do the provisioning step

I've added an issue at clusterinthecloud/terraform#45 to track the development of this.

In the short term I've created a branch in the citc-terraform repo called disable_oslogin. If you could check out that branch (tracked at clusterinthecloud/terraform#46) and let me know if it works for you then that would be very helpful.

@verdurin
Copy link
Author

Thanks for the response. Should be able to test that by the end of the week.

@verdurin
Copy link
Author

First attempt to try this failed with a permissions error during the creation of the VPC network, in a way that it didn't when I tried again with master. Will try again in case it's a local config problem.

@verdurin
Copy link
Author

Right, second attempt, it worked with the disable_oslogin branch when the project was still set with:

  - key: enable-oslogin
    value: 'TRUE'

The instance had its own metadata set to disable oslogin and the provisioning step worked as normal:

$ gcloud compute instances describe mgmt --zone=europe-west3-c | grep oslogin -A1
  - key: enable-oslogin
    value: 'FALSE'

@milliams milliams transferred this issue from clusterinthecloud/installer Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants