firebase-tools: firebase functions:config:get HTTP Error: 403, Permission denied to get service [runtimeconfig.googleapis.com]
[REQUIRED] Environment info
11.17.0
firebase-tools:
Windows, Mac
Platform:
[REQUIRED] Test case
firebase functions:config:get | ac .runtimeconfig.json
[REQUIRED] Steps to reproduce
firebase functions:config:get | ac .runtimeconfig.json
[REQUIRED] Expected behavior
runtimeconfig updated
[REQUIRED] Actual behavior
HTTP Error: 403, Permission denied to get service [runtimeconfig.googleapis.com]
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (9 by maintainers)
Had the same issue but managed to solve it by adding the role
Cloud RuntimeConfig Admin
to the service account.@rendomnet Sorry that I can’t be more helpful here, but based on the debug log you shared, the issue seems to be that the account that is being used to make the call to GCP API doesn’t have permission.
I do notice something odd in your debug - it’s saying that you are trying to make request to
https://cloudresourcemanager.googleapis.com/v1/projects/staging:testIamPermissions
. Isstaging
name of the GCP/Firebase project? That’s a pretty rare name of a project to have, and I wonder if you setup your alias incorrectly.I’d try running
firebase use [YOUR PROJECT NAME]
before trying the commands again.