# Undocumented Breaking Cloud Run Changes in v461.0.0

**URL:** <https://discuss.google.dev/t/undocumented-breaking-cloud-run-changes-in-v461-0-0/144011>\
**Category:** Serverless Applications\
**Tags:** cloud-run\
**Created:** [January 28, 2024, 4:50am UTC](https://discuss.google.dev/t/undocumented-breaking-cloud-run-changes-in-v461-0-0/144011 "2024-01-28T04:50:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![VlGr](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/vlgr/32/4603_2.png) [@VlGr](https://discuss.google.dev/u/VlGr)\
**Post date:** [January 28, 2024, 4:50am UTC](https://discuss.google.dev/t/undocumented-breaking-cloud-run-changes-in-v461-0-0/144011/1 "2024-01-28T04:50:53Z")

</div>

We have had the same CI/CD process for over a year and a half now, with the same service accounts and IAM policies, and it recently started failing. I pinned this down in what appears to be an undocumented change in v461.0.0 . It all started with the following error:

```html
Permission 'run.operations.get' denied on resource 'projects/{projectName}/locations/us-central1/operations/{operationId}' (or resource may not exist).

```

After figuring out that there was no issues with v460 I saw the following change in the log.

Whereas in v460 and before there was a call like this:

```html
024-01-28 03:17:27,724 INFO ___FILE_ONLY___ ==== request start ====

2024-01-28 03:17:27,724 INFO ___FILE_ONLY___ uri: https://run.googleapis.com/v1/projects/{projectId}/locations/us-central1/services/{serviceId}:setIamPolicy?alt=json

2024-01-28 03:17:27,724 INFO ___FILE_ONLY___ method: POST

```

In v461 there is now this:

```html
2024-01-28 03:22:00,294 INFO ___FILE_ONLY___ ==== request start ====

2024-01-28 03:22:00,294 INFO ___FILE_ONLY___ uri: https://us-central1-run.googleapis.com/v1/projects/{projectId}/locations/us-central1/ope
rations/{operationId}:wait?alt=json

2024-01-28 03:22:00,294 INFO ___FILE_ONLY___ method: POST

```

Was this documented anywhere? I can’t even figure out which call this is supposed to be.

---

<div class="post-metadata">

**Author:** ![gdash](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/gdash/32/3294_2.png) [@gdash](https://discuss.google.dev/u/gdash)\
**Post date:** [January 30, 2024, 10:26am UTC](https://discuss.google.dev/t/undocumented-breaking-cloud-run-changes-in-v461-0-0/144011/2 "2024-01-30T10:26:50Z")

</div>

Started getting this error in the last couple of days as well, similar situation.

---

<div class="post-metadata">

**Author:** ![robertcarlos](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/robertcarlos/32/2559_2.png) [@robertcarlos](https://discuss.google.dev/u/robertcarlos)\
**Post date:** [January 31, 2024, 5:31pm UTC](https://discuss.google.dev/t/undocumented-breaking-cloud-run-changes-in-v461-0-0/144011/3 "2024-01-31T17:31:17Z")

</div>

Hi @VlGr ,

Welcome to Google Cloud Community!

You are getting this error as `run.operations.get` is not properly declared, as this permission is recommended in order to read the status of the service. Role should be at least set to `roles/run.viewer` as this contains the `run.operations.get` permission. Please check this documentation on [Cloud Run IAM roles](https://cloud.google.com/run/docs/reference/iam/roles) for more information on predefined roles and deployment permissions for Cloud Run.

You may also check these similar Stack Overflow questions that could be related to your concern:

- [Cloud Run Fails on Step-2 Deploy with Permissions Error](https://stackoverflow.com/questions/70961897/cloud-run-fails-on-step-2-deploy-with-permissions-error)
- [ERROR: (gcloud.run.services.update) PERMISSION\_DENIED: Permission ‘run.services.get’ denied on resource ‘namespaces/\*/services/test-repo’](https://stackoverflow.com/questions/69289360/error-gcloud-run-services-update-permission-denied-permission-run-services)

Hope this helps.

---

<div class="post-metadata">

**Author:** ![iskandertajines](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/iskandertajines/32/212_2.png) [@iskandertajines](https://discuss.google.dev/u/iskandertajines)\
**Post date:** [February 5, 2024, 10:24am UTC](https://discuss.google.dev/t/undocumented-breaking-cloud-run-changes-in-v461-0-0/144011/4 "2024-02-05T10:24:38Z")

</div>

Hello @robertcarlos

I have also started encountered this issue, even though there have been no changes to IAM permissions for my CICD service account. It already has the roles/run.developer role.

Do you have any solution in mind? thank you

---

<div class="post-metadata">

**Author:** ![DChiesa2023](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/dchiesa2023/32/121158_2.png) [@DChiesa2023](https://discuss.google.dev/u/DChiesa2023)\
**Post date:** [February 5, 2024, 4:27pm UTC](https://discuss.google.dev/t/undocumented-breaking-cloud-run-changes-in-v461-0-0/144011/5 "2024-02-05T16:27:57Z")

</div>

hi robertcarlos,

The 2nd link you offered refers to permission run.services.get not run.operations.get. So I think that one is a different issue. The first link did not provide clear guidance on run.operations.get either.

Also Any insight as to why this behavior would change from gcloud CLI v460 to v461 ?

---

<div class="post-metadata">

**Author:** ![DChiesa2023](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/dchiesa2023/32/121158_2.png) [@DChiesa2023](https://discuss.google.dev/u/DChiesa2023)\
**Post date:** [February 5, 2024, 4:35pm UTC](https://discuss.google.dev/t/undocumented-breaking-cloud-run-changes-in-v461-0-0/144011/6 "2024-02-05T16:35:32Z")

</div>

It seems that

```html
https://us-central1-run.googleapis.com/v1/projects/{projectId}/locations/us-central1
/operations/{operationId}:wait?alt=json

```

…is waiting for the resolution for a long-running-operation (so called LRO). ([reference](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.operations/wait))

But I don’t have insight into

- why it changed from v460 to v461
- why it is using a regional cloud-run endpoint ([us-central1-run.googleapis.com](http://us-central1-run.googleapis.com)) versus the global one ([run.googleapis.com](http://run.googleapis.com))

Based on the name, it seems likely that the “run.operations.get” permission is required to “wait” on an LRO. And maybe the principal you are using doesn’t have that permission. See the answer from robertcarlos. Why v461 introduced the change is not clear. and I agree with you, there’s nothing documented for Cloud Run in [the release notes for v461](https://cloud.google.com/sdk/docs/release-notes#46100_2024-01-23).

---

<div class="post-metadata">

**Author:** ![VlGr](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/vlgr/32/4603_2.png) [@VlGr](https://discuss.google.dev/u/VlGr)\
**Post date:** [February 6, 2024, 4:44pm UTC](https://discuss.google.dev/t/undocumented-breaking-cloud-run-changes-in-v461-0-0/144011/7 "2024-02-06T16:44:40Z")

</div>

This is an official issue now with discussion here:

[https://issuetracker.google.com/issues/322167526](https://issuetracker.google.com/issues/322167526)
