Files
Krow-workspace/fix-project-level-permissions.sh
bwnyasse 3bd2dfc002 refactor(Makefile): remove App Engine configs and scripts, migrate launchpad to Cloud Run
This commit removes legacy App Engine deployment artifacts and updates the Makefile to reflect the successful migration of the `internal-launchpad` service to Cloud Run.

The following changes were made:

- Deleted obsolete permission scripts:
 - `fix-appengine-permissions-complete.sh`
 - `fix-project-level-permissions.sh`
 - `create-missing-repository.sh`
- Removed the `firebase/internal-launchpad/app.yaml` file.
- Updated `firebase.json` to remove the `launchpad` hosting configuration.

These changes streamline the repository, reduce developer confusion, and prevent the accidental use of outdated deployment logic.
2025-11-16 08:10:31 -05:00

39 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
set -e
PROJECT_ID="krow-workforce-dev"
PROJECT_NUMBER="933560802882"
echo "============================================"
echo "Permissions au niveau du PROJET"
echo "============================================"
echo ""
echo "1. Artifact Registry Admin pour Cloud Build au niveau projet..."
gcloud projects add-iam-policy-binding ${PROJECT_ID} \
--member="serviceAccount:${PROJECT_NUMBER}@cloudbuild.gserviceaccount.com" \
--role="roles/artifactregistry.admin" \
--condition=None
echo ""
echo "2. Storage Admin pour Cloud Build (pour staging bucket)..."
gcloud projects add-iam-policy-binding ${PROJECT_ID} \
--member="serviceAccount:${PROJECT_NUMBER}@cloudbuild.gserviceaccount.com" \
--role="roles/storage.admin" \
--condition=None
echo ""
echo "3. Vérification des rôles du service account Cloud Build:"
gcloud projects get-iam-policy ${PROJECT_ID} \
--flatten="bindings[].members" \
--filter="bindings.members:${PROJECT_NUMBER}@cloudbuild.gserviceaccount.com" \
--format="table(bindings.role)"
echo ""
echo "============================================"
echo "✅ Permissions au niveau projet configurées!"
echo "============================================"
echo ""
echo "Ces permissions sont plus larges mais devraient résoudre le problème."
echo "Attends 2-3 minutes puis relance: make deploy-launchpad"
echo ""