How do I set image access constraints so that my image is only accessible by authorized users in GCP?

0 votes
Oct 16, 2019 in GCP by anonymous
• 10,080 points
113 views

1 answer to this question.

0 votes

You can enact an image access policy by setting a compute.trustedImageProjects constraint on your project, your organization, or your folder. 

You must have permission to modify organization policies to set these constraints. 

For example, the resourcemanager.organizationAdmin role has permission to set these constraints.

To set it:

  1. Go to the Organization policies page.

  2. In the policies list, click Define trusted image projects.

  3. Click Edit to edit your existing trusted image constraints.

  4. Set constraints to allow or deny one or more projects from which your project can obtain images. The allowed and denied list of publisher projects is a list of strings in the following format:

    projects/[PROJECT_ID]

    where [PROJECT_ID] is the project ID of the project that you want to mark as a trusted source for images.

    If your organization or folder has existing constraints, those constraints might conflict with project-level constraints that you set.

  5. Click Save to apply the constraint settings.

answered Oct 16, 2019 by Sirajul
• 52,850 points

Related Questions In GCP

0 votes
1 answer

How do I ensure that all the VM instances created in my organisation are shielded VM's?

You can set the constraints/compute.requireShieldedVm organization policy constraint to True to require ...READ MORE

answered Oct 22, 2019 in GCP by Sirajul
• 52,850 points
72 views
0 votes
1 answer
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, 2019 in GCP by Sirajul
• 52,850 points
270 views
0 votes
1 answer
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, 2019 in GCP by Sirajul
• 52,850 points
243 views
0 votes
1 answer

Creating password for a windows instance on GCP

Windows Server instances use password authentication instead ...READ MORE

answered Sep 24, 2019 in GCP by Sirajul
• 52,850 points
772 views