How to disable creating users in Google compute engine ?

0 votes
I've got a CoreOS cluster running on GCE and one issue that I've noticed with all GCE instances is that as long as you're auth'd with the project on Google Cloud platform, you'll be able to login in as just about anything on the servers.

This is a problem for me as anyone on the team, or anyone who gets into the project, can ssh right in as anyone to the server.

I would prefer to disable this and simply use users I've created in my cloud-config file that have such ssh keys and passwords that expire. How do I disable it?
Oct 16 in GCP by anonymous
• 5,700 points
12 views

1 answer to this question.

0 votes

You can stop a GCE instance from adding accounts by guaranteeing the google-account-manager service doesn't run.

On CoreOS you can stop this service with

sudo systemctl stop google-accounts-manager.service

and then disable it permanantly with

sudo systemctl disable google-accounts-manager.service.

You may need to create an image with the service pre-disabled (or even delete the unit file) so after you create instances it does not create accounts before you disable the service.

answered Oct 16 by Sirajul
• 37,930 points

Related Questions In GCP

+1 vote
2 answers

How to open a port on google compute engine

You need to set the firewall rule ...READ MORE

answered Jul 9 in GCP by K sagar
154 views
+2 votes
2 answers

How to download multiple files in Google Cloud Storage?

You can achieve this through the gsutil ...READ MORE

answered May 9, 2018 in GCP by kurt_cobain
• 9,260 points
4,952 views
0 votes
1 answer

Is it possible to use Windows Server Containers OS in Google Kubernetes Engine?

It is possible to run Windows containers, however solely as a container in a compute Engine ...READ MORE

answered Sep 25 in GCP by anonymous
• 37,930 points
24 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 37,930 points
36 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 37,930 points
44 views