I accidentally deleted a Firebase App Hosting secret in the Google Cloud Secret Manager. This secret was used to connect my Firebase App Hosting to my GitHub account, and now I can’t create a new App Hosting backend.
Whenever i use app hosting it tries to grab the old key (that i accidentaly deleted) and throws an error. I assume I need to remove all github associations and service accounts from my google cloud project and re-initiate a github login so that a new key can be generated, but i don’t know how to do this as im still new to GCP. I tried uninstalling Firebase and removing the authentication on GitHub, but I keep getting errors.
Error: HTTP Error: 400, failed connecting to GitHub with the provided OAuth token: generic::invalid_argument: The secret **named** ... was not found. Please check if the correct secret name and version are used.
and i get this log in google cloud:
"Service account firebase-app-hosting-compute already exists within project projects/x."
Any help would be apreciated! Thanks!