-
Notifications
You must be signed in to change notification settings - Fork 951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creation of Github Actions workflow does not work when service account key creation is prevented #4522
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
I have the same issue, I had setup the github actions workflow in the past, I removed in an "unclean" manner. I have since tried to reset it but I always get |
Hi, |
Setting up a firebase project for my first time. I'm getting the following:
Looks like something is preventing a key creation of some type? Is this due to my own repo config? How do I resolve this? |
I wasted hours looking into org policies, then not having permissions to modify policies, and figuring out how to assign mysel permissions to edit policies to disable key protection because this init setup seems to be trying to create one and i'm trying to find the path of least resistance here...I thought firebase was supposed to make all of this easier. what a pain in the ass. going back to heroku. |
@samaraiza , you need to allow creating JSON key for service accounts (this is not allowed by default, hence needs to be overwritten). The org policy constraint is |
You can also manually setup the GitHub action with the steps documented here: Unfortunately that PR is not yet merged ... |
[REQUIRED] Environment info
firebase-tools: 10.6.0
Platform: macOS
[REQUIRED] Steps to reproduce
constraints/iam.disableServiceAccountKeyCreation
.firebase init hosting
[REQUIRED] Expected behavior
There are several levels of support that I could be implemented:
At least have 3. would be nice and should be fairly easy to build!
Background reading on Github Actions and Workload Identity federation:
https://cloud.google.com/blog/products/identity-security/enabling-keyless-authentication-from-github-actions
[REQUIRED] Actual behavior
The
firebase init
command fails with the following error message as it's not possible to create a Service Account key:The text was updated successfully, but these errors were encountered: