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

0 votes
Oct 16 in GCP by anonymous
• 6,060 points
25 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 by Sirajul
• 39,540 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 in GCP by Sirajul
• 39,540 points
24 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 in GCP by Sirajul
• 39,540 points
42 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
• 39,540 points
50 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 in GCP by Sirajul
• 39,540 points
102 views