If you have multiple SECRET_KEYS, go to your project IAM and add these
Secret Manager Admin
Secret Manager Secret Accessor
in the principal named : firebase-app-hosting-compute@PROJECT_ID.iam.gserviceaccount.com