Reputation: 53
In a tricky situation right now. I have created a GCP account and organization(which was auto-created). Now while trying to have unauthenticated access to Cloud Run, I am facing issues with the Organization Policies. Here comes the fun part: I am not able to view or edit policies at the Org. level inspite of being the Organization Administrator.
Any clue a way out of it?
Upvotes: 1
Views: 177
Reputation: 175
It may happened due to lack of permissions try these troubleshooting steps:
Role: Make sure that your account truly has the “Organization Administrator” role at the organization level. Sometimes, permissions might not pass on correctly.
IAM Permissions: Confirm that your IAM permissions include the ability to view and edit organization policies. You also need roles like “Organization Policy Admin”.
Use Right Project: Make sure you are trying to manage policies at the organization level.
GCP Console or gcloud: You have to try accessing organization policies on both the GCP console and gcloud command line tool. Sometimes different interfaces may give different results and error messages.
Policy Constraints: If there are existing policies that prevent unauthenticated access, you will need to locate and modify those constraints. Look for IAM-related constraints.
After following these steps, try again to access and adjust your Cloud Run settings.
You must have the run.services.setIamPolicy permission to configure authentication on a Cloud Run service. This permission is included in both the Owner and Cloud Run Admin roles. See Cloud Run IAM roles for the full list of roles and their associated permissions.
Refer to this official GCP Documentation , Allowing public (unauthenticated) access and Sonrai security Blog by Tally Shea which helps to resolve your issue.
Upvotes: 2